Operating System - HP-UX
1833827 Members
2335 Online
110063 Solutions
New Discussion

shl_load error starting apache with php module

 
Andrew Briggs
New Member

shl_load error starting apache with php module

When I make the apache php4.0.4 DSO module with oracle oci8 support and then start httpd, I get the following error;

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error

If I remove the oci8 support it works fine. I have tried linking with -lpthread and -lcl

Please help me

Andrew Briggs
4 REPLIES 4
Kiran N. Mehta
Advisor

Re: shl_load error starting apache with php module

Hi:
I don't know anything about Apache or Oracle oci8, but just as you linked with libpthread and libcl, you should try linking with whichever library --and (incrementally) its dependents-- that implements oci8 functionality. The shl_load( ) of that library will then become redundant and innocuous, unlike now...

Good luck,
Kiran
RikTytgat
Honored Contributor

Re: shl_load error starting apache with php module

Hi,

Are you sure the libcl.2 file is suited for the platform you are running on. The exec format error seems to mean the file is note recognized as being a library.

Try

file /usr/lib/libcl.2

This should print something like
/usr/lib/libcl.2: PA-RISC1.1 shared library -not stripped

This is just a hunch.

Bye,
Rik.
Andrew Briggs
New Member

Re: shl_load error starting apache with php module

Thanks to both of you

How can I find out what libraries are required by the oci8 libraries ?

I've tried the file /usr/lib/libcl.2 and I get libcl.2: PA-RISC1.1 shared library -not stripped
as expected.

Andy

Charles Soto
Advisor

Re: shl_load error starting apache with php module

Go to http://www.hp.com/products1/unix/webservers/apache/faqs/index.html and look for the admin guide in the information library. It discusses exactly your issue (involves editing apachectl to include the proper environment vars).

Charles