ID: 39540
Updated by: [EMAIL PROTECTED]
Reported By: christian dot korff at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Linux 2.6.17 (Gentoo)
PHP Version: 5.2.0
New Comment:
Please do not use options which you don't understand.
Previous Comments:
------------------------------------------------------------------------
[2006-11-16 22:47:29] christian dot korff at gmail dot com
Description:
------------
The problem seems to be the same as in bug #21224. Reproduced on a
Gentoo Linux box with PHP 5.2.0, Apache 1.3.37, kernel 2.6.17 and gcc
3.4.6 (hardened).
# ld -v
GNU ld version 2.16.1
# libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
I also remember that I did work but when it stoped. Using
--disable-versioning or just don't use --enable-versioning fixed it.
But I remember it worked with --enable-versioning. Maybe it's caused by
another apache module (I also used mod_python and mod_perl).
Reproduce code:
---------------
./configure \
--host=${CHOST} \
--prefix=/usr/local/apache \
--sysconfdir=/usr/local/apache/conf \
--infodir=/usr/local/apache/share/info \
--mandir=/usr/local/apache/share/man \
$(use_enable debug) \
--with-apache=${WORKDIR}/apache_${PV} \
--with-mod_charset \
--enable-cli \
--disable-cgi \
--enable-force-cgi-redirect \
--enable-discard-path \
--with-config-file-path=/usr/local/apache/conf \
--enable-ipv6 \
--disable-versioning \
--enable-libxml \
--with-openssl \
--with-kerberos \
--with-pcre-regex \
--with-zlib \
--enable-bcmath \
--enable-bz2 \
--enable-calendar \
--enable-dba \
--enable-gdbm \
--enable-db4 \
--enable-inifile \
--enable-flatfile \
--enable-dbase \
--enable-dom \
--enable-exif \
--enable-ftp \
--with-gd=/usr \
--with-gettext \
--enable-hash \
--with-iconv \
--with-imap \
--with-imap-ssl \
--with-ldap \
--with-ldap-sasl \
--enable-mbstring \
--enable-mbregex \
--with-mcrypt \
--without-mhash \
--with-mysql=/usr/lib/mysql \
--with-mysql-sock=/var/run/mysqld/mysqld.sock \
--with-mysqli=/usr/bin/mysql_config \
--enable-embedded-mysqli \
--with-ncurses \
--enable-pdo \
--enable-pdo-mysql=/usr \
--enable-pso-pgsql \
--enable-pdo-sqlite=/usr \
--with-pgsql \
--enable-posix \
--with-pspell \
--enable-session \
--with-mm=/usr \
--enable-shmop \
--enable-simplexml \
--with-snmp \
--enable-soap \
--enable-sockets \
--enable-spl \
--with-sqlite=/usr \
--enable-sqlite-utf8 \
--enable-suhosin \
--disable-sysvmsg \
--disable-sysvsem \
--enable-sysvshm \
--with-tidy \
--enable-wddy \
--enable-xml \
--enable-xmlreader \
--with-xmlrpc \
--enable-xmlwriter \
--with-xsl \
--with-pear=/usr/local/apache/pear \
--enable-memory-limit \
--enable-zend-multibyte
make
make install
cd ../apache_1.3.37
LC_ALL=C ./configure --activate-module=src/modules/perl/libperl.a
--activate-module=src/modules/php5/libphp5.a
--activate-module=src/modules/python/libpython.a
Expected result:
----------------
Everything should be fine.
Actual result:
--------------
Configuring for Apache, Version 1.3.37
+ using installation path layout: Apache (config.layout)
+ activated perl module (modules/perl/libperl.a)
+ activated php5 module (modules/php5/libphp5.a)
+ activated python module (modules/python/libpython.a)
Creating Makefile
Creating Configuration.apaci in src
+ id: mod_perl/1.29
+ id: Perl/v5.8.8 (linux) [perl]
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
o perl_module uses ConfigStart/End
+ mod_perl build type: OBJ
+ setting up mod_perl build environment
+ adjusting Apache build environment
+ enabling Perl support for SSI (mod_include)
o php5_module uses ConfigStart/End
o python_module uses ConfigStart/End
+ using system Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
cd ..; gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI
-D_REENTRANT -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DNO_DL_NEEDED `./apaci`
-I/mnt/sda1/portage/portage/apache-1.3.37/work/mod_python-2.7.11/src/include
-I/mnt/sda1/portage/portage/apache-1.3.37/work/apache_1.3.37/src/include
-I/mnt/sda1/portage/portage/apache-1.3.37/work/apache_1.3.37/src/os/unix
-I/usr/include/python2.4 -Xlinker -export-dynamic -o
helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/lib64
-Wl,-rpath,/usr/lib64/mysql -rdynamic -L/usr/lib64 -L/usr/lib64/mysql
-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5
-export-symbols
/mnt/sda1/portage/portage/apache-1.3.37/work/php-5.2.0/sapi/apache/php.sym
-rdynamic -L/usr/lib64 -L/usr/lib64/mysql -lcrypt -lc-client -lexslt
-ltidy -lcrypt -lsqlite -lmm -laspell -lpspell -lpq -lrt -lpanel
-lncurses -lmysqlclient -lmcrypt -lltdl -lsasl2 -lldap -llber -lcrypt
-lpam -lgd -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5
-lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lssl -lcrypto -ldl
-lxml2 -lz -lm -lssl -lcrypto -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lkrb5support -lcom_err -lresolv -lssl -lcrypto -ldl -lmysqld -lz
-lcrypt -lnsl -lm -lrt -lxml2 -lz -lm -lnetsnmp -lcrypto -lm -lwrap
-lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm
-lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt -lm -lcrypt -rdynamic
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
-L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl
-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lm
/usr/lib/python2.4/config/libpython2.4.a -lpthread -ldl -lutil -lm
-lexpat
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld:/mnt/sda1/portage/portage/apache-1.3.37/work/php-5.2.0/sapi/apache/php.sym:
file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld:/mnt/sda1/portage/portage/apache-1.3.37/work/php-5.2.0/sapi/apache/php.sym:2:
syntax error
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
Aborting!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39540&edit=1