Error - FreeBSD 9.0 Won't compile

William Brown william.e.brown at adelaide.edu.au
Wed Jan 25 15:59:47 MST 2012


On 26/01/2012, at 09:17, Amitay Isaacs wrote:

> 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.



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
16:25:19 runner /usr/bin/gcc -DCONFIGFILE="/usr/local/samba4/etc/smb.conf" -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common -Wcast-qual -DSTATIC_netapi_MODULES=NULL -DSTATIC_netapi_MODULES_PROTO -MD -Idefault/source3 -I../source3 -Idefault/source3/include -I../source3/include -Idefault/source3/lib -I../source3/lib -Idefault/lib/tdb_compat -I../lib/tdb_compat -Idefault/source4/heimdal/lib/com_err -I../source4/heimdal/lib/com_err -Idefault/source4/heimdal/lib/gssapi -I../source4/heimdal/lib/gssapi -Idefault/source4/heimdal_build -I../source4/heimdal_build -Idefault/lib/tdb2 -I../lib/tdb2 -Idefault/lib/tevent -I../lib/tevent -Idefault/lib/talloc -I../lib/talloc -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/source4/heimdal/lib/roken -I../source4/heimdal/lib/roken -Idefault/source4/heimdal/include -I../source4/heimdal/include -Idefault/source4/heimdal/lib/hcrypto/libtommath -I../source4/heimdal/lib/hcrypto/libtommath -Idefault/libcli/ldap -I../libcli/ldap -Idefault/librpc -I../librpc -Idefault/source3/librpc -I../source3/librpc -Idefault/lib/param -I../lib/param -Idefault/libcli/auth -I../libcli/auth -Idefault/source4/dsdb -I../source4/dsdb -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/source3/passdb -I../source3/passdb -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/auth/gensec -I../auth/gensec -Idefault/auth/credentials -I../auth/credentials -Idefault/source4/heimdal/base -I../source4/heimdal/base -Idefault/source4/lib/socket -I../source4/lib/socket -Idefault/libcli/registry -I../libcli/registry -Idefault/libcli/util -I../libcli/util -Idefault/source4/param -I../source4/param -Idefault/lib/socket -I../lib/socket -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/tdb/include -I../lib/tdb/include -Idefault/lib/tdb -I../lib/tdb -Idefault/source4/lib/events -I../source4/lib/events -Idefault/lib/ldb -I../lib/ldb -Idefault/lib/async_req -I../lib/async_req -Idefault/source4/auth/gensec -I../source4/auth/gensec -Idefault/libcli/netlogon -I../libcli/netlogon -Idefault/nsswitch/libwbclient -I../nsswitch/libwbclient -Idefault/lib/ldb-samba -I../lib/ldb-samba -Idefault/source4/heimdal/lib/asn1 -I../source4/heimdal/lib/asn1 -Idefault/source4/auth/kerberos -I../source4/auth/kerberos -Idefault/source4/heimdal/lib/krb5 -I../source4/heimdal/lib/krb5 -Idefault/libcli/nbt -I../libcli/nbt -Idefault/auth/kerberos -I../auth/kerberos -Idefault/source4/auth -I../source4/auth -Idefault/source4/heimdal/lib/hx509 -I../source4/heimdal/lib/hx509 -Idefault/source3/lib/pthreadpool -I../source3/lib/pthreadpool -Idefault/nsswitch -I../nsswitch -Idefault/lib/ldb/include -I../lib/ldb/include -Idefault/libcli/drsuapi -I../libcli/drsuapi -Idefault/lib/tsocket -I../lib/tsocket -Idefault/source4/heimdal/lib/wind -I../source4/heimdal/lib/wind -Idefault/source4/lib/tls -I../source4/lib/tls -Idefault/libds/common -I../libds/common -Idefault/source4/heimdal/lib/hcrypto -I../source4/heimdal/lib/hcrypto -Idefault/source4/heimdal/lib -I../source4/heimdal/lib -Idefault/auth/ntlmssp -I../auth/ntlmssp -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/libcli/cldap -I../libcli/cldap -Idefault/libcli/security -I../libcli/security -Idefault/auth -I../auth -Idefault/source4/libcli -I../source4/libcli -Idefault/libcli/lsarpc -I../libcli/lsarpc -Idefault/source4/libcli/ldap -I../source4/libcli/ldap -Idefault/source4/winbind -I../source4/winbind -Idefault/source4/heimdal/lib/gssapi/gssapi -I../source4/heimdal/lib/gssapi/gssapi -Idefault/source4/heimdal/lib/gssapi/spnego -I../source4/heimdal/lib/gssapi/spnego -Idefault/source4/heimdal/lib/gssapi/krb5 -I../source4/heimdal/lib/gssapi/krb5 -Idefault/source4/heimdal/lib/gssapi/mech -I../source4/heimdal/lib/gssapi/mech -Idefault/dynconfig -I../dynconfig -Idefault/lib/compression -I../lib/compression -Idefault/source4/lib/stream -I../source4/lib/stream -Idefault/source4/auth/ntlmssp -I../source4/auth/ntlmssp -Idefault/lib/crypto -I../lib/crypto -Idefault/lib/smbconf -I../lib/smbconf -Idefault/libcli/smb -I../libcli/smb -Idefault/lib/ccan -I../lib/ccan -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../source3/lib/netapi/cm.c -c -o default/source3/lib/netapi/cm_3.o
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

Popt doesn't seem to be in that list ..... 

Sincerely,

William Brown

Research & Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-----------------------------------------------------------------------------
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120126/ebaa7ca5/attachment.pgp>


More information about the samba-technical mailing list