php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20808 configure script has a lines joined
Submitted: 2002-12-04 07:53 UTC Modified: 2002-12-05 09:48 UTC
From: paul at wurtel dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0RC2 OS: Solaris 2.6 sparc
Private report: No CVE-ID: None
 [2002-12-04 07:53 UTC] paul at wurtel dot net
The area round line 53644 in configure looks like:

#include <stdlib.h>
#ifdef __cplusplus                                                              extern "C"
#endif

Unfortunately the #ifdef line is joined with the extern line
with 70 spaces or so, so that it wraps nicely and hides this.

This was already there in 4.2.3 (as I discovered today).


Paul Slootman

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-04 17:51 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-12-05 04:04 UTC] paul at wurtel dot net
No, the snapshot still has the problem.
I found another place where it's wrong:
besides line 53644, also on line 56677.
 [2002-12-05 09:22 UTC] sniper@php.net
I just checked the latest snapshot and the configure is just fine in it. If you're generating configure yourself, it's not our problem if your autoconf is broken.

 [2002-12-05 09:29 UTC] paul at wurtel dot net
I checked the configure from the freshly unpacked tarball,
md5sum: bc06e58150282fbd031abd662df8b1e1  configure
$ grep -n '#ifdef __cplusplus  *extern "C"$' configure
53644:#ifdef __cplusplus                                                              extern "C"
56677:#ifdef __cplusplus                                                              extern "C"

Please look carefully, turn off line wrapping in your editor.
 [2002-12-05 09:35 UTC] paul at wurtel dot net
Digging into the freshly unpacked source some more, I get
the same line in different places:

$ find php-4.3.0RC2 -type f | xargs grep -n '#ifdef __cplusplus  *extern "C"$' /dev/null
php-4.3.0RC2/ext/mysql/libmysql/acinclude.m4:230:#ifdef __cplusplus                                    extern "C"
php-4.3.0RC2/autom4te-2.53.cache/output.0:53644:#ifdef __cplusplus                                    extern "C"
php-4.3.0RC2/autom4te-2.53.cache/output.0:56677:#ifdef __cplusplus                                    extern "C"
php-4.3.0RC2/configure:53644:#ifdef __cplusplus   extern "C"
php-4.3.0RC2/configure:56677:#ifdef __cplusplus   extern "C"

(Here multiple spaces between the __cplusplus and the extern removed as the textarea input wrapping didn't display it correctly.)

Especially the ext/mysql/libmysql/acinclude.m4 looks to me to be the real culprit.
 [2002-12-05 09:48 UTC] sniper@php.net
You were still referring to lines in the RC2 package.
This is now fixed in CVS. Thanks for being persistent. :)


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Mar 21 08:00:02 2026 UTC