Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Error with Apache module on load reporting unresolved symbol _regcomp

Highlighted
Occasional Visitor

Error with Apache module on load reporting unresolved symbol _regcomp

Hello,

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:

[5623] 8:53:42.930 File:PluginsIF.cpp Line:302 # Attempting to load: /opt/hpws
/apache/rsawebagent/Plugins/libaceauth.so
[5623] 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.
2 REPLIES
Honored Contributor Honored Contributor

Re: Error with Apache module on load reporting unresolved symbol _regcomp

Hello,

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 ??

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Occasional Visitor

Re: Error with Apache module on load reporting unresolved symbol _regcomp

Hello,

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.

-steve