Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perl DynaLoader.a exports dlclose and dlsym.



On Wednesday, Jun 18, 2003, at 09:12 America/Denver, Peter O'Gorman wrote:


On Wednesday, June 18, 2003, at 11:41 PM, Daniel Dvorkin wrote:

Dumb question: is there a drop-in patched version for dl_dyld.xs available somewhere?

... I'm not quite sure if I understand all the changes it's making when I look at the existing dl_dyld.xs. (I'm a newbie, sorry.) Thanks!

I am similarly unsure of exactly what you want to do :)

However, I'll make some assumptions and propose this solution:
1) Make a copy of /System/Library/Perl/darwin/auto/DynaLoader/DynaLoader.a somewhere.
2) Edit your makefiles so that they link against this copy.
3) make a file (call it something like rmsym.txt) with two lines. "_dlclose" on one and "_dlsym" on the other.
4) run nmedit -R rmsym.txt /path/to/your/special/DynaLoader.a
5) make

You may have to run ranlib once or twice in there on your DynaLoader.a copy.

(of course, if you are just doing this for yourself, you could run nmedit on the system DynaLoader.a, but I suggest you don't)

Heh. Thanks. I think this may be a little larger than what I need -- basically all I'm trying to do is install PDL via CPAN, and I get an enormous number of "dyld: perl multiple definitions of symbol _merror" error messages while it's trying to build. So I'm thinking if I rebuild Perl from source with the patched dl_dyld.xs, that might solve the problem. Or am I just completely off base here?

Thanks again!

-- Daniel
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: perl DynaLoader.a exports dlclose and dlsym. (From: "Peter O'Gorman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.