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.
Created attachment 4709 [details] Port the Samba 4 shm_setup to QNX
Created attachment 4711 [details] Port the Samba 4 shm_setup to QNX Swap the order of the cases to address bug 6737 comment 2.
Applied your patch. Big thanks for your efforts to port SAMBA 4 to QNX!