Samba 4.0 Alpha 20 fails to build with an error. [3367/3940] Linking default/lib/util/libsamba-util.so [3368/3940] Linking default/source4/heimdal_build/libroken-samba4.so [3369/3940] Linking default/lib/ccan/libccan.so [3370/3940] Linking default/lib/util/libtevent-util.so [3371/3940] Linking default/nsswitch/libwinbind-client.so [3372/3940] Linking default/lib/util/libwrap_xattr.so /usr/bin/ld: default/lib/ccan/failtest/failtest_1.o: relocation R_X86_64_PC32 against symbol `failtest_timeout_ms' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status /usr/bin/ld: default/lib/util/tevent_ntstatus_31.o: relocation R_X86_64_PC32 against symbol `tevent_req_is_nterror' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status /usr/bin/ld: default/lib/util/talloc_stack_1.o: relocation R_X86_64_PC32 against symbol `talloc_stackframe' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status /usr/bin/ld: default/nsswitch/wb_common_1.o: relocation R_X86_64_PC32 against symbol `winbindd_get_response' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status /usr/bin/ld: default/source4/heimdal/lib/roken/getarg_1.o: relocation R_X86_64_PC32 against symbol `arg_printusage_i18n' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status Waf: Leaving directory `/home/mandrake/rpm/BUILD/samba-4.0.0alpha20/bin' Build failed: -> task failed (err #1): {task: cc_link 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 -> libccan.so} -> task failed (err #1): {task: cc_link tevent_unix_31.o,tevent_ntstatus_31.o,tevent_werror_31.o -> libtevent-util.so} -> task failed (err #1): {task: cc_link 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,dynconfig_1.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,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,iconv_1.o -> libsamba-util.so} -> task failed (err #1): {task: cc_link wb_common_1.o -> libwinbind-client.so} -> task failed (err #1): {task: cc_link base64_1.o,ct_1.o,hex_1.o,bswap_1.o,dumpdata_1.o,emalloc_1.o,ecalloc_1.o,getarg_1.o,get_window_size_1.o,getdtablesize_1.o,h_errno_1.o,issuid_1.o,net_read_1.o,net_write_1.o,parse_time_1.o,parse_units_1.o,vis_1.o,strlwr_1.o,strsep_copy_1.o,strsep_1.o,strupr_1.o,strpool_1.o,estrdup_1.o,erealloc_1.o,simple_exec_1.o,strcollect_1.o,rtbl_1.o,rand_1.o,cloexec_1.o,xfree_1.o,replace_1.o,closefrom_1.o,resolve_1.o,socket_1.o,roken_gethostby_1.o -> libroken-samba4.so} make: *** [all] Error 1 error: Bad exit status from /home/mandrake/rpm/tmp/rpm-tmp.74619 (%build)
Please provide exact steps to reproduce, including target platform any any information on special linker flags that platform may have by default.
Dowload the Mandriva Linux Samba 4 SRPM for 2011 and all related dependencies. Then bump the version number up from Alpha 15 to alpha 20. (From Cooker or 2011) in samba4.spec run rpmbuild -ba samba4.spec This is the prototype SRPM for Mandriva Cooker.
To ease reproduction outside the RPM build environment, can you please attempt to reproduce with and provide instructions for a raw GIT tree and without the RPM wrapper? If steps can be details to reproduce on generic linux, we will be able to get to this faster. Alternately, does this reproduce on any other distribution or in a live-CD that would be easy to host in a VM, or just in Cooker? This will assist greatly in trying to reproduce your issue.
This happens on All versions of Mandriva whether using Cooker, 2010.2, or 2011. It makes no difference. The RPM SPEC File just automates the building process.
Is it still possible to reproduce this with rc1? Can you attach your config.log ?
closing because: 1. Samba 4.0 Alpha 20 is out of support. 2. Insufficient information was provided. 3. The unnamed compiler/linker is also EOL. 4. Mandriva is itself dead.