php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18374 Final stage of make fails
Submitted: 2002-07-16 13:46 UTC Modified: 2002-07-24 19:19 UTC
From: rtwick at utkalika dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0-dev OS: Redhat Linux 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rtwick at utkalika dot org
New email:
PHP Version: OS:

 

 [2002-07-16 13:46 UTC] rtwick at utkalika dot org
Hi, I have tried to build PHP 4.3 dev from the latest CVS few times fr the past couple of weeks and every time make fails at the last stage. I'm compiling on a clean built Redhat Linux 7.2 i386 machine. I have searched the bug database but couldn't find any thing related.

The error message is as follows 

/bin/sh libtool --silent --mode=link gcc -export-dynamic -DPHP_ATOM_INC -I/home/saved/php4/include -I/home/saved/php4/main -I/home/saved/php4 -I/home/saved/php4/Zend -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/mysql -I/usr/include/pgsql -I/usr/include/pspell  -DLINUX=22 -DMOD_SSL=208110 -DMOD_PERL -DUSE_PERL_SSI -DUSE_HSREGEX -DEAPI -I/home/saved/php4/TSRM -g -O2  -export-symbols /home/saved/php4/sapi/apache/php.sym -avoid-version -module  /usr/local/lib ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/number.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/curl.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dio/dio.lo ext/exif/exif.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdcache.lo ext/gd/gdttf.lo ext/gettext/gettext.lo ext/gmp/gmp.lo ext/iconv/iconv.lo ext/imap/php_imap.lo ext/ldap/ldap.lo ext/mbstring/mbfilter_ja.lo ext/mbstring/mbfilter_cn.lo ext/mbstring/mbfilter_tw.lo ext/mbstring/mbfilter_kr.lo ext/mbstring/mbfilter_ru.lo ext/mbstring/mbfilter.lo ext/mbstring/mbstring.lo ext/mbstring/mbregex.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mysql/php_mysql.lo ext/odbc/php_odbc.lo ext/openssl/openssl.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/pgsql/pgsql.lo ext/posix/posix.lo ext/pspell/pspell.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/sockets/sockets.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo ext/yp/yp.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lodbc -lc-client -lexpat -lmm -lpspell -lpq -lmysqlclient -lmcrypt -lltdl -lldap -llber -lcrypt -lpam -lgmp -lgd -lt1 -lfreetype -lpng -lz -ljpeg -ldb -lgdbm -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lcurl -lssl -lcrypto -ldl -ldl -o sapi/cli/php
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

my configuration  command is 

 ./configure  --disable-debug --enable-dbg --with-dbg-profiler --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr/local --with-mm --with-openssl --with-png --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --enable-bcmath --enable-debugger --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-imap=/usr/local --with-ldap --with-pgsql --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --with-tiff --with-t1lib=/usr/local --with-mcrypt --with-mysql=/usr  --with-pspell --with-unixODBC --with-apxs=/usr/local/bin/apxs

The culprit is  "-module  /usr/local/lib " in the link command. If I copy that link line and remove /usr/local/lib from the module list, it works fine.

Thanks for nay help

regards
R'twick

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-16 23:52 UTC] sniper@php.net
To find out what is causing this, please try first
with the minimum amount of configure options. Do this:

cvs up -dPA ; ./cvsclean ; ./buildconf ; ./configure --with-apxs=/usr/local/bin/apxs ; make

(assuming you're pulling the stuff from CVS and not using a snapshot. If latter, get a new snapshot and do only the configure part)

If the above works, start adding your configure options one by one until it breaks. Then let us know which one breaks the build.


 [2002-07-17 09:43 UTC] rtwick at utkalika dot org
Thanks,
make without any options ( just ./configure --with-apxs=/usr/local/bin/apxs ) worded fine. I'm currently configuring it by adding one by one other options and will post when I find the first failure.
 [2002-07-17 12:25 UTC] rtwick at utkalika dot org
Hi,
I have tried to add each option one by one and it failed when I included --with-t1lib=/usr/local/lib. Then I removed the t1lib optionand added --with-jpeg-dir=/usr/local  and got the same error.

I uninstalled the t1lib and jpeg lib from /usr/local and installed them into /usr, then with --with-t1lib=/usr and --with-jpeg-dir=/usr seems to work. 

It seems if  I install any thing into /usr/local, then make fails. /usr/local option works fine with PHP 4.2.1 though.

Could this be a possible PHP configuration problem or something to do with my system ?

Thanks
R'twick
 [2002-07-17 13:34 UTC] sniper@php.net
Using '/usr/local/lib' with ANY configure option does not work and might sometimes cause this kind of unpredictable
results. The latest CVS should not suffer from this though..

I hope you remembered to delete config.cache between your
configure tests...as that's propably why you got the same
error when you removed --with-t1lib and added other one.

Did you get the sources from CVS or from a snapshot?
If you got them from CVS, what does build/buildcheck.sh
output ?



 [2002-07-17 13:49 UTC] rtwick at utkalika dot org
I'm sorry, the t1lib was actually specified with --with-t1lib=/usr/local not --with-t1lib=/usr/local/lib.

Each time I run configure, I get fresh copy from cvs using the following commands

cvs -d :pserver:cvsread@cvs.php.net:/repository login
cvs -d :pserver:cvsread@cvs.php.net:/repository co php4
and then do a buildconf followed by configure and make.

Here's my output from build/buildcheck.sh

buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4-p5 (ok)
buildconf: libtool version 1.4 (ok)
 [2002-07-17 13:52 UTC] sniper@php.net
So you did NOT do './cvsclean' ???
That's very important..

If that doesn't make any difference, try updating 
libtool to 1.4.2 and automake to 1.5 (I have those and everything works :)

 [2002-07-17 15:40 UTC] rtwick at utkalika dot org
I upgraded automake, libtool and autoconf. But still got the same problem. 
However, I removed the --disable-rpath from the configure options and got a clean compile.
 [2002-07-17 17:03 UTC] sniper@php.net
So the real reason for this failure was that you had runpaths disabled..I will test this myself now.


 [2002-07-17 17:55 UTC] sniper@php.net
When --disable-rpath is used, the compile fails (a bit differently, depending which configure options are used)

 [2002-07-24 19:19 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC