02-07-2006 01:15 AM
I'm porting a module from Solaris to the HP Apache 2.0.59 (downloaded from HP). I get this error when I try to run Apache:
 8:53:42.930 File:PluginsIF.cpp Line:302 # Attempting to load: /opt/hpws
 8:53:43.150 File:PluginsIF.cpp Line:313 # loadLibrary() returns Unresolved symbol: _regcomp (code) from /usr/lib/libc.1.
I've checked my patches - I'm current up to PHCO_32761. My linker flags are:
-lrwtool_v2 -lpthread -lcl -lstd_v2 -lCsup_v2 -lm -lnsl -lc_r -lcma -lc
Also, I mixing C & C++ so I'm using the compiler flags below.
For C++ I use:
-AA -c +inst_v -DUNIX -DHPUX -mt -g0 +u4 +Z +DAportable -D__HPACC_THREAD_SAFE_RB_TREE -D_DEBUG
For C I use:
-Ae -DUNIX -DHPUX -mt -g0 +u4 +Z +DAportable +tls=dynamic -D_THREAD_SAFE
I'm not sure what I missing. Any help is greatly appreciated.
02-07-2006 03:28 AM
It could be due to Apache version mismatch. Check the version of Apache you are running on Solaris where the module being ported.
And (or), you can use GCC ??
02-07-2006 04:06 AM
Thanks for the reply.
I am using a different version because HP download has a more current one. The Solaris Apache is 2.0.42. The HP is 2.0.55.
I'm using dlopen(path, RTLD_NOW | RTLD_GLOBAL) to load this shared library inside my module. Could that be the conflict?
I'm using aCC because the code uses the roquewave libraries. I've had trouble getting those to work with gcc.