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.



Excellent! This looks like it might solve the "multiply defined symbols" problem I get when I'm trying to build PDL.

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

--- 5.8.1/ext/DynaLoader/dl_dyld.xs.old Tue Jun 17 23:16:59 2003
+++ 5.8.1/ext/DynaLoader/dl_dyld.xs Tue Jun 17 23:18:10 2003
@@ -54,7 +54,7 @@
return dl_last_error;
}

-int dlclose(handle) /* stub only */
+static int dlclose(handle) /* stub only */
void *handle;
{
return 0;
@@ -122,7 +122,7 @@
return handle;
}

-void *
+static void *
dlsym(handle, symbol)
void *handle;
char *symbol;

... 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!

-- Daniel Dvorkin
_______________________________________________
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.



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.