Bug 6736 - smbtorture fails to link on QNX
Summary: smbtorture fails to link on QNX
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Build environment (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 normal
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL: http://build.samba.org/?function=View...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 16:25 UTC by Matt Kraai (mail address dead)
Modified: 2009-09-17 05:53 UTC (History)
0 users

See Also:


Attachments
Port shm_setup to QNX (1.26 KB, patch)
2009-09-16 16:28 UTC, Matt Kraai (mail address dead)
no flags Details
Port the Samba 3 shm_setup to QNX (1.35 KB, patch)
2009-09-16 18:55 UTC, Matt Kraai (mail address dead)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kraai (mail address dead) 2009-09-16 16:25:50 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:

Linking bin/smbtorture
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
Comment 1 Matt Kraai (mail address dead) 2009-09-16 16:28:20 UTC
Created attachment 4708 [details]
Port shm_setup to QNX
Comment 2 Volker Lendecke 2009-09-16 18:35:37 UTC
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?

Volker
Comment 3 Matt Kraai (mail address dead) 2009-09-16 18:55:06 UTC
Created attachment 4710 [details]
Port the Samba 3 shm_setup to QNX

This patch swaps the order of the cases, per comment #2.
Comment 4 Matthias Dieter Wallnöfer 2009-09-17 05:53:10 UTC
Applied.