develooper Front page | perl.macosx | Postings from August 2001

Re: JPEG, PerlMagick, GD.pm (was Re: Cocoa interfaces)

Thread Previous | Thread Next
From:
emoy
Date:
August 31, 2001 22:09
Subject:
Re: JPEG, PerlMagick, GD.pm (was Re: Cocoa interfaces)
Message ID:
6AC9522B-9E97-11D5-8A87-0003930AAF98@apple.com
On Friday, August 31, 2001, at 11:43 AM, Ken Williams wrote:

> emoy@apple.com (Edward Moy) wrote:
>> I don't know first-hand about Gnome libXML and libXSLT, but the 
>> config.*
>> trick is probably one that will get you through most.  There are some
>> things that special case for NeXTStep/OpenStep code, but don't know 
>> about
>> darwin directly, so you have to modify the code to do it the
>> NeXTStep/OpenStep way (e.g., the dynamic loader stuff in Apache has 
>> needed
>> this fix).
>
> Oh, that's interesting.  I've been trying to compile the libpreq stuff
> (Apache::Request, Apache::Cookie, etc.) for the past couple of days, and
> I end up getting errors saying that some symbols are multiply-defined.
>
> Any specifics on getting this to work?

The dynamic loader stuff in Apache has to do with loading Apache 
modules.  When Apache starts up, it actually loads each module twice.  
On some operating systems (like NeXT), it isn't possible to unload 
symbol, and so the second load of the modules would result in duplicate 
symbol errors.  So the Apache fix is to rebind to the new symbols and 
forget the old symbols.  For MacOSX, the patch is to set the same flag 
(DYLD_CANT_UNLOAD) that would be set on NeXT.

I don't think this is your problem though.  Multiply-defined symbols 
usually results when you compile two separate module with the same 
static library.  The symbols, then, are really multiply-defined.

The way around this is to make the library a dynamic library, so that 
the two modules will bind to this same dynamic library.

> By the way, the testers.cpan.org site is a good place to share this
> information.
>
>
>> Mailing lists (and archives) are often a good source of this 
>> information
>> and we like to share our experiences and successes with others.
>
> What are those lists?  Things like libapreq are on-topic here, but I
> don't feel quite right asking about things like the Bow IR library
> (http://www.cs.cmu.edu/~mccallum/bow), and I'd love to know of a better
> list for these kinds of questions.

There are lists for most popular packages.  For MacOSX developer issues 
in general, macosx-dev@omnigroup.com is one list.
--------------------------------------------------------------------------
Edward Moy
Apple Computer, Inc.
emoy@apple.com

(This message is from me as a reader of this list, and not a statement
from Apple.)


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About