ID: 36180
User updated by: Trigunflame at charter dot net
Reported By: Trigunflame at charter dot net
Status: Open
Bug Type: Compile Failure
Operating System: Slackware 10.2.0
PHP Version: 5CVS-2006-01-27 (snap)
New Comment:
Change Configure To
CFLAGS=-O3 -march=pentium4 CXX=gcc CXXFLAGS=-O3 -march=pentium4
./configure --prefix=/usr/local/apache/php
--exec-prefix=/usr/local/apache/php --with-apache=/usr/src/apache
--with-xml --without-pear --enable-cli --disable-cgi --with-gd
--with-jpeg-dir=/usr/local --with-png-dir=/usr --with-zlib
--enable-sockets --enable-pcntl --enable-sigchild --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --enable-shmop --enable-pdo
--with-pdo-sqlite
And it worked, so who knows.
Previous Comments:
[2006-01-27 19:36:38] Trigunflame at charter dot net
Ps. Going by those old docs; im going to try and remove
--enable-versioning and see if that fixes the problem.
[2006-01-27 19:24:35] Trigunflame at charter dot net
Description:
PHP itself builds fine, however during the apache './configure' an
error occurs that stops the build build.
I've been using php for nearly 7 years now and never had this problem
with compilations on 5-6 different OS's; however I did see references
to this problem from bug reports in 2000-2001 via google.
This particular build im running Slackware 10.2.0 (Topologilinux
distro) which use CoLinux ontop of Windows XP Pro SP2; Doing this so I
don't have to shell out megabux for VMware. (Colinux is about as good
for Free).
Reproduce code:
---
PHP Compilation (Works)
CFLAGS=-O3 -march=pentium4 CXX=gcc CXXFLAGS=-O3 -march=pentium4
./configure --prefix=/usr/local/apache/php
--exec-prefix=/usr/local/apache/php --with-apache=/usr/src/apache
--with-xml --without-pear --enable-cli --disable-cgi --with-gd
--with-jpeg-dir=/usr/local --with-png-dir=/usr --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config --enable-discard-path
--enable-track-vars --enable-versioning --with-zlib --enable-sockets
--enable-pcntl --enable-sigchild --enable-sysvsem --enable-sysvshm
--enable-sysvmsg --enable-shmop --enable-pdo --with-pdo-sqlite
Apache Compilation (Fails)
OPTIM=-O3 -march=pentium4 -mfpmath=sse ./configure
--prefix=/usr/local/apache --activate-module=src/modules/php5/libphp5.a
--activate-module=src/modules/gzip/mod_gzip.c --enable-module=dir
--enable-module=mime --disable-module=so --disable-module=asis
--disable-module=imap --disable-module=actions --disable-module=status
--disable-module=setenvif --disable-module=userdir
--disable-module=include --disable-module=env --disable-module=cgi
Expected result:
A statically linked Apache/PHP Compile.
Actual result:
--
Configuring for Apache, Version 1.3.34
+ using installation path layout: Apache (config.layout)
+ activated php5 module (modules/php5/libphp5.a)
+ activated gzip module (modules/gzip/mod_gzip.c)
Creating Makefile
Creating Configuration.apaci in src
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 php5_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 -O3 -march=pentium4 -mfpmath=sse -DLINUX=22
-DHAVE_SET_DUMPABLE -DNO_DL_NEEDED `./apaci` -o helpers/dummy
helpers/dummy.c -rdynamic -Lmodules/php5 -L../modules/php5
-L../../modules/php5 -lmodphp5 -export-symbols
/usr/src/php/sapi/apache/php.sym-rdynamic -lcrypt -lcrypt -lrt
-lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz
-lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm
-lcrypt -lm -lcrypt -lexpat
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld:/usr/src/php/sapi/apache/php.sym:
file format not recognized; treating as linker script
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld:/usr/src/php/sapi/apache/php.sym:2:
parse 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=36180edit=1