php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44508 "make" from another directory
Submitted: 2008-03-22 22:47 UTC Modified: 2008-03-25 13:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: bhavacakra at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2 OS: Linux (arch_x64)
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: bhavacakra at gmail dot com
New email:
PHP Version: OS:

 

 [2008-03-22 22:47 UTC] bhavacakra at gmail dot com
Description:
------------
I'm attempting to configure and build PHP from a directory outside of the source distribution. "configure" works fine, but "make" stops while compiling "/sapi/apache2handler/mod_php5.c"

Reproduce code:
---------------
shell $ ../php-5.2.5/configure --enable-debug --enable-maintainer-zts --disable-cgi --enable-cli --without-pear
 --disable-xml --without-sqlite --without-mysql --enable-embed --with-apxs2=/usr/sbin/apxs

shell $ make

Expected result:
----------------
successful compilation

Actual result:
--------------
/bin/sh /home/flav/programming/php-internals/_build/libtool --preserve-dup-deps --mode=compile /home/flav/programming/php-intern
als/_build/meta_ccld  -I/usr/include/apache  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1   -I/usr/include/apr-1 -I
/usr/include -Isapi/apache2handler/ -I/home/flav/programming/php-internals/php-5.2.5/sapi/apache2handler/ -DPHP_ATOM_INC -I/home
/flav/programming/php-internals/_build/include -I/home/flav/programming/php-internals/_build/main -I/home/flav/programming/php-i
nternals/php-5.2.5 -I/usr/include/libxml2 -I/home/flav/programming/php-internals/_build/ext/date/lib -I/home/flav/programming/ph
p-internals/php-5.2.5/ext/date/lib -I/home/flav/programming/php-internals/_build/TSRM -I/home/flav/programming/php-internals/_bu
ild/Zend -I/home/flav/programming/php-internals/php-5.2.5/main -I/home/flav/programming/php-internals/php-5.2.5/Zend -I/home/fla
v/programming/php-internals/php-5.2.5/TSRM -I/home/flav/programming/php-internals/_build/  -D_REENTRANT  -I/usr/include -g -pthr
ead -O0 -Wall -DZTS   -c /home/flav/programming/php-internals/php-5.2.5/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mo
d_php5.lo                                                                                                                       
/home/flav/programming/php-internals/_build/libtool: line 1184: sapi/apache2handler/mod_php5.loT: No such file or directory
mkdir sapi/apache2handler/.libs
mkdir: cannot create directory `sapi/apache2handler/.libs': No such file or directory
make: *** [sapi/apache2handler/mod_php5.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-23 09:15 UTC] johannes@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

Why are you using --enable-debug and --enable-maintainer-zts, these are only for developrs who know what they do. And you can just build either --enable-embed or --with-apxs2 so decide for one (most likely the latter) there.
 [2008-03-23 13:32 UTC] bhavacakra at gmail dot com
I'm using those flags as recommended in Sara's book, as I'm studying PHP internals with its companion.

Are you aware of the concrete CVS commit that fixed it, or eventually a patch? It would be very interesting to have a look at it.

Thanks.
 [2008-03-24 03:27 UTC] bhavacakra at gmail dot com
Tested it, and it still persist.
 [2008-03-25 13:26 UTC] jani@php.net
You're trying to do something we don't support: Bulding 3 SAPIs at same time. Nothing really buggy here, you just try to outsmart the build system.. :)

Please ask further support questions elsewhere. 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC