I have compiled php4 as a dso without oci8 support. Works OK. If I add the configure parameter --with-oci8=/path/to/oracle, install the libphp4.so and then start apache I get the following error;

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

Can someone please help me

    a month later

    Hello,

    I am having a similar problem. I tried installing PHP4 as a DSO with the following configure:
    ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --with-oci8=/path/to/oracle and it didn't work. I would start up the apache server and it would not give any errors, but it also would not actually start a process. And it also left its /var/run/httpd.pid file. I have noticed that if I do --with-openlink it does similar error conditions (or it complains about libiodbc.so). If I leave out oci8 and openlink, and just do Apache/PHP4/mysql it works fine. I'm not sure how to proceed here. Where was your error reported? Did you have it logging lower than Warnings? I wouldn't mind having some logs to go on at this point.

    Dave

      In the end I compiled PHP with Apache. Apache still takes DSO modules but not PHP as it is now in-built. This works OK as the offending Oracle libraries were compiled in with PHP and are not attempted to be loaded dynamically when PHP is loaded as a DSO module. This was the root cause of the problem, which I am afraid to say I could not resolve. It sounds like you have got beyond this point if it has compiled. Apparently using shared libraries that reference the Oracle shared libraries is a known problem with HP-UX.

      Andy

        5 months later

        I found your post about a week ago, when I encountered the same problem.

        I got it going. Here's what I did (eventually ;-) ):

        cd .../apache-1.3.20

        export LIBS="-lcl -ljava"
        export CC="gcc -fpic"
        export CFLAGS="-O"

        ln -s $ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libjava.sl /usr/lib/libjava.sl

        (not sure that creating that symbolic link was necessary, but I did it anyway)

        ./configure --with-layout=Apache
        make
        make install

        edited $ORACLE_HOME/rdbms/admin/shrept.lst,
        such that
        the lines
        rdbms : LhtStrCreate
        rdbms : LhtStrInsert
        weree added above the line
        rdbms : lmxsrt

        cd $ORACLE_HOME/bin
        ./genclntsh

        cd /opt/apache/bin
        ./apachectl start

        And it started :-) and worked :-D

        I didn't have to re-make php, either.

        References:

        http://archive.develooper.com/dbi-users%40perl.org/msg04403.html

        http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0d0a6d96588ad4118fef0090279cd0f9,00.html

        Oracle Note 113395.1
        (This note apparently only available to those with Oracle support)

        Hope this helps those who follow,

        Rick

          Write a Reply...