Bug 8505 - erroneous talloc build failure on OS X Lion
erroneous talloc build failure on OS X Lion
Status: RESOLVED INVALID
Product: TALLOC
Classification: Unclassified
Component: libtalloc
2.0.1
x64 Mac OS X
: P5 normal
: ---
Assigned To: Simo Sorce
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-01 14:56 UTC by Toni
Modified: 2011-10-02 02:26 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni 2011-10-01 14:56:46 UTC
Building talloc v. 2.0.5 and 2.0.7 fails with the following:

***SNIP of build failure for talloc 2.0.7 ***
[19/22] Linking default/libtalloc.dylib
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
Waf: Leaving directory `/private/tmp/talloc-2.0.7/bin'
Build failed:  -> task failed (err #1): 
	{task: cc_link talloc_1.o,replace_2.o,snprintf_2.o,strptime_2.o,getpass_2.o -> libtalloc.dylib}
make: *** [all] Error 1


*** SNIP of build failure for talloc 2.0.5 ***
[19/22] Linking default/libtalloc.dylib
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
Waf: Leaving directory `/private/tmp/talloc-2.0.5/bin'
Build failed:  -> task failed (err #1): 
	{task: cc_link talloc_3.o,replace_2.o,snprintf_2.o,strptime_2.o,getpass_2.o -> libtalloc.dylib}
make: *** [all] Error 1



Running on Darwin argentum 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64 i386 MacBookPro6,1 Darwin


Both builds fail with when linking with ld complaining about '-rpath' flag when targeting OS X 10.5 or later, and in this case, I gather, this should not be happening as I'm building on OS X Lion 10.7.1

Anyhow, I'd be more than happy to supply more information if you need it, just let me know what you need.

Thanks,

Toni
Comment 1 Stefan Metzmacher 2011-10-01 17:35:53 UTC
Does ./configure --disable-rpath helps?
Comment 2 Toni 2011-10-02 02:26:18 UTC
(In reply to comment #1)
> Does ./configure --disable-rpath helps?

Taking a moment and checking if that was an option in configure would have been "The Smart Thing To Do (TM)"

Yes it compiles, sorry to have wasted your time.


Toni