Mailing Lists: Apple Mailing Lists

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

perl DynaLoader.a exports dlclose and dlsym.



Hi,
The following patch was applied to upstream perl last night as change #19805. This is apple bug RADAR #2902185 and opendarwin bug #41.

Could someone please apply the patch to apple's repository also?

Here is my e-mail to perl5-porters:
Due to the fact that perl has dlclose and dlsym as global functions on darwin/Mac OS X, it is a little difficult to use the dlcompat (http://www.opendarwin.org/projects/dlcompat) library with apps that use libperl.

The dlclose function is not referenced directly anywhere in perl, and dlsym is only called from within dl_dyld.xs.

The fact that dlopen and dlerror are declared static makes this situation worse (dlcompat's dlopen get's called, but libperl's dlsym (a major pain to sort out link order and so on).


And the patch (this should apply to perl 5.6 through 5.8.1)
Thanks,
Peter
Note to list admin: sorry, third post, sent the first two from the wrong address (yes, that was dumb).

--- 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;
_______________________________________________
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.