Bug 9010 - Compilation error in static linking...
Summary: Compilation error in static linking...
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.0 beta3
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 14:27 UTC by sss
Modified: 2014-01-09 17:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sss 2012-06-27 14:27:18 UTC
Configured using below command..

./configure --without-ad-dc --nonshared-binary=smbd,smbpasswd

When linking below linker error raised...
[2525/2650] Linking default/source3/smbpasswd
default/lib/krb5_wrap/krb5_samba_1.o: In function `kerberos_kinit_keyblock_cc':
krb5_samba.c:(.text+0x2b3d): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/bin/ld: warning: libcom_err.so.2, needed by /lib/libssl.so.6, may conflict with libcom_err.so.3
default/lib/ldb/pyldb_util_1.o: In function `PyLdb_GetPyType':
pyldb_util.c:(.text+0x2d): undefined reference to `PyImport_ImportModule'
pyldb_util.c:(.text+0x5b): undefined reference to `PyObject_GetAttrString'
default/lib/ldb/pyldb_util_1.o: In function `pyldb_Object_AsDn':
pyldb_util.c:(.text+0x91): undefined reference to `PyString_Type'
pyldb_util.c:(.text+0xa1): undefined reference to `PyString_Type'
pyldb_util.c:(.text+0xad): undefined reference to `PyType_IsSubtype'
pyldb_util.c:(.text+0xbc): undefined reference to `PyString_AsString'
pyldb_util.c:(.text+0x126): undefined reference to `PyType_IsSubtype'
pyldb_util.c:(.text+0x144): undefined reference to `PyExc_TypeError'
pyldb_util.c:(.text+0x158): undefined reference to `PyErr_SetString'
default/lib/ldb/pyldb_util_1.o: In function `pyldb_Dn_FromDn':
pyldb_util.c:(.text+0x186): undefined reference to `_Py_NoneStruct'
pyldb_util.c:(.text+0x191): undefined reference to `_Py_NoneStruct'
pyldb_util.c:(.text+0x199): undefined reference to `_Py_NoneStruct'
pyldb_util.c:(.text+0x1eb): undefined reference to `PyErr_NoMemory'
collect2: ld returned 1 exit status
Waf: Leaving directory `/root/Senthilkumar/samba-4.0.0beta1/bin'
Build failed:  -> task failed (err #1):
        {task: cc_link replace_2.o,getpass_2.o,loadparm_server_role_4.o,ndr_idmap_41.o,tls_1.o,tlscert_1.o,tls_tstream_1.o,flag_mapping_1.o,ndr_srvsvc_51.o,ndr_schannel_89.o,ndr_schannel_89.o,ndr_eventlog6_76.o,ndr_nbt_90.o,ndr_nbt_90.o,loadparm_38.o,sharesec_38.o,ldap_debug_handler_38.o,util_names_38.o,schema_init_10.o,schema_set_10.o,schema_query_10.o,schema_syntax_10.o,schema_description_10.o,schema_convert_to_ol_10.o,schema_inferiors_10.o,schema_prefixmap_10.o,schema_info_attr_10.o,schema_filtered_10.o,dsdb_dn_10.o,secrets_6.o,talloc_1.o,ndr_netlogon_c_138.o,cli_samr_131.o,pdb_ldap_2.o,pdb_nds_2.o,pdb_ipa_2.o,pdb_ldap_util_2.o,smbldap_71.o,loadparm_7.o,generic_7.o,util_7.o,gensec_ntlmssp_1.o,ntlmssp_1.o,ntlmssp_util_1.o,ntlmssp_ndr_1.o,ntlmssp_client_1.o,ntlmssp_server_1.o,ntlmssp_sign_1.o,gensec_ntlmssp_server_1.o,bcast_15.o,nbtlist_15.o,wins_15.o,dns_ex_15.o,file_15.o,host_15.o,resolve_lp_15.o,pdb_smbpasswd_3.o,msrpc_parse_4.o,ndr_orpc_27.o,ndr_orpc_27.o,auth_generic_63.o,ndr_eventlog_53.o,smbconf_init_83.o,smbconf_reg_83.o,gensec_gssapi_3.o,ndr_unixinfo_18.o,kerberos_pac_2.o,dnsquery_1.o,dnsrecord_1.o,dnsutils_1.o,dnssock_1.o,dnsgss_1.o,dnsmarshall_1.o,error_1.o,spnego_7.o,ndr_dcom_30.o,credentials_secrets_8.o,credentials_6.o,session_6.o,smbencrypt_6.o,smbdes_6.o,ndr_notify_42.o,init_lsa_144.o,ndr_string_151.o,ndr_basic_151.o,uuid_151.o,ndr_151.o,ndr_misc_151.o,ndr_misc_151.o,util_151.o,cldap_1.o,ndr_secrets_5.o,lmhosts_3.o,ndr_epmapper_c_125.o,dns_hosts_file_2.o,socket_7.o,access_7.o,connect_multi_7.o,connect_7.o,passchange_113.o,util_reg_1.o,socket_unix_6.o,spnego_parse_10.o,gse_krb5_16.o,gse_16.o,version_114.o,util_cmdline_52.o,ndr_lsa_c_108.o,ldap_message_1.o,ldap_ndr_1.o,krb5_samba_1.o,gss_samba_1.o,keytab_util_1.o,ndr_atsvc_4.o,smb_signing_1.o,smb_seal_1.o,smb2_create_blob_1.o,smb2_signing_1.o,util_1.o,read_smb_1.o,smbXcli_base_1.o,smb1cli_trans_1.o,smb2cli_session_1.o,smb2cli_create_1.o,smb2cli_close_1.o,smb2cli_read_1.o,smb2cli_write_1.o,smb2cli_flush_1.o,smb2cli_set_info_1.o,smb2cli_query_info_1.o,smb2cli_query_directory_1.o,smb2cli_ioctl_1.o,ndr_ntlmssp_43.o,ndr_ntlmssp_43.o,errormap_130.o,smberr_130.o,errmap_unix_130.o,ndr_samr_c_109.o,system_56.o,sendfile_56.o,recvfile_56.o,time_56.o,util_sid_56.o,util_file_56.o,util_56.o,util_sock_56.o,util_transfer_file_56.o,sock_exec_56.o,ndr_dcerpc_59.o,util_lsarpc_1.o,composite_4.o,srv_keytab_8.o,cli_pipe_19.o,rpc_common_19.o,rpc_transport_np_19.o,rpc_transport_sock_19.o,rpc_transport_tstream_19.o,dcerpc_helpers_19.o,ndr_file_id_99.o,reg_api_44.o,reg_dispatcher_44.o,reg_cachehook_44.o,reg_objects_44.o,reg_util_internal_44.o,util_nttoken_44.o,reg_backend_db_44.o,reg_parse_internal_44.o,cbuf_44.o,srprs_44.o,reg_init_basic_44.o,util_6.o,util_groups_6.o,util_samr_6.o,dsdb_dn_6.o,dsdb_access_6.o,util_tdb_120.o,util_tdb_25.o,pidfile_57.o,tevent_1.o,tevent_debug_1.o,tevent_fd_1.o,tevent_immediate_1.o,tevent_queue_1.o,tevent_req_1.o,tevent_select_1.o,tevent_poll_1.o,tevent_signal_1.o,tevent_standard_1.o,tevent_timed_1.o,tevent_util_1.o,tevent_wakeup_1.o,tevent_epoll_1.o,ldap_client_1.o,ldap_bind_1.o,ldap_ildap_1.o,ldap_controls_1.o,ndr_wkssvc_55.o,ndr_svcctl_50.o,ndr_svcctl_50.o,iconv_1.o,check_1.o,free_1.o,hash_1.o,io_1.o,lock_1.o,open_1.o,summary_1.o,tdb_1.o,transaction_1.o,traverse_1.o,tdb1_check_1.o,tdb1_freelist_1.o,tdb1_hash_1.o,tdb1_io_1.o,tdb1_lock_1.o,tdb1_open_1.o,tdb1_summary_1.o,tdb1_tdb_1.o,tdb1_transaction_1.o,tdb1_traverse_1.o,tevent_s4_1.o,ndr_compression_58.o,ndr_eventlog_c_124.o,ndr_lsa_47.o,tdb_compat_1.o,dbwrap_1.o,dbwrap_util_1.o,dbwrap_rbt_1.o,dbwrap_cache_1.o,dbwrap_tdb_1.o,async_sock_1.o,socket_1.o,gensec_tstream_1.o,unexpected_110.o,namecache_110.o,nmblib_110.o,namequery_110.o,conncache_110.o,sitename_cache_110.o,ldb_wrap_5.o,dynconfig_1.o,cldap_67.o,ntlmssp_62.o,ntlmssp_wrap_62.o,resolve_13.o,samdb_1.o,samdb_privilege_1.o,cracknames_1.o,replicated_objects_1.o,util_35.o,ndr_winreg_c_129.o,passwd_util_101.o,dom_sid_1.o,display_sec_1.o,secace_1.o,secacl_1.o,security_descriptor_1.o,sddl_1.o,privileges_1.o,security_token_1.o,access_check_1.o,objec
t_tree_1.o,create_descriptor_1.o,util_sid_1.o,session_1.o,secdesc_1.o,dcerpc_error_158.o,binding_158.o,dcerpc_util_158.o,binding_handle_158.o,kerberos_55.o,ads_status_55.o,doserr_1.o,errormap_1.o,nterr_1.o,errmap_unix_1.o,socket_ip_5.o,pyldb_util_1.o,ndr_epmapper_22.o,reg_backend_smbconf_47.o,reg_init_smbconf_47.o,reg_util_token_47.o,reg_api_util_47.o,krb5_init_context_1.o,lzxpress_1.o,auth_sam_reply_1.o,ndr_ntsvcs_54.o,interfaces_1.o,ndr_wkssvc_c_119.o,ndr_drsblobs_66.o,ndr_drsblobs_66.o,ndr_srvsvc_c_120.o,kerberos_util_6.o,charcnv_127.o,fstring_127.o,talloc_stack_1.o,smb_threads_1.o,xfile_1.o,data_blob_1.o,util_file_1.o,time_1.o,rbtree_1.o,rfc1738_1.o,select_1.o,genrand_1.o,fsusage_1.o,blocking_1.o,become_daemon_1.o,signal_1.o,system_1.o,params_1.o,util_1.o,util_id_1.o,util_net_1.o,util_strlist_1.o,util_paths_1.o,idtree_1.o,debug_1.o,fault_1.o,base64_1.o,util_str_1.o,util_str_common_1.o,substitute_1.o,ms_fnmatch_1.o,server_id_1.o,dprintf_1.o,parmlist_1.o,bitmap_1.o,util_pw_37.o,nbtname_1.o,ndr_named_pipe_auth_5.o,wbc_guid_1.o,wbc_idmap_1.o,wbclient_1.o,wbc_pam_1.o,wbc_pwd_1.o,wbc_sid_1.o,wbc_util_1.o,ndr_echo_56.o,gssapi_pac_1.o,kerberos_pac_1.o,pdb_wbc_sam_4.o,ndr_netlogon_52.o,ndr_netlogon_52.o,ndr_dfs_c_110.o,packet_1.o,schannel_state_tdb_8.o,schannel_sign_8.o,mapping_26.o,mapping_tdb_26.o,ndr_drsuapi_62.o,ndr_drsuapi_62.o,ndr_spoolss_c_117.o,crc32_1.o,hmacmd5_1.o,md4_1.o,arcfour_1.o,sha256_1.o,hmacsha256_1.o,aes_1.o,rijndael-alg-fst_1.o,aes_cmac_128_1.o,md5_1.o,pdb_get_set_28.o,passdb_28.o,util_wellknown_28.o,util_builtin_28.o,pdb_compat_28.o,util_unixsids_28.o,lookup_sid_28.o,login_cache_28.o,account_pol_28.o,privileges_28.o,util_nscd_28.o,winbind_util_28.o,pdb_util_28.o,pdb_interface_28.o,pdb_ldap_schema_28.o,pdb_secrets_28.o,pdb_unixid_28.o,pam_errors_9.o,ldif_handlers_1.o,ndr_mgmt_26.o,loadparm_ctx_36.o,tevent_unix_28.o,tevent_ntstatus_28.o,tevent_werror_28.o,ndr_ntsvcs_c_137.o,ndr_auth_2.o,ndr_auth_2.o,ndr_ntprinting_45.o,ndr_ntprinting_45.o,ndr_security_48.o,ndr_sec_helper_48.o,ndr_spoolss_19.o,ndr_echo_c_105.o,schannel_5.o,system_session_9.o,ndr_initshutdown_57.o,smbpasswd_175.o,ndr_dnsp_44.o,ndr_dnsp_44.o,ndr_dfs_9.o,smbconf_1.o,smbconf_txt_1.o,smbconf_util_1.o,ndr_atsvc_c_102.o,pthreadpool_1.o,netlogon_1.o,codepoints_2.o,convert_string_2.o,util_str_2.o,util_unistr_w_2.o,pull_push_2.o,util_unistr_2.o,weird_2.o,charset_macosxfs_2.o,asn1_20.o,messages_58.o,messages_local_58.o,messages_ctdbd_58.o,ctdb_packet_58.o,ctdbd_conn_58.o,ctdb_conn_58.o,msg_channel_58.o,id_cache_58.o,talloc_dict_58.o,serverid_58.o,addrchange_58.o,dbwrap_open_58.o,dbwrap_ctdb_58.o,dbwrap_watch_58.o,g_lock_58.o,debug_s3_58.o,dumpcore_58.o,interface_58.o,username_58.o,access_58.o,smbrun_58.o,wins_srv_58.o,substitute_58.o,substitute_generic_58.o,ms_fnmatch_58.o,tallocmsg_58.o,dmallocmsg_58.o,lang_tdb_58.o,conn_tdb_58.o,gencache_58.o,sessionid_tdb_58.o,events_58.o,server_contexts_58.o,server_prefork_58.o,server_prefork_util_58.o,ldap_escape_58.o,fncall_58.o,krb5_errs_58.o,system_smbd_58.o,audit_58.o,idmap_cache_58.o,ndr_dns_7.o,ndr_dns_7.o,gensec_1.o,gensec_start_1.o,gensec_util_1.o,secrets_68.o,machine_account_secrets_68.o,machine_sid_68.o,secrets_lsa_68.o,session_1.o,wb_common_1.o,server_mutex_34.o,ntlm_check_5.o,credentials_krb5_7.o,clientgen_64.o,cliconnect_64.o,clifile_64.o,clispnego_64.o,clirap_64.o,clierror_64.o,climessage_64.o,clireadwrite_64.o,clilist_64.o,cliprint_64.o,clitrans_64.o,clisecdesc_64.o,clidgram_64.o,clistr_64.o,cliquota_64.o,clifsinfo_64.o,clidfs_64.o,clioplock_64.o,clirap2_64.o,async_smb_64.o,smb2cli_tcon_64.o,cli_np_tstream_64.o,reparse_symlink_64.o,clisymlink_64.o,smbsock_connect_64.o,credentials_1.o,ndr_spoolss_buf_20.o,ndr_messaging_3.o,modules_17.o,ndr_initshutdown_c_130.o,ndr_samr_46.o,sam_11.o,interface_1.o,ndr_xattr_88.o,ndr_xattr_88.o,tdb_wrap_1.o,ndr_dns_c_104.o,util_sec_121.o,util_str_121.o,adt_tree_121.o,util_malloc_121.o,memcache_121.o,string_init_121.o,namearray_121.o,file_id_121.o,credentials_ntlm_9.o,smbd_shim_59.o,pdb_tdb_1.o,ndr_winreg_10.o,ldb_33.o,cyrus_sasl_4.o,ldb_modules_5.o,ldb_ldif_5.o,ldb
_parse_5.o,ldb_msg_5.o,ldb_utf8_5.o,ldb_debug_5.o,ldb_dn_5.o,ldb_match_5.o,ldb_options_5.o,ldb_attributes_5.o,attrib_handlers_5.o,ldb_controls_5.o,qsort_5.o,ldb_map_5.o,ldb_map_inbound_5.o,ldb_map_outbound_5.o,util_ldb_34.o,ndr_krb5pac_70.o,ndr_krb5pac_70.o,failtest_1.o,hash_1.o,htable_1.o,ilog_1.o,likely_1.o,list_1.o,read_write_all_1.o,debug_1.o,str_1.o,tally_1.o,time_1.o,nbtsocket_4.o,namequery_4.o,nameregister_4.o,namerefresh_4.o,namerelease_4.o,repl_decrypt_1.o,ndr_server_id_36.o,ndr_dssetup_24.o,tsocket_1.o,tsocket_helpers_1.o,tsocket_bsd_1.o,ndr_svcctl_c_121.o -> smbpasswd}
make: *** [all] Error 1
[root@localhost samba-4.0.0beta1]#

Note : Linking is done successfully when configure with out Option : --nonshared-binary
Comment 1 Andrew Bartlett 2012-11-14 23:40:52 UTC
For some reason smbpasswd is pulling in pyldb-util.  We would have to work out why that is happening, as without the AD DC, there should be little reason to link that in here.
Comment 2 Karolin Seeger 2013-06-27 10:29:28 UTC
Is this still an issue?
Comment 3 Andrew Bartlett 2013-06-27 11:05:43 UTC
Yes it still happens, but no, I'm not sure if we should particularly call it a bug, or fix it.  Certainly not a blocker for anything - the only binary we ever really tried to have work 'nonshared' is smbtorture, and the testsuite for that (the recursive build from autoconf) has gone away in master.
Comment 4 Matthias Dieter Wallnöfer 2014-01-09 17:39:00 UTC
This is not critical, but rather a normal bug.