php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12909 CGI sapi compilation fails
Submitted: 2001-08-22 15:40 UTC Modified: 2001-09-25 10:07 UTC
From: edink at proventum dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2001-08-22 OS: RedHat Linux 6.2-7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 - 2 = ?
Subscribe to this entry?

 
 [2001-08-22 15:40 UTC] edink at proventum dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-22 15:47 UTC] sniper@php.net
And your configure line was..?

--Jani

 [2001-08-22 15:56 UTC] edink at proventum dot 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-28 05:05 UTC] edink at proventum dot net
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
 [2001-08-28 05:22 UTC] sniper@php.net
Marked as FIX before release (4.0.7 !!)

 [2001-08-28 05:23 UTC] sniper@php.net
Forgot to mention: I can reproduce this too.


 [2001-09-25 10:07 UTC] sniper@php.net
Fixed now.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 14:01:33 2024 UTC