php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17313 PHP4.1.2 won't get through make install
Submitted: 2002-05-20 13:37 UTC Modified: 2002-06-28 21:01 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:2 (66.7%)
From: ari dot kuorikoski at finebyte dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: RedHat 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ari dot kuorikoski at finebyte dot com
New email:
PHP Version: OS:

 

 [2002-05-20 13:37 UTC] ari dot kuorikoski at finebyte dot com
Here is my configure line

./configure --prefix=/usr/lib/apache --with-apxs=/usr/sbin/apxs

Everything goes just fine until I do make install:

Making install in .
make[1]: Entering directory `/tmp/php-4.2.1'
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/tmp/php-4.2.1'
make: *** [install-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-20 13:40 UTC] derick@php.net
Can you paste a littel more lines of that error? And which versions of autoconf, automake and libtool do you use?

Derick
 [2002-05-21 04:27 UTC] ari dot kuorikoski at finebyte dot com
I tried to add this comment from the Edit Subbmission area, but it didn't allow me to do so. It just told me:
"You aren't allowed to change a bug to that state.", my pw was ok and so on but here are the lines that Derik wanted me to send.

autoconf --version
Autoconf version 2.13

----
automake --version
automake (GNU automake) 1.4-p5

Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by Tom Tromey <tromey@cygnus.com>
----
libtool:
libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:3

----
And here are some lines before the error:

Making install in xml
make[2]: Entering directory `/tmp/php-4.2.1/ext/xml'
Making install in expat
make[3]: Entering directory `/tmp/php-4.2.1/ext/xml/expat'
make[4]: Entering directory `/tmp/php-4.2.1/ext/xml/expat'
make[4]: Nothing to be done for `install-p'.
make[4]: Leaving directory `/tmp/php-4.2.1/ext/xml/expat'
make[3]: Leaving directory `/tmp/php-4.2.1/ext/xml/expat'
make[3]: Entering directory `/tmp/php-4.2.1/ext/xml'
make[3]: Nothing to be done for `install-p'.
make[3]: Leaving directory `/tmp/php-4.2.1/ext/xml'
make[2]: Leaving directory `/tmp/php-4.2.1/ext/xml'
make[2]: Entering directory `/tmp/php-4.2.1/ext'
make[2]: Nothing to be done for `install-p'.
make[2]: Leaving directory `/tmp/php-4.2.1/ext'
make[1]: Leaving directory `/tmp/php-4.2.1/ext'
Making install in sapi
make[1]: Entering directory `/tmp/php-4.2.1/sapi'
Making install in apache
make[2]: Entering directory `/tmp/php-4.2.1/sapi/apache'
make[3]: Entering directory `/tmp/php-4.2.1/sapi/apache'
make[3]: Nothing to be done for `install-p'.
make[3]: Leaving directory `/tmp/php-4.2.1/sapi/apache'
make[2]: Leaving directory `/tmp/php-4.2.1/sapi/apache'
make[2]: Entering directory `/tmp/php-4.2.1/sapi'
make[2]: Nothing to be done for `install-p'.
make[2]: Leaving directory `/tmp/php-4.2.1/sapi'
make[1]: Leaving directory `/tmp/php-4.2.1/sapi'
Making install in TSRM
make[1]: Entering directory `/tmp/php-4.2.1/TSRM'
make[2]: Entering directory `/tmp/php-4.2.1/TSRM'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/php-4.2.1/TSRM'
make[1]: Leaving directory `/tmp/php-4.2.1/TSRM'
Making install in regex
make[1]: Entering directory `/tmp/php-4.2.1/regex'
make[2]: Entering directory `/tmp/php-4.2.1/regex'
make[2]: Nothing to be done for `install-p'.
make[2]: Leaving directory `/tmp/php-4.2.1/regex'
make[1]: Leaving directory `/tmp/php-4.2.1/regex'
Making install in .
make[1]: Entering directory `/tmp/php-4.2.1'
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/tmp/php-4.2.1'
make: *** [install-recursive] Error 1

- ARi
 [2002-05-21 08:46 UTC] sniper@php.net
Did you do 'make ; make install'  or only 'make install' ?

 [2002-05-21 09:17 UTC] db at unit-netz dot de
I think it?s my Bug ID 17203, so manually creating the directory "libs"
may be the solution.

Daniel
 [2002-05-23 06:19 UTC] ari dot kuorikoski at finebyte dot com
yes I did configure, make and make install.. 

I also tried to manually add libs dir to php install directory, but it did not work... 

- ARi
 [2002-05-23 06:19 UTC] ari dot kuorikoski at finebyte dot com
yes I did configure, make and make install.. 

I also tried to manually add libs dir to php install directory, but it did not work... 

- ARi
 [2002-05-23 09:32 UTC] sniper@php.net
I got same result but adding libs/ dir and then  'make install' fixed it..

Seems like something wierd going on with RH 7.3 since I can't reproduce this on 6.2.

--Jani

 [2002-05-23 16:27 UTC] sniper@php.net
Now I can't reproduce it anymore. Did you do this with clean sources? If not, please try again.

 [2002-05-24 09:41 UTC] john77 at hotmail dot com
You must create "libs" not in the install but in the compile/unpack directory of php-4.2.1
 [2002-05-31 08:58 UTC] byg at cf1 dot ru
I've got the same issue on RH6.2 system.
automake (GNU automake) 1.4
Autoconf version 2.13
ltmain.sh (GNU libtool) 1.3.4
GNU Make version 3.78.1

Creating libs dir solves the issue.

BTW, funny enough, the issue didn't appear at all on BC6.2 Linux and ASPLinux 7.1 (localized and slightly enhanced RH clones).
 [2002-06-15 23:15 UTC] sniper@php.net
Can you try with this snapshot:

http://snaps.php.net/php4-latest.tar.gz

I still can't reproduce this..


 [2002-06-28 13:59 UTC] dswhite42 at yahoo dot com
I think I have the answer to this bug.  I have experienced the same thing, compiling PHP 4.2.1 under RedHat 7.3, though I couldn't figure out why creating the "libs" directory under $srcdir (see bug #17203) worked *sometimes*, but not always.  

Further investigation has revealed why:

1) Running "configure ..." creates the "libs" directory.

2) Running "make clean" REMOVES the "libs" directory.

3) Running "make install" fails, because the "libs" directory no longer exists, which causes the command:

  /bin/sh /usr/local/src/php-4.2.1/libtool --silent --silent --mode=install cp libphp4.la /usr/local/src/php-4.2.1/libs/libphp4.la >/dev/null 2>&1

to die silently and break the installation with the error:

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.2.1'
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1'
make: *** [install-recursive] Error 1

So the only times it worked for me was when I skipped step 2.  I believe this is because of a change in $srcdir/build/rules.mk in this PHP version. Line 52 in v4.2.1 is:

    rm -rf .libs libs

whereas it used to be the following in v4.1.2:

    rm -rf .libs

Perhaps it should be changed to something like "rm -rf .libs libs/*" ?
 [2002-06-28 21:01 UTC] sniper@php.net
Should be fixed in the stable snapshots too.
(that 'make clean' thing)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 08:01:29 2024 UTC