Re: PHP 5.2.3 module on Solaris 10 (AMD64)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I've found a solution :

Add these two lines :
    LD_PRELOAD=/usr/lib/64/libmtmalloc.so.1
    export LD_PRELOAD
in [APACHE_HOME]/bin/envvars

Hope it'll help.


AAcom Lists a écrit :
Salut,
it seems you are compiling the whole bunch in 64bit mode (file libphp5.so)
but you are linking php with a 32bit library (/usr/lib) in place of 64bit (/usr/lib/64/libmtmalloc.so.1). You must discover the place where this lib is used (a Makefile in php sources),
may be an extension,
and force -L/usr/lib/64 -R/usr/lib/64 before the -lmtmalloc

web2@xxxxxxxxxxxxxx a écrit :
I tried the latest version 5.2.3 on Solaris 10(AMD64) as a module on Apache 2.0.59. After the compilation, and installation, I've tried to restart Apache and I have this error message :

Syntax error on line 232 of /www/apache-2.0.59/conf/httpd.conf:
Cannot load /www/apache2/modules/libphp5.so into server: ld.so.1: httpd:
fatal: /usr/lib/libmtmalloc.so.1: wrong ELF class: ELFCLASS32

For info, everything's ok with PHP 5.2.2.

Thanks for help

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux