Error with Apache module on load reporting unresolved symbol _regcomp (106 Views)
Reply
Occasional Visitor
Meas
Posts: 2
Registered: ‎02-07-2006
Message 1 of 3 (106 Views)

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.
Please use plain text.
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 2 of 3 (106 Views)

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"
Please use plain text.
Occasional Visitor
Meas
Posts: 2
Registered: ‎02-07-2006
Message 3 of 3 (106 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation