Hi Everybody,

I want to install PDFLIB on my system :

PHP 4.0.6
Solaris 2.6
Apache 1.3.12

I took the following package from www.pdflib.com :
pdflib-4.0.3-SunOS.tar
This archive contain Bind for php 4.0.6 with loadable module (libpdf_php.so).
I installed It and I restarted Apache but when I ran my sample page I have the following error :

Warning: Unable to load dynamic library '/xxx/bin/php/include/php/phplib/libpdf_php.so' - ld.so.1: ./httpd: fatal: relocation error: file /xxx/bin/php/include/php/phplib/libpdf_php.so: symbol php_if_warn_not_available: referenced symbol not found in /xxx/htdocs/test_pdf.php3 on line 3

Fatal error: Call to undefined function: pdf_new() in /xxx/htdocs/test_pdf.php3 on line 4

Does anyOne can Help me ?

Thanks,

    8 days later

    Hi,

    the reason could be that the linker can't find the shared library containig php_if_warn_not_available. You might have to set up a
    runtime linking environment, e.g.

    #crle -c /var/ld/ld.config -l
    /usr/lib:/usr/local/lib:/usr/local/etc/mysql/lib

    Maybe, you need to add the directory where libphp4.so resides, and all custom directories where shared libraries reside in, e.g.

    #crle -c /var/ld/ld.config -l
    /usr/lib:/usr/local/lib:/usr/local/etc/mysql/lib:/usr/local/httpd/libexec:/usr/local/myapp/lib

    Regards,
    Thomas

      Hi,

      I forgot to mention that the command has to be typed on one line 🙂

        Thanks for your help thomas.

        It seems that I have linking problems. I will go this way.

        Thanks.

        Didou

          Write a Reply...