[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: Peter O'Gorman
Subject: Re: Libtool 1.5.8 problems on OSX: ${wl} evaluation [#9382]
Date: Wed, 13 Oct 2004 23:13:12 +0900
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

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 -

reply via email to

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