[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Libtool 1.5.8 problems on OSX: ${wl} evaluation [#9382]

From: Donald Anderson
Subject: Re: Libtool 1.5.8 problems on OSX: ${wl} evaluation [#9382]
Date: Fri, 15 Oct 2004 12:53:58 -0400

Peter, Gary and other libtoolers,

I wasn't sure George got back to you on this.
With some more testing, apparently MACOSX_DEPLOYMENT_TARGET set to 10.3
*does* work for us. I suspect something didn't get rebuilt the first time around.

I think we all agree that there is a problem in echoing '${wl}'.
That red herring got us poking at the wrong issue, but doesn't
seem to be a critical problem.

Thanks for your quick responses and suggestions!
We look forward to trying out libtool 2.0 when it appears.

- Don

On Oct 13, 2004, at 10:13 AM, Peter O'Gorman wrote:

George Feinberg wrote:
Note that ALL 3 of these libraries load all of the core DB .o files, and therefore
duplicate those symbols.

This is the problem. Tcl, for some reason, uses NSAddImage to load objects at runtime on darwin/Mac OS X. NSAddImage, and NSAddLibrary, are unable to load objects privately, so for flat_namespace images you will get conflicts and the library will fail to load. I have no idea why the Tcl folks went with loading objects of type MH_DYLIB, not MH_BUNDLE, it makes no sense. It also means that Tcl can not work on the original Mac OS X 10.0.x, that api was not available then. Note that the file which does this is (c) Apple Computer and atributed to Wilfredo Sanchez, but Wilfredo left Apple before the NSAddImage api became available, so it isn't his fault :)

If you rebuild all your libraries with MACOSX_DEPLOYMENT_TARGET set to 10.3, it should cause you to get two level namespace libraries, which may be capable of being simultaneously loaded by Tcl.

Alternatively, you could try and ensure that libdb_cxx is not loaded by Tcl at the same time as libdb_tcl or libdb.

I don't really have time until the weekend, maybe next week, but if you send me some info on how to replicate this issue, I'll try and give you some more alternatives.

Peter O'Gorman -


Don Anderson
Java, Berkeley DB, systems consultant

Voice:  617-547-7881
Email:  address@hidden (or address@hidden)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]