Bug 9863 - external setproctitle library not linked properly
external setproctitle library not linked properly
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Build
4.0.5
All All
: P5 normal
: ---
Assigned To: Björn Jacke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-07 06:42 UTC by Arkadiusz Miskiewicz
Modified: 2013-05-07 06:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadiusz Miskiewicz 2013-05-07 06:42:26 UTC
When using external setproctitle library not everything is linked correctly
(lack of -lsetproctitle? cannot tell for sure since it is some werid non verbose build mode):

full log: http://tnij.org/vlsu

[2626/3073] Linking default/source4/smbd/libprocess-model-prefork.so
../source4/smbd/process_onefork.c:103: error: undefined reference to 'setproctitle'
../source4/smbd/process_onefork.c:128: error: undefined reference to 'setproctitle'
../source4/smbd/process_onefork.c:130: error: undefined reference to 'setproctitle'
collect2: error: ld returned 1 exit status
[2627/3073] Linking default/source4/dsdb/samdb/ldb_modules/libldb-simple-ldap-map.so
../source4/smbd/process_standard.c:124: error: undefined reference to 'setproctitle'
../source4/smbd/process_standard.c:178: error: undefined reference to 'setproctitle'
../source4/smbd/process_standard.c:213: error: undefined reference to 'setproctitle'
../source4/smbd/process_standard.c:215: error: undefined reference to 'setproctitle'
collect2: error: ld returned 1 exit status
../source4/smbd/process_prefork.c:114: error: undefined reference to 'setproctitle'
../source4/smbd/process_prefork.c:143: error: undefined reference to 'setproctitle'
../source4/smbd/process_prefork.c:186: error: undefined reference to 'setproctitle'
../source4/smbd/process_prefork.c:188: error: undefined reference to 'setproctitle'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/tmp/B.c44b4e9c-40f3-4a17-ad31-310226be1822/BUILD/samba-4.0.5/bin'
Build failed:
 -> task failed (err #1): 
	{task: cc_link process_onefork_16.o -> libprocess-model-onefork.so}
 -> task failed (err #1): 
	{task: cc_link process_standard_12.o -> libprocess-model-standard.so}
 -> task failed (err #1): 
	{task: cc_link process_prefork_14.o -> libprocess-model-prefork.so}
make: *** [all] Error 1