php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24913 configure doesn't detect C++ compiler properly
Submitted: 2003-08-01 19:11 UTC Modified: 2003-08-02 09:26 UTC
From: djain at gmx dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2003-08-01 (stable) OS: CygWin NT5
Private report: No CVE-ID: None
 [2003-08-01 19:11 UTC] djain at gmx dot net
Description:
------------
Under CygWin, when compiling with an extension that uses C++, configure reports "C++ compiler cannot create executables" and exits (./configure --with-myextension).
I'm using the latest version of CygWin with gcc 3.2 20020927.

After uncommenting the corresponding line in the configure script, I was able to successfully build PHP with my C++ extension.

I originally used php 4.3.2, the latest CVS version didn't work either.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-01 19:44 UTC] wez@php.net
cygwin is not a supported build environment for PHP.
We didn't write your extension.
You didn't give enough info for us to know what is going wrong.

This is not a bug in php, so marking as bogus.
If you have problems developing extensions, ask on the internals mailing list.
 [2003-08-01 21:28 UTC] djain at gmx dot net
If CygWin is not a supported build environment, how come the configure script explicitly checks for it: "checking for CygWin environment".

And PHP can be compiled on CygWin with no problems as long as you don't use C++. And even if you use C++, there are no problems except that configure thinks the C++ compiler is incapable of producing executables. So I had to modify configure not to exit after detecting that the compiler is supposedly incapable of producing executables.

It really has nothing to do with my extension at all. You can use any (C++) extension that has PHP_REQUIRE_CXX() in the config.m4 file.
 [2003-08-01 21:40 UTC] djain at gmx dot net
And why do you assume I am having trouble developing extensions? As I said, it worked fine after modifying configure.
 [2003-08-02 05:04 UTC] sniper@php.net
cygwin tests are from libtool/autoconf, those we can't remove. We do NOT support Cygwin, period.
(and it's likely that your config.m4 is borked, and that is definately NOT our problem.

 [2003-08-02 09:26 UTC] djain at gmx dot net
Thank you very much, that clarifies it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 11:01:31 2024 UTC