ID: 17576
Comment by: jzhigao at sohu dot com
Reported By: blakforge at hotmail dot com
Status: Bogus
Bug Type: Compile Failure
Operating System: win2k / cygwin
PHP Version: 4.2.3
New Comment:

cvs -z3
update -d -P
checkout -P
diff -u


Previous Comments:
------------------------------------------------------------------------

[2002-10-25 10:25:51] [email]hudzillaphp.net[/email]

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 ;)

------------------------------------------------------------------------

[2002-10-22 12:38:08] [email]sniperphp.net[/email]

check config.log for the real reason WHY the check fails.
Further discussion about this should happen on [email]php-devlists.php.net[/email] so
stop posting your comments here.


------------------------------------------------------------------------

[2002-10-22 12:33:12] [email]hudzillaphp.net[/email]

Sniper,
> Use autoconf 2.13
....seems to contradict with...

<< [18 Jun 4:59am] [email]edinkphp.net[/email] 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:22:22] [email]sniperphp.net[/email]

Use autoconf 2.13


------------------------------------------------------------------------

[2002-10-22 12:14:23] [email]hudzillaphp.net[/email]

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

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/17576[/url]

--
Edit this bug report at [url]http://bugs.php.net/?id=17576&edit=1[/url]