From:             Trigunflame at charter dot net
Operating system: Slackware 10.2.0
PHP version:      5CVS-2006-01-27 (snap)
PHP Bug Type:     Compile Failure
Bug description:  Compile error with apache 1.3.x static

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 bug report at http://bugs.php.net/?id=36180&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36180&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36180&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36180&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36180&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36180&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36180&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36180&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36180&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36180&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36180&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36180&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36180&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36180&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36180&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36180&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36180&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36180&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36180&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36180&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36180&r=mysqlcfg

Reply via email to