ID:               21224
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Solaris 8
 PHP Version:      4.3.0
 New Comment:

Problem solved (for me) when removing --enable-versioning from the
configure


Previous Comments:
------------------------------------------------------------------------

[2002-12-30 09:32:31] [EMAIL PROTECTED]

I'm having the same problem building 4.3.0 with Apache on my server, 
previous builds were ok:

RedHat Linux 7.1 kernel 2.4.18-18.7.xsmp

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1)

ld -v
GNU ld version 2.10.91 (with BFD 2.10.91.0.2)

libtool --version
ltmain.sh (GNU libtool) 1.3.5 (1.385.2.206 2000/05/27 11:12:27)

./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/php --with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local/pgsql --with-oci8=/usr/local/oracle \
--with-oracle=/usr/local/oracle
--with-sybase-ct=/opt/sybase-12.5/OCS-12_5 \
--with-pdflib=/usr/local/pdflib --with-jpeg --with-tiff --with-zlib \
--with-gd --with-ttf --with-freetype --with-xml --with-gettext \
--enable-ftp --enable-versioning --enable-sockets --enable-calendar \
--enable-sysvsem --enable-sysvshm --enable-track-vars --enable-debugger
\
--enable-magic-quotes --enable-rpath --enable-short-tags --enable-posix
\
--enable-session --enable-xml --enable-bcmath --enable-ctype
--enable-mailparse \
--with-apache=../apache_1.3.27 

./configure --with-layout=Apache --prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.a --enable-module=so \
--enable-module=rewrite --add-module=mod_gzip.c

Configuring for Apache, Version 1.3.27
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
 + on-the-fly added and activated gzip module
(modules/extra/mod_gzip.o)
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
 + checking for system header files
 + adding selected modules
    o rewrite_module uses ConfigStart/End
 + using -lndbm for DBM support
      enabling DBM support for mod_rewrite
    o php4_module uses ConfigStart/End
 + using system Expat
 + using -ldl for vendor DSO support
 + 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 -I/usr/include/db1 `./apaci`     -o
helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/local/mysql/lib/mysql
-Wl,-rpath,/usr/local/oracle/lib -Wl,-rpath,/lib
-Wl,-rpath,/usr/local/pdflib/lib -Wl,-rpath,/usr/local/pgsql/lib
-Wl,-rpath,/opt/sybase-12.5/OCS-12_5/lib  -rdynamic
-L/usr/local/mysql/lib/mysql -L/usr/local/oracle/lib -L/lib
-L/usr/local/pdflib/lib -L/usr/local/pgsql/lib
-L/opt/sybase-12.5/OCS-12_5/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -export-symbols
/usr/local/src/php-4.3.0/sapi/apache/php.sym   -rdynamic
-L/usr/local/mysql/lib/mysql -L/usr/local/oracle/lib -L/lib
-L/usr/local/pdflib/lib -L/usr/local/pgsql/lib
-L/opt/sybase-12.5/OCS-12_5/lib   -lsybtcl -lintl -lcomn -lct -lcs -lpq
-lpdf -lz -lpng -lmysqlclient -lttf -lpng -lz -lz -lcrypt -lresolv -lm
-ldl -lnsl  -lcrypt -ldl -lm -lnsl -lclntsh -ldl -lm -lnsl -lclntsh  
-lm -lcrypt -lndbm -lexpat -ldl
/usr/bin/ld:/usr/local/src/php-4.3.0/sapi/apache/php.sym: file format
not recognized; treating as linker script
/usr/bin/ld:/usr/local/src/php-4.3.0/sapi/apache/php.sym:2: parse
error
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============

 Aborting!

------------------------------------------------------------------------

[2002-12-30 05:59:59] [EMAIL PROTECTED]

Same problem at Linux RedHat 6.2 machines, some with:
GNU ld 2.9.5
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52) 

and others with:

GNU ld 2.13.2
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54)

------------------------------------------------------------------------

[2002-12-28 04:33:22] [EMAIL PROTECTED]

the libtool on the php distribution tree is:

ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

I have to say that previous versions of php up to 4.3.0rc2
compiled fine on the same system.

------------------------------------------------------------------------

[2002-12-28 01:01:44] [EMAIL PROTECTED]

What version of libtool are you using?

------------------------------------------------------------------------

[2002-12-27 16:58:54] [EMAIL PROTECTED]

apache 1.3.27 configure script fails at this point:
with gcc version 2.95.2 and GNU ld version 2.13

 + 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 ========
make[1]: Entering directory
`/usr/local/src/apache/apache_1.3.27/src/helpers'
cd ..; gcc -O3 -DDYNAMIC_MODULE_LIMIT=0 -I/usr/local/include/mysql 
-DSOLARIS2=280 -DMOD_SSL=208111 -DEAPI -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci`   -L/usr/local/ssl/lib  -o helpers/dummy
helpers/dummy.c   -L/usr/local/lib/mysql -lmysqlclient   -R/usr/ucblib
-R/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -R/usr/local/ssl/lib
-R/usr/local/lib -R/opt/sfw/lib
-R/usr/local/src/apache/imap-2002.RC5/c-client -R/usr/local/lib/mysql 
-L/usr/ucblib -L/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2
-L/usr/local/ssl/lib -L/usr/local/lib -L/opt/sfw/lib
-L/usr/local/src/apache/imap-2002.RC5/c-client -L/usr/local/lib/mysql
-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-export-symbols /usr/local/src/apache/php-4.3.0/sapi/apache/php.sym  
-L/usr/ucblib -L/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2
-L/usr/local/ssl/lib -L/usr/local/lib -L/opt/sfw/lib
-L/usr/local/src/apache/imap-2002.RC5/c-client -L/usr/local/lib/mysql 
-lc-client  -lmm -lmysqlclient -lmcrypt -lltdl -lcrypt -lpam -lgd -lpng
-lz -ljpeg -lgdbm -lcurl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl
-lnsl -lsocket  -lgcc -lcrypt -lcurl -ldl -lsocket -lnsl   -lsocket
-lnsl -lpthread  -lssl -lcrypto
ld: fatal: file /usr/local/src/apache/php-4.3.0/sapi/apache/php.sym:
unknown file type
ld: fatal: File processing errors. No output written to helpers/dummy
collect2: ld returned 1 exit status
make[1]: *** [dummy] Error 1
make[1]: Leaving directory
`/usr/local/src/apache/apache_1.3.27/src/helpers'
============= End of Error Report =============


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21224&edit=1

Reply via email to