php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17576 configure bug
Submitted: 2002-06-03 09:31 UTC Modified: 2002-10-25 10:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: blakforge at hotmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.3 OS: win2k / cygwin
Private report: No CVE-ID: None
 [2002-06-03 09:31 UTC] blakforge at hotmail dot com
while compiling php 4.2.1 i noticed that when i ran configure on my bash.exe (cygwin latest ver), configure didnt detect that i was running in cygwin enviroment. 

make didnt work either.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-18 04:59 UTC] edink@php.net
It a bug in autoconf 2.13. If you have autoconf 2.5x installed on your system you shoud be able to compile php using:

./cvsclean
./buildconf
./configure --without-xml --prefix=/usr
make
make install
 [2002-06-18 09:25 UTC] blakforge at hotmail dot com
there are still errors in that situation.  I have the latest updates on everything.  the odd thing is that Zend configure section detects the cygwin enviroment.

http://blakforge.phpwebhosting.com/phpdebug/example.txt
http://blakforge.phpwebhosting.com/phpdebug/example1.txt

it seems that php doesnt like cygwin / POSIX
 [2002-06-18 09:39 UTC] edink@php.net
Did you install autoconf 2.5x?
What about
./cvsclean
./buildconf

 [2002-06-18 19:50 UTC] blakforge at hotmail dot com
of course its installed (latest ver of autoconf), i said that i have the latest updates on _everything_.

cvsclean (i dont know what it does) was ran and 
buildconf (checked out ok)

you can check out those text files as an example and to get a good idea about my system.  if there is some program that will spit out every program that i have installed / versions i will do that for you if necessary to give you a better idea of my enviroment.
 [2002-06-18 21:14 UTC] edink@php.net
The line in the text file you linked:

checking for Cygwin environment... (cached) no

shows that config.cache hasn't been deleted (this is one of the files that is deleted by ./configure).

That is why I'm asking if that was acutally done. Another thing, what does "autoconf --version" say?
 [2002-06-18 21:15 UTC] edink@php.net
I meant to say "deleted by ./cvsclean".
 [2002-06-19 09:50 UTC] blakforge at hotmail dot com
just to make you happy, this time i dumped the results of your recommended ./configure configuration to the previous link.  just so you know, i did _exactly_ what you recommended when you initaly posted.  when i was attempting to compile php 4.2.0 it looked like the install was more successful than the latest version (that didnt compile either, even with some tinkering).

heres the results of what you asked for:

http://blakforge.phpwebhosting.com/phpdebug/buildconf.txt

during the dumping of the output of configure i noticed a lot of these lines coming up:

grep: conftest.out: No such file or directory
 [2002-06-29 20:55 UTC] sniper@php.net
Please try this snapshot:

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

 [2002-07-30 01: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-10-22 12:14 UTC] hudzilla@php.net
All,

I've reproduced the problem on 4.2.3 and php4-200210220900. I also did a test on 4.1.2, and it detects Cygwin just fine.

Here's what I did, using php4-200210220900:

./cvsclean
(this did NOT delete config.cache, so I deleted it by hand)
./buildconf
./configure --without-xml --prefix=/usr

Here's the first few lines of output (I can provide the rest if it will help)

---
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... i686-pc-cygwin
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R...
---

Just FYI, autoconf -V returns "autoconf (GNU Autoconf) 2.53a".

This is on a freshly-formatted Win2K Pro box.

Hope this helps,


--Paul
 [2002-10-22 12:22 UTC] sniper@php.net
Use autoconf 2.13

 [2002-10-22 12:33 UTC] hudzilla@php.net
Sniper,

> Use autoconf 2.13

...seems to contradict with...

<< [18 Jun 4:59am] edink@php.net It a bug in autoconf 2.13. If you have autoconf 2.5x installed on your system you shoud be able to compile php >>

Anyhow, using autoconf  2.13...

./cvsclean
./buildconf
./configure --without-xml --prefix=/usr
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... i686-pc-cygwin
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes

Seems the same...?


--Paul
 [2002-10-22 12:38 UTC] sniper@php.net
check config.log for the real reason WHY the check fails.
Further discussion about this should happen on php-dev@lists.php.net so stop posting your comments here.

 [2002-10-25 10:25 UTC] hudzilla@php.net
After additional testing and to-ing/fro-ing, it seems that the problem might well be down to cc not being available.

I fixed the problem on my test machine with:

ln --symbolic /usr/bin/gcc /usr/bin/cc

configure then properly detects Cygwin.  YMMV ;)
 [2003-11-11 01:28 UTC] jzhigao at sohu dot com
cvs -z3
update -d -P
checkout -P
diff -u
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 01:01:28 2024 UTC