Build fail with 4.0.0_rc2 on Gentoo

Mike Bryce mike at aacomp.com.au
Sun Oct 14 22:10:37 MDT 2012


Hi list,
I have been following the list recently with baited breath. It seems
really close now for the 4.0 release and I am very excited about it.
When I noticed 4.0.0_rc2 in portage (Gentoo package management system),
I could not wait any longer. The last time there was a samba package in
there was back at alpha 17 (which is running happily on this system
right now).

The compile phase is begun with the following command by the package
manager:

>>> Configuring source in
/var/tmp/portage/net-fs/samba-4.0.0_rc2/work/samba-4.0.0rc2 ...
CCFLAGS="-march=k8 -O2 -pipe" LINKFLAGS="-Wl,-O1 -Wl,--as-needed"
"/var/tmp/portage/net-fs/samba-4.0.0_rc2/work/samba-4.0.0rc2/buildtools/bin/waf"
--prefix=/usr --libdir=/usr/lib64 --enable-fhs --sysconfdir=/etc
--localstatedir=/var --with-modulesdir=/usr/lib64 --disable-rpath
--disable-rpath-install --nopyc --nopyo --disable-ntdb
--bundled-libraries=NONE --builtin-libraries=NONE --without-dnsupdate
--with-acl --without-ads --without-aio-support --disable-avahi
--without-cluster-support --enable-cups --enable-gnutls --disable-iprint
--without-ldap --with-pam --with-pam_smbpass --without-quota
--without-syslog --without-swat --without-winbind configure
Checking for program gcc or cc           : x86_64-pc-linux-gnu-gcc
Checking for program ar                  : x86_64-pc-linux-gnu-ar
Checking for program ranlib              : x86_64-pc-linux-gnu-ranlib
Checking for gcc                         : ok 
...


My problem is that the installation fails in the linking stage with the
following output:

