Alex Korobkin
2016-Apr-19 16:15 UTC
[Samba] libsmbregistry.so: undefined reference to `gfree_charcnv'
When compiling Samba 4.4.2 with Ubuntu 14.04 x64, I get this output as below. <...> [3511/3922] Linking default/source4/lib/http/libhttp.so 21:22:07 runner /usr/bin/gcc default/source4/lib/http/http_1.o default/source4/lib/http/http_auth_1.o -o /tmp/build-debs.Z500qB/build/bin/default/source4/lib/http/libhttp.so -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined -Wl,--export-dynamic -fstack-protector -shared -Wl,--version-script=/tmp/build-debs.Z500qB/build/bin/default/source4/lib/http/http.vscript -Wl,-h,libhttp.so.0 -Wl,-rpath,/tmp/build-debs.Z500qB/build/bin/shared -Wl,-rpath,/tmp/build-debs.Z500qB/build/bin/shared/private -Ldefault/libds/common -Ldefault/libcli/ldap -Ldefault/auth -Ldefault/lib/ldb-samba -Ldefault/nsswitch -Ldefault/source4/dsdb -Ldefault/source4/auth/kerberos -Ldefault/libcli/auth -Ldefault/auth/credentials -Ldefault/lib/ldb -Ldefault/nsswitch/libwbclient -Ldefault/auth/gensec -Ldefault/lib/krb5_wrap -Ldefault/source4/lib/events -Ldefault/source4/heimdal_build -Ldefault/libcli/registry -Ldefault/libcli/smb -Ldefault/lib/param -Ldefault/lib/tdb_wrap -Ldefault/lib/socket -Ldefault/librpc -Ldefault/lib -Ldefault/lib/talloc -Ldefault/libcli/security -Ldefault/lib/dbwrap -Ldefault/lib/tevent -Ldefault/libcli/util -Ldefault/lib/replace -Ldefault/source3 -Ldefault/lib/util -L/usr/local/lib -Wl,-Bdynamic -lsamba-util -lmessages-util -ltalloc-report -ltevent-util -lreplace -lmessages-dgm -lserver-id-db -lsamba-errors -ltevent -ldbwrap -lsamba-security -liov-buf -lsmbconf -ltalloc -lsamba-cluster-support -lsys-rw -lutil-tdb -lsamba3-util -lsocket-blocking -lmsghdr -lsamba-sockets -lndr -linterfaces -ltime-basic -lutil-setid -lsamba-debug -lgenrand -ltevent-unix-util -ltdb-wrap -lsamba-hostconfig -lCHARSET3 -lsmbregistry -lcli-smb-common -lutil-reg -lroken-samba4 -lndr-nbt -levents -lserver-role -lsmbd-shim -lkrb5samba -lsmb-transport -lgensec -lkrb5-samba4 -lcom_err-samba4 -lgssapi-samba4 -lasn1-samba4 -lasn1util -lwbclient -lldb -lsamba-modules -lsamba-credentials -lndr-samba -lcliauth -lauthkrb5 -lsamdb -lheimbase-samba4 -lhx509-samba4 -lhcrypto-samba4 -lwind-samba4 -lwinbind-client -lsamdb-common -lldbsamba -lndr-standard -lndr-krb5pac -lauth-sam-reply -lcli-ldap-common -lflag-mapping -lcups -lldap -llber -lresolv -lutil -lgcrypt -lgnutls -lz -lrt -ldl -lnsl -lattr -lcrypt -ltdb -lcap -lbsd default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status default/source3/libsmbregistry.so: undefined reference to `gfree_charcnv' collect2: error: ld returned 1 exit status Waf: Leaving directory `/tmp/build-debs.Z500qB/build/bin' Build failed: -> task failed (err #1): {task: cc_link msgtest_191.o -> msgtest} -> task failed (err #1): {task: cc_link version_test_217.o -> versiontest} -> task failed (err #1): {task: cc_link tests_2.o -> notifyd-tests} -> task failed (err #1): {task: cc_link vlp_231.o -> vlp} -> task failed (err #1): {task: cc_link notifydd_4.o,notifyd_1.o -> notifydd} -> task failed (err #1): {task: cc_link msg_source_195.o -> msg_source} -> task failed (err #1): {task: cc_link msg_sink_193.o -> msg_sink} make[1]: *** [override_dh_auto_build] Error 1 My configure switches are the same as Ubuntu Xenial package: ctdb_conf_args = \ --prefix=/usr \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ --sysconfdir=/etc \ --localstatedir=/var \ --with-socketpath=/var/run/ctdb/ctdbd.socket \ --with-logdir=/var/log/ctdb \ conf_args = \ --prefix=/usr \ --enable-fhs \ --sysconfdir=/etc \ --localstatedir=/var \ --with-privatedir=/var/lib/samba/private \ --with-smbpasswd-file=/etc/samba/smbpasswd \ --with-piddir=/var/run/samba \ --with-pammodulesdir=/lib/$(DEB_HOST_MULTIARCH)/security \ --with-pam \ --with-syslog \ --with-utmp \ --with-winbind \ --with-shared-modules=idmap_rid,idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_tdb2,vfs_dfs_samba4,auth_samba4 \ --with-automount \ --with-ldap \ --with-ads \ --with-dnsupdate \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ --with-modulesdir=/usr/lib/$(DEB_HOST_MULTIARCH)/samba \ --datadir=/usr/share \ --with-lockdir=/var/run/samba \ --with-statedir=/var/lib/samba \ --with-cachedir=/var/cache/samba \ --disable-avahi \ --disable-rpath \ --disable-rpath-install \ --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \ --builtin-libraries=replace,ccan,samba-cluster-support \ --minimum-library-version="$(shell ./debian/autodeps.py --minimum-library-version)" \ --with-cluster-support Why couldn't it find this reference? -- -Alex