ID: 39890 Updated by: [EMAIL PROTECTED] Reported By: gabriel at oxeva dot fr -Status: Open +Status: Feedback Bug Type: *Compile Issues Operating System: Linux 2.6 PHP Version: 5.2.0 New Comment:
>What I don't understand is how you can build properly the >configure script with autconf 2.61 ? Well, I don't understand how it is possible not to build it, because there are these lines in configure.in. EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR and $prefix is defined just before these lines. So the result you get looks like 2x2=5 to me. Previous Comments: ------------------------------------------------------------------------ [2006-12-22 18:44:15] gabriel at oxeva dot fr My autoconf is 2.61 and built from vanilla sources too. What are the possible dependencies linked to autoconf which might cause this bug ? I tried running configure with autoconf 2.60 and I have the problem too. Only from autoconf 2.59 the problem seems to be solved. What I don't understand is how you can build properly the configure script with autconf 2.61 ? If this can be useful, my libtool is version 1.5.22. What are the other tools versions which can play a role in the build process ? Now I'm not sure if the include_path issue is from my tools or a small bug/typo in the *.in files from the PHP source. We need to know where does this bug comes from to report the bug to the right person :) ------------------------------------------------------------------------ [2006-12-22 15:41:39] [EMAIL PROTECTED] Where did you get this particular autoconf and did you try to build it from sources? A configure script which is unable to set the value of ${prefix} seems like an autoconf issue to me and I'm unable to reproduce it with autoconf 2.61 built from vanilla sources. ------------------------------------------------------------------------ [2006-12-21 16:13:17] gabriel at oxeva dot fr I have tested other case with a minimal configure line : ./configure --prefix=/usr --sysconfdir=/etc/php --with-layout=GNU When using the included "configure" script, the include_path is set properly (.:/usr/share/pear), but when using a rebuilt configure script (with ./buildconf --force; to make it effective, you need to delete the configure script then type ./buildconf --force), the include_path is set to .:${prefix}/share/pear. The buildconf output is following : # ./buildconf --force Forcing buildconf using default Zend directory buildconf: checking installation... buildconf: autoconf version 2.61 (ok) buildconf: Your version of autoconf likely contains buggy cache code. Running cvsclean for you. To avoid this, install autoconf-2.13. rebuilding configure aclocal.m4:2017: PHP_PROG_LEX is expanded from... rebuilding main/php_config.h.in autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of `AC_DEFINE' and autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without autoheader: WARNING: `acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function `main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation. aclocal.m4:2017: PHP_PROG_LEX is expanded from... I need to use the buildconf to add some extensions statically into php (APC and memcache for example) ------------------------------------------------------------------------ [2006-12-21 14:33:11] [EMAIL PROTECTED] Please try to reduce the configure line to the minimal possible. ------------------------------------------------------------------------ [2006-12-20 22:56:07] gabriel at oxeva dot fr After a fresh new compilation, the problem is still here. Following are the details about my build process : - source extraction - last patch about the autoconf bug applied - ./buildconf --force - configure. The exact configure line is : CFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' \ CC='gcc -m32' \ './configure' \ '--prefix=/usr' \ '--sysconfdir=/etc/php' \ '--disable-cgi' \ '--with-exec-dir=/bin' \ '--with-layout=GNU' \ '--enable-sigchild' \ '--disable-rpath' \ '--disable-short-tags' \ '--disable-all' \ '--enable-libxml' \ '--with-openssl' \ '--with-pcre-regex' \ '--with-zlib' \ '--with-bz2' \ '--with-curl' \ '--with-curlwrappers' \ '--enable-dba' \ '--with-inifile' \ '--enable-dom' \ '--enable-ftp' \ '--with-gd' \ '--with-freetype-dir' \ '--enable-gd-native-ttf' \ '--with-iconv' \ '--enable-mbstring' \ '--with-mcrypt' \ '--with-mysqli' \ '--with-ncurses' \ '--enable-pcntl' \ '--enable-posix' \ '--with-readline' \ '--disable-reflection' \ '--enable-simplexml' \ '--with-snmp' \ '--enable-soap' \ '--enable-sockets' \ '--enable-xml' \ '--enable-xmlreader' \ '--enable-xmlwriter' \ '--enable-zip' \ '--with-pear' \ '--enable-memory-limit' \ '--enable-zend-multibyte' \ '--with-pic' \ I've shortened it in this bug report for clarity. - then make (GNU version 3.81) - after make, testing the include path : # sapi/cli/php -i | grep include_path include_path => .:${prefix}/share/pear => .:${prefix}/share/pear maybe it's related to another configure option ? The full option list is provided above. Any ideas ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39890 -- Edit this bug report at http://bugs.php.net/?id=39890&edit=1