Bug 6737 - Linking smbtorture fails on QNX
Linking smbtorture fails on QNX
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: smbtorture
unspecified
Other Other
: P3 normal
: ---
Assigned To: Andrew Bartlett
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-16 18:04 UTC by Matt Kraai
Modified: 2009-09-17 02:52 UTC (History)
0 users

See Also:


Attachments
Port the Samba 4 shm_setup to QNX (1.36 KB, patch)
2009-09-16 18:08 UTC, Matt Kraai
no flags Details
Port the Samba 4 shm_setup to QNX (1.36 KB, patch)
2009-09-16 19:06 UTC, Matt Kraai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kraai 2009-09-16 18:04:32 UTC
When I try to build Samba 4 on QNX, smbtorture fails to link because shmat, shmctl, and shmget are not provided:

Linking bin/smbtorture
bin/mergedobj/torture_util.o: In function `shm_setup':
(.text+0x7fa): undefined reference to `shmget'
bin/mergedobj/torture_util.o: In function `shm_setup':
(.text+0x82f): undefined reference to `shmat'
bin/mergedobj/torture_util.o: In function `shm_setup':
(.text+0x869): undefined reference to `shmctl'
collect2: ld returned 1 exit status
make: *** [bin/smbtorture] Error 1

This is similar to bug 6736.
Comment 1 Matt Kraai 2009-09-16 18:08:18 UTC
Created attachment 4709 [details]
Port the Samba 4 shm_setup to QNX
Comment 2 Matt Kraai 2009-09-16 19:06:58 UTC
Created attachment 4711 [details]
Port the Samba 4 shm_setup to QNX

Swap the order of the cases to address bug 6737 comment 2.
Comment 3 Matthias Dieter Wallnöfer 2009-09-17 02:52:20 UTC
Applied your patch. Big thanks for your efforts to port SAMBA 4 to QNX!