php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15850 Compiling not possible due to incorrect creation of Makefile
Submitted: 2002-03-03 17:48 UTC Modified: 2002-04-05 06:31 UTC
Votes:2
Avg. Score:2.5 ± 1.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: JohannesBauer at gmx dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.2 OS: LinuxMandrake 7.2 (2.2.17-21mdk)
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: JohannesBauer at gmx dot de
New email:
PHP Version: OS:

 

 [2002-03-03 17:48 UTC] JohannesBauer at gmx dot de
The bug appears when I try to compile PHP 4.1.2 as an apxs dynamic apache module. First I had a 
#configure --with-mysql --with-gd --enable-fff --with-apxs
which produced an (almost) empty Makefile afterwards. Only 5 lines of path definitions where in there. This resulted in an error when trying to #make the project, as it returned:
make: *** No targets. Stop.

I just found the solution! It really is a bug in your configure script, please fix it as soon as you have time.
I had the PHP sources located in
/mnt/raid/Samba/Linux Programme/php-4.1.2
During the last step (creating files) the configure script tried to access the path, but did not use a metacharacter space (Linux\ Programme), so it tried to write in /mnt/raid/Samba/Linux, where of course no files were! Cool, I got that one :-)

Anyways, if I hadn't found this bug, I'm sure you would have, and I'm sure you'd have helped me. You people are the ones who make PHP such a great language. PHP is incredibly awesome, you're doing a fantastic job!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-03 17:49 UTC] JohannesBauer at gmx dot de
--enable-fff of course is --enable-track-vars
 [2002-03-04 03:02 UTC] rasmus@php.net
Completely non-sensical bug report.
 [2002-03-04 14:37 UTC] JohannesBauer at gmx dot de
Compiling path: /mnt/raid/Samba/Linux Programme/php-4.1.2
Everything works fine until the last step (creating files/generating files), as already mentioned.

As this "bogus" _bug_ is reproducible, it would not have been difficult to figure that out by yourself, although I mentioned it.

Extract from ./configure
+++++++++++++++++++++++++++
Generating files
checking for working mkdir -p... (cached) yes
creating config_vars.mk
updating cache ./config.cache
creating ./config.status
creating php4.spec
creating Zend/Makefile
creating main/build-defs.h
creating pear/scripts/pear
creating pear/scripts/phpize
creating pear/scripts/php-config
creating pear/scripts/pearize
creating pear/scripts/phptar
creating TSRM/Makefile
creating main/php_config.h
main/php_config.h is unchanged
creating sapi/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/sapi/Makefile.in: No such file or directory
creating ext/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/Makefile.in: No such file or directory
creating Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/Makefile.in: No such file or directory
creating pear/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/pear/Makefile.in: No such file or directory
creating main/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/main/Makefile.in: No such file or directory
creating ext/mysql/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/mysql/Makefile.in: No such file or directory
creating ext/mysql/libmysql/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/mysql/libmysql/Makefile.in: No such file or directory
creating ext/pcre/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/pcre/Makefile.in: No such file or directory
creating ext/pcre/pcrelib/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/pcre/pcrelib/Makefile.in: No such file or directory
creating ext/posix/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/posix/Makefile.in: No such file or directory
creating ext/session/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/session/Makefile.in: No such file or directory
creating ext/standard/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/standard/Makefile.in: No such file or directory
creating ext/xml/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/xml/Makefile.in: No such file or directory
creating ext/xml/expat/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/ext/xml/expat/Makefile.in: No such file or directory
creating sapi/apache/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/sapi/apache/Makefile.in: No such file or directory
creating regex/Makefile
cat: /mnt/raid/Samba/Linux: Is a directory
cat: Programme/php-4.1.2/regex/Makefile.in: No such file or directory
creating main/internal_functions.c
cat: ./main/internal_functions.c.in: No such file or directory
+++++++++++++++++++++++++++

Happy?
 [2002-03-04 14:38 UTC] derick@php.net
Which versions of libtool, automake and autoconf are you using?

Derick
 [2002-03-04 14:45 UTC] JohannesBauer at gmx dot de
Here are the version numbers. It really all goes back to the directory, when I changed from "/mnt/raid/Samba/Linux Programme/php-4.1.2" to "/mnt/raid/Samba/php-4.1.2" it worked perfectly.

ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
------------
automake (GNU automake) 1.4

Copyright (C) 1999 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>
------------
Autoconf version 2.13
 [2002-04-05 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-04-05 06:31 UTC] sniper@php.net
So don't use spaces in directory names.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 09:01:27 2024 UTC