#47360 [NEW]: Compilation of PHP extension example failed with PHP 5.2.8-r2
| From: | rudolf dot schonecker at seznam dot cz | Date: | Wed, 11 Feb 2009 14:33:54 +0000 |
| Subject: | #47360 [NEW]: Compilation of PHP extension example failed with PHP 5.2.8-r2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-133719@lists.php.net to get a copy of this message | ||
From: rudolf dot schonecker at seznam dot cz
Operating system: Linux 2.6.27-gentoo-r8 i686
PHP version: 5.2CVS-2009-02-11 (snap)
PHP Bug Type: *Extensibility Functions
Bug description: Compilation of PHP extension example failed with PHP 5.2.8-r2
Description:
------------
I have try to build a PHP extension Hello world available at the page
http://devzone.zend.com/node/view/id/1021#Heading6.
Under PHP 5.2.6-r7
everything works well, but after upgrading PHP package to 5.2.8-r2 (the
latest available in portage) I'am not able to compile this example.
Compiler:
[3] i686-pc-linux-gnu-4.3.3 *
Important packages:
sys-devel/autoconf-2.63
sys-devel/libtool-1.5.26 or 2.2.6a
Reproduce code:
---------------
Use the first example from given page, create three given files
(config.m4, php_hello.h, hello.c) and run
$ phpize
$ ./configure --enable-hello
$ make
Expected result:
----------------
Sucessfull compilation and existing hello.so.
Actual result:
--------------
$ make
/bin/sh /home/lubos/tmp/php/libtool --mode=compile gcc -I.
-I/home/lubos/tmp/php -DPHP_ATOM_INC -I/home/lubos/tmp/php/include
-I/home/lubos/tmp/php/main -I/home/lubos/tmp/php
-I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main
-I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend
-I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib
-I/usr/lib/php5/include/php -DHAVE_CONFIG_H -g -O2 -c
/home/lubos/tmp/php/hello.c -o hello.lo
/home/lubos/tmp/php/libtool: line 460: CDPATH: command not found
/home/lubos/tmp/php/libtool: line 1152: func_opt_split: command not found
libtool: Version mismatch error. This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make: *** [hello.lo] Error 63
--
Edit bug report at http://bugs.php.net/?id=47360&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47360&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47360&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47360&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47360&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47360&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47360&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47360&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47360&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47360&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47360&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47360&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47360&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47360&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47360&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47360&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47360&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47360&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47360&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47360&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47360&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47360&r=mysqlcfg