Bug #12909 Updated: CGI sapi compilation fails
| From: | edink at proventum dot net | Date: | Tue, 28 Aug 2001 09:05:38 +0000 |
| Subject: | Bug #12909 Updated: CGI sapi compilation fails | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64482@lists.php.net to get a copy of this message | ||
ID: 12909
User updated by: edink@proventum.net
Reported By: edink@proventum.net
Status: Open
Bug Type: Compile Failure
Old Operating System: RedHat Linux 6.2
Operating System: RedHat Linux 6.2-7.1
PHP Version: 4.0CVS-2001-08-22
New Comment:
It seems that extensions as dso's and cgi sapi don't mix well in PHP 4.0.7 RC1.
I've tried to reduce the example to the smallest possible:
So this is what I do:
1. CVS checkout of PHP_4_0_7 branch
2. ./buildconf
3. ./configure \
--with-recode=shared \
--without-mysql \
--without-gd \
--without-xml \
4. make
I get the compilation error:
Making all in .
make[1]: Entering directory `/home/ek/compile/cvs-php'
gcc -I. -I/home/ek/compile/cvs-php/ -I/home/ek/compile/cvs-php/main -I/home/ek/compile/cvs-php
-I/home/ek/compile/cvs-php/Zend -I/home/ek/compile/cvs-php/TSRM -g -O2 -c stub.c && touch
stub.lo
/bin/sh /home/ek/compile/cvs-php/libtool --silent --mode=link gcc -I. -I/home/ek/compile/cvs-php/
-I/home/ek/compile/cvs-php/main -I/home/ek/compile/cvs-php -I/home/ek/compile/cvs-php/Zend
-I/home/ek/compile/cvs-php/TSRM -g -O2 -o libphp4.la -rpath /home/ek/compile/cvs-php/libs
stub.lo Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/pcre/libpcre.la
ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la TSRM/libtsrm.la -lpam
-ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/ek/compile/cvs-php'
make: *** [all-recursive] Error 1
Previous Comments:
------------------------------------------------------------------------
[2001-08-22 15:56:08] edink@proventum.net
./configure \
--prefix=/data/php \
--with-config-file-path=/data/php \
--disable-debug \
--enable-sigchild
--disable-magic-quotes \
--disable-short-tags \
--enable-dba=shared \
--with-gdbm=shared,/usr \
--enable-ftp=shared \
--with-gd=shared,/usr \
--with-gettext=shared,/usr \
--with-mysql=shared,/usr/local/mysql \
--with-oci8=shared,/ora01/app/oracle/product/8.1.6 \
--with-pcre-regex=shared \
--with-pgsql=shared,/usr \
--with-recode=shared,/usr \
--enable-shmop \
--with-regex=system \
--enable-sysvsem \
--enable-sysvshm \
--disable-memory-limit \
--with-ldap=shared,/ora01/app/oracle/product/8.1.6/ \
--with-imap=shared,/data/src/imap \
--with-zlib=shared,/usr \
--enable-sockets=shared \
--with-apxs=/data/apache/bin/apxs
------------------------------------------------------------------------
[2001-08-22 15:47:42] sniper@php.net
And your configure line was..?
--Jani
------------------------------------------------------------------------
[2001-08-22 15:40:24] edink@proventum.net
I did a checkout with -r PHP_4_0_7 so I'm talking about that branch of the cvs tree.
The error message:
Making all in .
make[1]: Entering directory `/data/src/cvs-php'
gcc -I. -I/data/src/cvs-php/ -I/data/src/cvs-php/main -I/data/src/cvs-php -I/data/src/cvs-php/Zend
-I/data/src/imap/c-client -I/ora01/app/oracle/product/8.1.6//ldap/public
-I/usr/local/mysql/include/mysql -I/ora01/app/oracle/product/8.1.6/rdbms/public
-I/ora01/app/oracle/product/8.1.6/rdbms/demo -I/ora01/app/oracle/product/8.1.6/network/public
-I/data/src/cvs-php/ext/xml/expat -I/data/src/cvs-php/TSRM -g -O2 -c stub.c && touch
stub.lo
/bin/sh /data/src/cvs-php/libtool --silent --mode=link gcc -I. -I/data/src/cvs-php/
-I/data/src/cvs-php/main -I/data/src/cvs-php -I/data/src/cvs-php/Zend -I/data/src/imap/c-client
-I/ora01/app/oracle/product/8.1.6//ldap/public -I/usr/local/mysql/include/mysql
-I/ora01/app/oracle/product/8.1.6/rdbms/public -I/ora01/app/oracle/product/8.1.6/rdbms/demo
-I/ora01/app/oracle/product/8.1.6/network/public -I/data/src/cvs-php/ext/xml/expat
-I/data/src/cvs-php/TSRM -g -O2 -o libphp4.la -rpath /data/src/cvs-php/libs stub.lo
Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la ext/posix/libposix.la ext/session/libsession.la
ext/shmop/libshmop.la ext/standard/libstandard.la ext/sysvsem/libsysvsem.la
ext/sysvshm/libsysvshm.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lcrypt -lpam -lgd -lcrypt
-lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/data/src/cvs-php'
make: *** [all-recursive] Error 1
builconf says:
./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
automake: configure.in: installing `Zend/ylwrap'
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in
Apache sapi version compiles and builds fine
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12909&edit=1