hi

when you compile php have you some warnning ?
and see your ldconfig for lib C

alex

----- Message d'origine ----
De : Paul G. Brown <[EMAIL PROTECTED]>
À : php-install@lists.php.net
Envoyé le : Mercredi, 6 Septembre 2006, 9h07mn 29s
Objet : [PHP-INSTALL] 5.1.6 install on Apache 2.2.3 - _efree and _emalloc undefined in shared library...


   A quick check - is this a known problem?

   I can compile and use php fine, but when I try to link libphp5.so
   into the apache httpd process, it tells me there are some undefined
   symbols. These functions (_emalloc also - see below) are implemented
   in the PHP/Zend/zend_alloc.c, but aren't finding their way into the
   shared library.

   Am I not building php correctly? Is there some incantation on the
   ./configure I am missing?


[EMAIL PROTECTED] bin]# uname -a
Linux pebbles.xxx.xxx.com 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST
2004 i686 i686 i386 GNU/Linux
[EMAIL PROTECTED] bin]# ./apachectl -v
Server version: Apache/2.2.3
Server built:   Sep  5 2006 12:43:15
[EMAIL PROTECTED] bin]# php -v
PHP 5.1.6 (cli) (built: Aug 31 2006 15:26:39)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
[EMAIL PROTECTED] bin]# ./apachectl restart
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server:
/usr/local/apache2/modules/libphp5.so: undefined symbol: _efree
[EMAIL PROTECTED] bin]# nm ../modules/libphp5.so | grep ' _e'
          U _ecalloc
00018b18 A _edata
          U _efree
          U _emalloc
00018f90 A _end
          U _erealloc
          U _estrdup
          U _estrndup
[EMAIL PROTECTED] bin]#

Reply via email to