Bug 6737 - Linking smbtorture fails on QNX
Summary: Linking smbtorture fails on QNX
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: smbtorture (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 18:04 UTC by Matt Kraai (mail address dead)
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 (mail address dead)
no flags Details
Port the Samba 4 shm_setup to QNX (1.36 KB, patch)
2009-09-16 19:06 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 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 (mail address dead) 2009-09-16 18:08:18 UTC
Created attachment 4709 [details]
Port the Samba 4 shm_setup to QNX
Comment 2 Matt Kraai (mail address dead) 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!