pecl & phpize-Errors unter Ubuntu 9.04
- Geschrieben von Kevin Horst am September 28th, 2009
- 2 Kommentare
Änderungen an Libtool stehen im direkten Zusammenhang mit Fehlermeldungen beim Installieren von PHP Extensions aus dem Pecl Repository. Dies außert sich im Beispiel von APC (oder auch oci8) folgendermaßen:
downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) .................done: 115,735 bytes 47 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 configure.in:158: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd aclocal.m4:2943: LT_INIT is expanded from... aclocal.m4:2978: AC_PROG_LIBTOOL is expanded from... configure.in:158: the top level configure.in:158: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd configure.in:158: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd configure.in:158: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd configure:6197: error: possibly undefined macro: m4_ifval If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:8806: error: possibly undefined macro: _LT_SET_OPTIONS configure:8806: error: possibly undefined macro: LT_INIT ERROR: `phpize' failed
Problem:
Seit Libtool Version 2.2 wurden diverse Macros in mehrere Dateien gesplittet und somit vermisst das phpize eigene Build-Script build/libtool.m4 autoconf Definitionen und ist somit nicht mehr lauffähig.
Lösung (unter root):
root@host:/usr/share/aclocal# cat lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 >> libtool.m4
Quelle: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/262251
