Bug 6621 - talloc fails to build on QNX 6.4.1
Summary: talloc fails to build on QNX 6.4.1
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: Other Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Jelmer Vernooij
QA Contact: Matthias Dieter Wallnöfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 15:57 UTC by Matt Kraai (mail address dead)
Modified: 2009-08-08 04:59 UTC (History)
0 users

See Also:


Attachments
Set SONAMEFLAG to "-Wl,-soname=" on QNX (698 bytes, patch)
2009-08-07 16:02 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-08-07 15:57:37 UTC
When I try to build talloc on a QNX 6.4.1 system, it fails as follows:

 gcc -shared  -o libtalloc.so.1.4.0 ./talloc.o  replace.o snprintf.o getpass.o strptime.o timegm.o   libtalloc.so.1
 gcc: libtalloc.so.1: No such file or directory

The problem is that SONAMEFLAG is empty, so gcc misinterprets "libtalloc.so.1" as a file name instead of as the SO name.

The linker on QNX accepts both -h and -soname flags to specify the SO name, so this problem can be fixed by setting SONAMEFLAG to "-Wl,-h,", "-Wl,-soname,", or "-Wl,-soname=".
Comment 1 Matt Kraai (mail address dead) 2009-08-07 16:02:05 UTC
Created attachment 4528 [details]
Set SONAMEFLAG to "-Wl,-soname=" on QNX
Comment 2 Matthias Dieter Wallnöfer 2009-08-08 04:59:12 UTC
Thanks, applied!