rse 98/03/23 07:44:16
Modified: src/modules/standard mod_so.c
Log:
if apache+HIDE && module+!HIDE then
no chance at all, because dlopen() cannot implicitly
resolve apache's XXX symbols for module because they
are named AP_XXX
else if apache+!HIDE && module+HIDE then
no chance at all, because dlopen() cannot implicitly
resolve apache's AP_XXX symbols for module because they
are named XXX
else if apache+HIDE && module+HIDE then
we have to prefix the resolved module symbol with AP_
(THIS PATCH!)
else if apache+!HIDE && module+!HIDE then
we have to just resolve the symbol as is
(AS ALREADY DONE IN THE PAST)
Revision Changes Path
1.14 +4 -0 apache-1.3/src/modules/standard/mod_so.c
Index: mod_so.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_so.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- mod_so.c 1998/03/17 19:47:54 1.13
+++ mod_so.c 1998/03/23 15:44:15 1.14
@@ -252,6 +252,10 @@
aplog_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL,
"loaded module %s", modname);
+#ifdef HIDE
+ modname = pstrcat(cmd->pool, "AP_", modname, NULL);
+#endif
+
#ifdef NEED_UNDERSCORE_SYM
modname = pstrcat(cmd->pool, "_", modname, NULL);
#endif