Re : [PHP-INSTALL] 5.1.6 install on Apache 2.2.3 - _efree and _emalloc undefined in shared library...

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



 Hi Alex -

   thanks for the reply.

   No. PHP compiles completely clean.  An this is no longer a problem.

   1. I actually went digging. The error was mine. I had a prior version of
libphp5.so in the apache2/modules directory, created with a different user
id. So the install wasn't appropriately over-writing it.

   2. In the end I just grabbed the LAMP stack - and the problem was
solved.

   - Mildly irritating though, just how many configure options there are,
and how difficult they are to set appropriately.

     Anyway - problem solved.

====================================================
Paul G. Brown                                                          ^.
.^
IBM/INFORMIX                                                        (oo)
___oink!
(408) 927-1463               Like the signature? Then buy the books!

http://www.amazon.com/exec/obidos/ASIN/1558604529
http://www.amazon.com/exec/obidos/ASIN/0130194603
http://www.amazon.com/exec/obidos/ASIN/0130428272


                                                                           
             priou alexandre                                               
             <prioualexandre@y                                             
             ahoo.fr>                                                   To 
                                       Paul Brown/Oakland/IBM@IBMUS,       
             09/06/2006 09:56          php-install@xxxxxxxxxxxxx           
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re :  5.1.6 install on 
              priou alexandre          Apache 2.2.3 - _efree and _emalloc  
                                       undefined in shared library...      
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




hi

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

alex

----- Message d'origine ----
De : Paul G. Brown <pbrown1@xxxxxxxxxx>
À : php-install@xxxxxxxxxxxxx
Envoyé le : Mercredi, 6 Septembre 2006, 9h07mn 29s
Objet :  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?


[root@pebbles 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
[root@pebbles bin]# ./apachectl -v
Server version: Apache/2.2.3
Server built:   Sep  5 2006 12:43:15
[root@pebbles 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
[root@pebbles 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
[root@pebbles 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
[root@pebbles bin]#


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