Error - FreeBSD 9.0 Won't compile

Amitay Isaacs amitay at gmail.com
Wed Jan 25 15:47:28 MST 2012


On Thu, Jan 26, 2012 at 9:38 AM, William Brown
<william.e.brown at adelaide.edu.au> wrote:
>
> On 26/01/2012, at 09:01, Amitay Isaacs wrote:
>
>> On Thu, Jan 26, 2012 at 9:25 AM, William Brown
>> <william.e.brown at adelaide.edu.au> wrote:
>>>
>>>> You were correct. I have removed these ports and will get back to you shortly about how the build goes
>>>>
>>>> For those who are following and want to know how to remove these
>>>>
>>>> Run pkg_info | less to find the ports. Then run
>>>>
>>>> pkg_delete tdb-1.2.9,1
>>>> pkg_delete tevent-0.9.13
>>>> pkg_delete talloc-2.0.7
>>>>
>>>
>>> Yet another new complication rears it's head.
>>>
>>> WAF_MAKE=1 ./buildtools/bin/waf build
>>> Waf: Entering directory `/root/samba-master/bin'
>>> [ 128/3915] Generating VERSION
>>> [ 163/3915] Generating smbd/build_options.c
>>> [2350/3915] Compiling source3/lib/netapi/cm.c
>>> In file included from ../source3/lib/netapi/cm.c:21:
>>> ../source3/include/popt_common.h:23:18: error: popt.h: No such file or directory
>>> In file included from ../source3/lib/netapi/cm.c:21:
>>> ../source3/include/popt_common.h:26: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:27: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:28: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:29: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:30: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:31: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:32: error: array type has incomplete element type
>>> ../source3/include/popt_common.h:33: error: array type has incomplete element type
>>> Waf: Leaving directory `/root/samba-master/bin'
>>> Build failed:  -> task failed (err #1):
>>>        {task: cc cm.c -> cm_3.o}
>>> *** Error code 1
>>>
>>> Stop in /root/samba-master.
>>>
>>> Popt is installed
>>>
>>> pkg_info | grep popt
>>> popt-1.16           A getopt(3) like library with a number of enhancements, fro
>>>
>>> And I can find /usr/local/include/popt.h
>>>
>>> Perhaps this isn't in the include path? How do I add this?
>>>
>>
>> What does configure script say about popt? You can check in bin/config.log.
>>
>> Amitay.
>
>
> Checking for system popt
> pkg-config --errors-to-stdout --print-errors "popt >= 0.0.0" --cflags --libs popt
> -I/usr/local/include  -L/usr/local/lib -lpopt
> Checking for header popt.h
> #include <popt.h>
> Checking for library popt
> Checking for poptGetContext
> #define HAVE_POPT 1
> #define HAVE_POPT_H 1
> #define HAVE_LIBPOPT 1
>                         #define poptGetContext __fake__poptGetContext
>                         #undef poptGetContext
>                         #if defined __stub_poptGetContext || defined __stub___poptGetContext
>                         extern char poptGetContext();
>                         int main() { return poptGetContext(); }
> ['/usr/bin/gcc', 'default/test_1.o', '-o', '/root/samba-master/bin/.conf_check_0/testbuild/default/testprog', '-L/usr/local/lib', '-Wl,-no-undefined', '-Wl,-Bdynamic', '-lpopt']
> #define HAVE_POPT 1
> #define HAVE_POPT_H 1
> #define HAVE_LIBPOPT 1
> #define HAVE_POPTGETCONTEXT 1
> #define USING_SYSTEM_POPT 1
>
> Followed by those last 5 lines being repeated over and over ....

That means configure has found the include path and library path for popt.
Can you check the actual compile command?

make V=1

Amitay.


More information about the samba-technical mailing list