...
[2720/2941] Linking default/source4/torture/smbtorture
[2721/2941] Linking default/source4/torture/gentest
[2722/2941] Linking default/source4/torture/masktest
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
/usr/lib64/libldb.so: undefined reference to `rep_dlsym at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlerror at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlclose at LDB_1.1.12'
/usr/lib64/libldb.so: undefined reference to `rep_dlopen at LDB_1.1.12'
collect2: ld returned 1 exit status
Waf: Leaving directory
`/var/tmp/portage/net-fs/samba-4.0.0_rc2/work/samba-4.0.0rc2/bin'
Build failed:
 -> task failed (err #1):
        {task: cc_link popt_common_5.o,oLschema2ldif_4.o -> oLschema2ldif}
 -> task failed (err #1):
        {task: cc_link popt_common_5.o,popt_credentials_6.o,regdiff_10.o
-> regdiff}
 -> task failed (err #1):
        {task: cc_link
regtree_19.o,popt_common_5.o,popt_credentials_6.o,common_8.o -> regtree}
 -> task failed (err #1):
        {task: cc_link
ntlm_auth_1.o,popt_common_5.o,popt_credentials_6.o -> ntlm_auth}
 -> task failed (err #1):
        {task: cc_link
common_8.o,popt_common_5.o,popt_credentials_6.o,regpatch_13.o -> regpatch}
 -> task failed (err #1):
        {task: cc_link
regshell_16.o,popt_common_5.o,smbreadline_1.o,popt_credentials_6.o,common_8.o
-> regshell}
 -> task failed (err #1):
        {task: cc_link
clireadwrite_19.o,cliconnect_19.o,clifile_19.o,clilist_19.o,clitrans2_19.o,climessage_19.o,clideltree_19.o,loadparm_9.o,popt_common_5.o,finddcs_cldap_17.o,gentest_32.o,popt_credentials_6.o,dgramsocket_10.o,mailslot_10.o,netlogon_10.o,browse_10.o
-> gentest}
 -> task failed (err #1):
        {task: cc_link
clireadwrite_19.o,cliconnect_19.o,clifile_19.o,clilist_19.o,clitrans2_19.o,climessage_19.o,clideltree_19.o,loadparm_9.o,popt_common_5.o,finddcs_cldap_17.o,masktest_35.o,popt_credentials_6.o,dgramsocket_10.o,mailslot_10.o,netlogon_10.o,browse_10.o
-> masktest}
 -> task failed (err #1):
        {task: cc_link
samba_server_gensec_8.o,popt_common_5.o,ntptr_simple_ldb_1.o,ntptr_base_2.o,ntptr_interface_2.o,server_9.o,forward_3.o,reply_3.o,dcesrv_auth_3.o,loadparm_3.o
-> samba}
 -> task failed (err #1):
        {task: cc_link
generic_22.o,hive_22.o,diff_22.o,registry_22.o,rap_10.o,rpc_10.o,printing_10.o,sam_10.o,util_smb_1.o,qfsinfo_4.o,qfileinfo_4.o,setfileinfo_4.o,search_4.o,close_4.o,open_4.o,mkdir_4.o,oplock_4.o,notify_4.o,mux_4.o,ioctl_4.o,chkpath_4.o,unlink_4.o,read_4.o,context_4.o,session_4.o,write_4.o,lock_4.o,pingpong_4.o,lockbench_4.o,lookuprate_4.o,tconrate_4.o,openbench_4.o,rename_4.o,eas_4.o,streams_4.o,acls_4.o,seek_4.o,samba3hide_4.o,samba3misc_4.o,composite_4.o,raw_4.o,offline_4.o,clilsa_2.o,common_20.o,basic_20.o,schema_20.o,uptodatevector_20.o,cldap_20.o,cldapbench_20.o,ldap_sort_20.o,nested_search_20.o,ndr_browser_c_120.o,ntlmssp_14.o,pac_14.o,smbencrypt_14.o,ndr_rap_40.o,ndr_rap_40.o,smbtorture_28.o,torture_28.o,shell_28.o,drs_init_1.o,drs_util_1.o,prefixmap_tests_1.o,schemainfo_tests_1.o,dssync_1.o,msds_intid_1.o,query_22.o,register_22.o,wins_22.o,winsbench_22.o,winsreplication_22.o,dgram_22.o,nbt_22.o,wb_async_helpers_4.o,wb_utils_4.o,iconv_1.o,testsuite_1.o,messaging_1.o,irpc_1.o,binding_string_1.o,idtree_1.o,dlinklist_1.o,testsuite_1.o,testsuite_1.o,strlist_1.o,parmlist_1.o,str_1.o,time_1.o,asn1_tests_1.o,data_blob_1.o,file_1.o,genrand_1.o,testsuite_1.o,charset_1.o,convert_string_1.o,sddl_1.o,testsuite_1.o,testsuite_1.o,share_1.o,loadparm_1.o,simple_1.o,local_1.o,dbspeed_1.o,torture_1.o,ldb_1.o,dsdb_dn_1.o,schema_syntax_1.o,anonymous_shared_1.o,ndr_unixinfo_c_119.o,nbio_16.o,nbench_16.o,ndr_remact_c_137.o,join_8.o,lsa_8.o,forest_trust_8.o,lsa_lookup_8.o,session_key_8.o,echo_8.o,dfs_8.o,drsuapi_8.o,drsuapi_cracknames_8.o,dsgetinfo_8.o,spoolss_8.o,spoolss_access_8.o,unixinfo_8.o,samr_8.o,samr_accessmask_8.o,samr_priv_8.o,wkssvc_8.o,srvsvc_8.o,svcctl_8.o,atsvc_8.o,eventlog_8.o,epmapper_8.o,winreg_8.o,initshutdown_8.o,oxidresolve_8.o,remact_8.o,mgmt_8.o,scanner_8.o,autoidl_8.o,countcalls_8.o,testjoin_8.o,schannel_8.o,netlogon_8.o,remote_pac_8.o,samlogon_8.o,samsync_8.o,multi_bind_8.o,dssetup_8.o,alter_context_8.o,bench_8.o,samba3rpc_8.o,rpc_8.o,async_bind_8.o,handles_8.o,frsapi_8.o,object_uuid_8.o,ntsvcs_8.o,browser_8.o,bind_8.o,fsrvp_8.o,backupkey_8.o,spoolss_notify_8.o,spoolss_win_8.o,rap_1.o,ndr_dssetup_c_131.o,ntp_signd_26.o,winsrepl_11.o,base_2.o,misc_2.o,scanner_2.o,utable_2.o,charset_2.o,mangle_test_2.o,denytest_2.o,aliases_2.o,locking_2.o,secleak_2.o,rename_2.o,dir_2.o,delete_2.o,unlink_2.o,disconnect_2.o,delaywrite_2.o,attr_2.o,properties_2.o,ndr_rot_c_105.o,unix_18.o,whoami_18.o,unix_info2_18.o,connect_1.o,scan_1.o,util_1.o,getinfo_1.o,setinfo_1.o,lock_1.o,notify_1.o,smb2_1.o,durable_open_1.o,durable_v2_open_1.o,oplock_1.o,dir_1.o,lease_1.o,create_1.o,acls_1.o,read_1.o,compound_1.o,streams_1.o,ioctl_1.o,rename_1.o,session_1.o,popt_common_5.o,receive_1.o,negprot_1.o,nttrans_1.o,reply_1.o,request_1.o,search_1.o,service_1.o,sesssetup_1.o,srvtime_1.o,trans2_1.o,signing_1.o,libnetapi_1.o,libnetapi_user_1.o,libnetapi_group_1.o,libnetapi_server_1.o,receive_1.o,negprot_1.o,sesssetup_1.o,tcon_1.o,fileio_1.o,fileinfo_1.o,find_1.o,keepalive_1.o,internal_dns_2.o,echo_1.o,handle_4.o,tcon_4.o,session_4.o,blob_4.o,management_4.o,smb_server_4.o,domaindfs_12.o,common_12.o,popt_credentials_6.o,ndr_frsapi_c_115.o,libnet_24.o,utils_24.o,userinfo_24.o,userman_24.o,groupinfo_24.o,groupman_24.o,domain_24.o,libnet_lookup_24.o,libnet_user_24.o,libnet_group_24.o,libnet_share_24.o,libnet_rpc_24.o,libnet_domain_24.o,libnet_BecomeDC_24.o,ndr_fsrvp_c_149.o,dlz_bind9_1.o,testsuite_5.o,strptime_5.o,os2_delete_5.o,getifaddrs_5.o,ndr_6.o,winreg_6.o,atsvc_6.o,lsa_6.o,epmap_6.o,dfs_6.o,netlogon_6.o,drsuapi_6.o,spoolss_6.o,ntprinting_6.o,samr_6.o,dfsblob_6.o,drsblobs_6.o,nbt_6.o,ntlmssp_6.o,string_6.o,backupkey_6.o,echo_1.o,smbreadline_1.o,ndr_ioctl_148.o,libsmbclient_1.o,md4test_2.o,md5test_2.o,hmacmd5test_2.o,aes_cmac_128_test_2.o,winbind_1.o,struct_based_1.o,wbclient_1.o,ndr_oxidresolver_c_136.o
-> smbtorture}
 * ERROR: net-fs/samba-4.0.0_rc2 failed (compile phase):


To my untrained eye, this looks like a problem with the libldb version?
Portage reports that ldb 1.1.12 is installed:

*  sys-libs/ldb
      Latest version available: 1.1.12
      Latest version installed: 1.1.12
      Size of files: 1,084 kB
      Homepage:      http://ldb.samba.org
      Description:   An LDAP-like embedded database
      License:       LGPL-3


Can someone confirm if I am barking up the right tree here? If this is a
problem with the packaging system's configure parameters or something
like that, I'm happy to compile it manually if you think it will help
(and can tell me which parameters should change).

Love your work.
Mike



More information about the samba-technical mailing list