Hi, I'm trying to install net/samba44 on a fresh installation of FreeBSD-11.0:
All options are set to default:
The build fails with the following errors:
Any ideas what's the problem? Thanks!
Code:
uname -a
FreeBSD giskard 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Code:
freebsd-version
11.0-RELEASE-p2
All options are set to default:
Code:
make showconfig
===> The following configuration options are available for samba44-4.4.5_1:
ACL_SUPPORT=on: File system ACL support
ADS=on: Active Directory client support
AD_DC=on: Active Directory Domain Controller support
CUPS=off: CUPS printing system support
DEBUG=on: Build with debugging support
DEVELOPER=off: With development support
DNSUPDATE=on: Dynamic DNS update (require ADS)
DOCS=on: Build and/or install documentation
EXP_MODULES=off: Experimental modules
FAM=on: File Alteration Monitor support
LDAP=on: LDAP client support
MANPAGES=off: Build manpages from DOCBOOK templates
PTHREADPOOL=on: Pthread pool
QUOTAS=on: Disk quota support
SYSLOG=on: Syslog logging support
UTMP=on: UTMP accounting support
====> Options available for the radio DNS: you can only select none or one of them
NSUPDATE=off: Use samba NSUPDATE utility for AD DC
BIND99=off: Use bind99 as AD DC DNS server frontend
BIND910=off: Use bind910 as AD DC DNS server frontend
====> Options available for the radio ZEROCONF: you can only select none or one of them
AVAHI=off: Zeroconf support via Avahi
MDNSRESPONDER=off: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings
The build fails with the following errors:
Code:
[2490/3804] Compiling source3/libsmb/libsmb_file.c
runner cc -pipe -fno-omit-frame-pointer -DLIBICONV_PLUG -fno-color-diagnostics -g -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTATIC_smbclient_MODULES=NULL -DSTATIC_smbclient_MODULES_PROTO=extern void __smbclient_dummy_module_proto(void) -MD -I/usr/local/include -DLIBICONV_PLUG -Idefault/source3/libsmb -I../source3/libsmb -Idefault/source3 -I../source3 -Idefault/source3/include -I../source3/include -Idefault/source3/lib -I../source3/lib -Idefault/source4/heimdal/lib/com_err -I../source4/heimdal/lib/com_err -Idefault/source4/heimdal/lib/krb5 -I../source4/heimdal/lib/krb5 -Idefault/source4/heimdal/lib/gssapi -I../source4/heimdal/lib/gssapi -Idefault/source4/heimdal_build -I../source4/heimdal_build -Idefault/bin/default/source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/asn1 -Idefault -I../../../../../../local/include -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/lib/param -I../lib/param -Idefault/source4/heimdal/lib/hcrypto/libtommath -I../source4/heimdal/lib/hcrypto/libtommath -Idefault/source4/heimdal/lib/asn1 -I../source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/hx509 -I../source4/heimdal/lib/hx509 -Idefault/libcli/ldap -I../libcli/ldap -Idefault/librpc -I../librpc -Idefault/source4/heimdal/lib/roken -I../source4/heimdal/lib/roken -Idefault/source4/heimdal/include -I../source4/heimdal/include -Idefault/source4/dsdb -I../source4/dsdb -Idefault/source4/lib/http -I../source4/lib/http -Idefault/libcli/auth -I../libcli/auth -Idefault/lib/addns -I../lib/addns -Idefault/auth/gensec -I../auth/gensec -Idefault/auth/credentials -I../auth/credentials -Idefault/lib/krb5_wrap -I../lib/krb5_wrap -Idefault/lib/ldb-samba -I../lib/ldb-samba -Idefault/source4/heimdal/base -I../source4/heimdal/base -Idefault/source4/lib/socket -I../source4/lib/socket -Idefault/libcli/registry -I../libcli/registry -Idefault/source4/librpc -I../source4/librpc -Idefault/source4/auth/kerberos -I../source4/auth/kerberos -Idefault/source4/param -I../source4/param -Idefault/lib/socket -I../lib/socket -Idefault/lib/util/charset -I../lib/util/charset -Idefault/source4/lib/events -I../source4/lib/events -Idefault/source3/lib/poll_funcs -I../source3/lib/poll_funcs -Idefault/lib/async_req -I../lib/async_req -Idefault/source4/auth/gensec -I../source4/auth/gensec -Idefault/nsswitch/libwbclient -I../nsswitch/libwbclient -Idefault/auth/kerberos -I../auth/kerberos -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/source4/auth -I../source4/auth -Idefault/lib/dbwrap -I../lib/dbwrap -Idefault/source3/lib/pthreadpool -I../source3/lib/pthreadpool -Idefault/libcli/netlogon -I../libcli/netlogon -Idefault/libcli/security -I../libcli/security -Idefault/nsswitch -I../nsswitch -Idefault/auth/ntlmssp -I../auth/ntlmssp -Idefault/libcli/nbt -I../libcli/nbt -Idefault/libcli/drsuapi -I../libcli/drsuapi -Idefault/source4/libcli -I../source4/libcli -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/source3/librpc -I../source3/librpc -Idefault/auth -I../auth -Idefault/libcli/cldap -I../libcli/cldap -Idefault/libcli/util -I../libcli/util -Idefault/libcli/smb -I../libcli/smb -Idefault/libcli/lsarpc -I../libcli/lsarpc -Idefault/source4/libcli/ldap -I../source4/libcli/ldap -Idefault/dynconfig -I../dynconfig -Idefault/source3/param -I../source3/param -Idefault/lib/compression -I../lib/compression -Idefault/source4/lib/stream -I../source4/lib/stream -Idefault/source3/lib/unix_msg -I../source3/lib/unix_msg -Idefault/lib/crypto -I../lib/crypto -Idefault/lib/smbconf -I../lib/smbconf -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../source3/libsmb/libsmb_dir.c -c -o default/source3/libsmb/libsmb_dir_1.o
runner cc -pipe -fno-omit-frame-pointer -DLIBICONV_PLUG -fno-color-diagnostics -g -fstack-protector -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTATIC_smbclient_MODULES=NULL -DSTATIC_smbclient_MODULES_PROTO=extern void __smbclient_dummy_module_proto(void) -MD -I/usr/local/include -DLIBICONV_PLUG -Idefault/source3/libsmb -I../source3/libsmb -Idefault/source3 -I../source3 -Idefault/source3/include -I../source3/include -Idefault/source3/lib -I../source3/lib -Idefault/source4/heimdal/lib/com_err -I../source4/heimdal/lib/com_err -Idefault/source4/heimdal/lib/krb5 -I../source4/heimdal/lib/krb5 -Idefault/source4/heimdal/lib/gssapi -I../source4/heimdal/lib/gssapi -Idefault/source4/heimdal_build -I../source4/heimdal_build -Idefault/bin/default/source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/asn1 -Idefault -I../../../../../../local/include -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/lib/param -I../lib/param -Idefault/source4/heimdal/lib/hcrypto/libtommath -I../source4/heimdal/lib/hcrypto/libtommath -Idefault/source4/heimdal/lib/asn1 -I../source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/hx509 -I../source4/heimdal/lib/hx509 -Idefault/libcli/ldap -I../libcli/ldap -Idefault/librpc -I../librpc -Idefault/source4/heimdal/lib/roken -I../source4/heimdal/lib/roken -Idefault/source4/heimdal/include -I../source4/heimdal/include -Idefault/source4/dsdb -I../source4/dsdb -Idefault/source4/lib/http -I../source4/lib/http -Idefault/libcli/auth -I../libcli/auth -Idefault/lib/addns -I../lib/addns -Idefault/auth/gensec -I../auth/gensec -Idefault/auth/credentials -I../auth/credentials -Idefault/lib/krb5_wrap -I../lib/krb5_wrap -Idefault/lib/ldb-samba -I../lib/ldb-samba -Idefault/source4/heimdal/base -I../source4/heimdal/base -Idefault/source4/lib/socket -I../source4/lib/socket -Idefault/libcli/registry -I../libcli/registry -Idefault/source4/librpc -I../source4/librpc -Idefault/source4/auth/kerberos -I../source4/auth/kerberos -Idefault/source4/param -I../source4/param -Idefault/lib/socket -I../lib/socket -Idefault/lib/util/charset -I../lib/util/charset -Idefault/source4/lib/events -I../source4/lib/events -Idefault/source3/lib/poll_funcs -I../source3/lib/poll_funcs -Idefault/lib/async_req -I../lib/async_req -Idefault/source4/auth/gensec -I../source4/auth/gensec -Idefault/nsswitch/libwbclient -I../nsswitch/libwbclient -Idefault/auth/kerberos -I../auth/kerberos -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/source4/auth -I../source4/auth -Idefault/lib/dbwrap -I../lib/dbwrap -Idefault/source3/lib/pthreadpool -I../source3/lib/pthreadpool -Idefault/libcli/netlogon -I../libcli/netlogon -Idefault/libcli/security -I../libcli/security -Idefault/nsswitch -I../nsswitch -Idefault/auth/ntlmssp -I../auth/ntlmssp -Idefault/libcli/nbt -I../libcli/nbt -Idefault/libcli/drsuapi -I../libcli/drsuapi -Idefault/source4/libcli -I../source4/libcli -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/source3/librpc -I../source3/librpc -Idefault/auth -I../auth -Idefault/libcli/cldap -I../libcli/cldap -Idefault/libcli/util -I../libcli/util -Idefault/libcli/smb -I../libcli/smb -Idefault/libcli/lsarpc -I../libcli/lsarpc -Idefault/source4/libcli/ldap -I../source4/libcli/ldap -Idefault/dynconfig -I../dynconfig -Idefault/source3/param -I../source3/param -Idefault/lib/compression -I../lib/compression -Idefault/source4/lib/stream -I../source4/lib/stream -Idefault/source3/lib/unix_msg -I../source3/lib/unix_msg -Idefault/lib/crypto -I../lib/crypto -Idefault/lib/smbconf -I../lib/smbconf -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../source3/libsmb/libsmb_file.c -c -o default/source3/libsmb/libsmb_file_1.o
In file included from ../source3/libsmb/libsmb_cache.c:26:
../source3/include/libsmb_internal.h:249:17: error: unknown type name 'smbc_splice_fn'
smbc_splice_fn splice_fn;
^
../source3/include/libsmb_internal.h:250:3: error: unknown type name 'smbc_notify_fn'
smbc_notify_fn notify_fn;
^
In file included from ../source3/libsmb/libsmb_context.c:28:
../source3/include/libsmb_internal.h:249:17: error: unknown type name 'smbc_splice_fn'
smbc_splice_fn splice_fn;
^
In file included from ../source3/libsmb/libsmb_dir.c:29:
../source3/include/libsmb_internal.h:249:17: error: unknown type name 'smbc_splice_fn'
smbc_splice_fn splice_fn;
^
In file included from ../source3/libsmb/libsmb_file.c:28:
../source3/include/libsmb_internal.h:249:17: error: unknown type name 'smbc_splice_fn'
smbc_splice_fn splice_fn;
^
../source3/include/libsmb_internal.h:250:3: error: unknown type name 'smbc_notify_fn'
smbc_notify_fn notify_fn;
^
../source3/include/libsmb_internal.h:250:3: error: unknown type name 'smbc_notify_fn'
smbc_notify_fn notify_fn;
^
../source3/include/libsmb_internal.h:351:3: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data);
^
../source3/include/libsmb_internal.h:250:3: error: unknown type name 'smbc_notify_fn'
smbc_notify_fn notify_fn;
^
3 errors generated.
../source3/include/libsmb_internal.h:351:3: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data);
^
../source3/include/libsmb_internal.h:351:3: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data);
^
../source3/include/libsmb_internal.h:351:3: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data);
^
../source3/libsmb/libsmb_context.c:170:9: warning: implicit declaration of function 'smbc_setPort' is invalid in C99 [-Wimplicit-function-declaration]
smbc_setPort(context, 0);
^
../source3/libsmb/libsmb_context.c:197:9: warning: implicit declaration of function 'smbc_setFunctionSplice' is invalid in C99 [-Wimplicit-function-declaration]
smbc_setFunctionSplice(context, SMBC_splice_ctx);
^
../source3/libsmb/libsmb_context.c:217:9: warning: implicit declaration of function 'smbc_setFunctionNotify' is invalid in C99 [-Wimplicit-function-declaration]
smbc_setFunctionNotify(context, SMBC_notify_ctx);
^
3 warnings and 3 errors generated.
3 errors generated.
../source3/libsmb/libsmb_dir.c:2059:2: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb;
^
../source3/libsmb/libsmb_dir.c:2070:2: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data)
^
../source3/libsmb/libsmb_dir.c:2130:45: error: array has incomplete element type 'struct smbc_notify_callback_action'
struct smbc_notify_callback_action actions[num_changes];
^
../source3/libsmb/libsmb_dir.c:2130:10: note: forward declaration of 'struct smbc_notify_callback_action'
struct smbc_notify_callback_action actions[num_changes];
^
../source3/libsmb/libsmb_dir.c:2197:11: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data)
^
../source3/libsmb/libsmb_dir.c:2227:3: error: unknown type name 'smbc_notify_callback_fn'
smbc_notify_callback_fn cb, void *private_data)
^
8 errors generated.
Waf: Leaving directory `/usr/ports/net/samba44/work/samba-4.4.5/bin'
Build failed:
-> task failed (err #1):
{task: cc libsmb_cache.c -> libsmb_cache_1.o}
-> task failed (err #1):
{task: cc libsmb_context.c -> libsmb_context_1.o}
-> task failed (err #1):
{task: cc libsmb_file.c -> libsmb_file_1.o}
-> task failed (err #1):
{task: cc libsmb_dir.c -> libsmb_dir_1.o}
File "buildtools/bin/waf", line 76, in <module>
Scripting.prepare(t, cwd, VERSION, wafdir)
File "/usr/ports/net/samba44/work/samba-4.4.5/third_party/waf/wafadmin/Scripting.py", line 147, in prepare
error(str(e))
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/net/samba44
*** Error code 1
Stop.
make: stopped in /usr/ports/net/samba44
Any ideas what's the problem? Thanks!