The Samba-Bugzilla – Bug 6736
smbtorture fails to link on QNX
Last modified: 2009-09-17 05:53:10 UTC
When the master branch of Samba 3 is built on QNX, it fails to link smbtorture because QNX does not provide shmat, shmctl, or shmget:
torture/torture.o: In function `shm_setup':
torture.c:(.text+0xdf5a): undefined reference to `shmget'
torture.c:(.text+0xdf8a): undefined reference to `shmat'
torture.c:(.text+0xdfbb): undefined reference to `shmctl'
collect2: ld returned 1 exit status
make: *** [bin/smbtorture] Error 1
Created attachment 4708 [details]
Port shm_setup to QNX
Cosmetic comment: I'd rather see a #ifdef QNX instead of #ifndef QNX. The special case is handled in the if-part. Is that possible also?
Created attachment 4710 [details]
Port the Samba 3 shm_setup to QNX
This patch swaps the order of the cases, per comment #2.