Hi,

I was trying to compile libdbi on AIX 5.2, which lacks RTLD_NEXT used by
libdbi to resolve something called "custom functions".

I've grepped the libdbi-drivers code, and none of the drivers currently
use custom_functions.

I was wondering what the aim with this function is, and whether I could
replace RTLD_NEXT with the driver's shared object handle. E.g. something
like this:

[EMAIL PROTECTED]:~/src/libdbi8-0.8.3/src$ diff -u dbi_main.c dbi_main.c-bazsi
--- dbi_main.c  2008-06-02 14:45:33.000000000 +0200
+++ dbi_main.c-bazsi    2008-08-01 08:57:46.000000000 +0200
@@ -1277,7 +1277,7 @@
 /*                     snprintf(function_name, 256, DLSYM_PREFIX "dbd_%s", 
custom->name); */
 /*                     printf("loading %s<<\n", custom->name); */
 
-                       custom->function_pointer = my_dlsym(RTLD_NEXT, 
custom->name);
+                       custom->function_pointer = my_dlsym(driver->dlhandle, 
custom->name);
                        if (!custom->function_pointer) {
 /*                       printf(my_dlerror()); */
                          /* this usually fails because a function was



-- 
Bazsi


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libdbi-drivers-devel mailing list
Libdbi-drivers-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel

Reply via email to