Hello all,

I'm trying to straighten out the rather convoluted build process for mod_rexx on linux.  After compiling and linking the module, apache reports an error while loading the module:

Cannot load /usr/lib/apache2/modules/mod_rexx.so into server: /usr/lib/apache2/modules/mod_rexx.so: undefined symbol: RexxVariablePool

I'm not sure just what I'm doing wrong, here...  nm shows that RexxVariablePool (and others) are 'U' (undefined I presume); RexxVariablePool as 'T' in Should RexxVariablePool be linked into my .so file?  Or should it be loaded at runtime?

I've tried including path to librexx.so and librexxapi.so in the hope that this would resolve the symbol, but linker complains...

/usr/bin/ld: cannot find -l/usr/local/lib/librexx.so
/usr/bin/ld: cannot find -l/usr/local/lib/librexxapi.so

They really are there... I've attached a screenshot of a directory list of /bin/local/lib .

I've also tried just specifying just the library path, but get claims the path cannot be found.

I've attached the output from the link step of apxs just in case...

Finally, I'm running ooRexx 5.0.0 12268

--
taf

/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static 
x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT 
-D_GNU_SOURCE  -pthread  -I/usr/include/apache2  -I/usr/include/apr-1.0   
-I/usr/include/apr-1.0 -I/usr/include -Wno-format-security  -c -o rxfuncs.lo 
rxfuncs.c && touch rxfuncs.slo
libtool: compile:  x86_64-linux-gnu-gcc -pipe -g -O2 -fstack-protector-strong 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 
-I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include 
-Wno-format-security -c rxfuncs.c  -fPIC -DPIC -o .libs/rxfuncs.o
/usr/share/apr-1.0/build/libtool  --mode=link --tag=disable-static 
x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro 
-Wl,-z,now    -o mod_rexx.la  -l/usr/local/lib/librexx.so 
-l/usr/local/lib/librexxapi.so -rpath /usr/lib/apache2/modules -module 
-avoid-version    rxfuncs.lo handlers.lo dirconfig.lo mod_rexx.lo
libtool: link: x86_64-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/rxfuncs.o 
.libs/handlers.o .libs/dirconfig.o .libs/mod_rexx.o   
-l/usr/local/lib/librexx.so -l/usr/local/lib/librexxapi.so  -Wl,--as-needed 
-Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname 
-Wl,mod_rexx.so -o .libs/mod_rexx.so
/usr/bin/ld: cannot find -l/usr/local/lib/librexx.so
/usr/bin/ld: cannot find -l/usr/local/lib/librexxapi.so
collect2: error: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to