Bug #13611 Updated: Fix of #6756 breaks compiling on AIX

From: Date: Thu, 29 Nov 2001 15:41:21 +0000
Subject: Bug #13611 Updated: Fix of #6756 breaks compiling on AIX
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72030@lists.php.net to get a copy of this message
ID: 13611
Updated by: mfischer
Reported By: perske@uni-muenster.de
Old Status: Open
Status: Closed
Bug Type: Compile Failure
Operating System: AIX 4.3.3 with C compiler 3.x
PHP Version: 4.0.6
New Comment:

4.1.0RC3 works -> closed.

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

[2001-11-29 10:38:43] perske@uni-muenster.de

Using my configure line reported earlier, PHP 4.1.0RC3 compiles without the reported bug.

(I'd like to see the #ifndef-#define-#endif construct nevertheless, it's the art of
defensive programming :-) .)

But compilations succeeds only if you set

  CC='cc -ma' ; export CC

prior to running configure; otherwise make fails in the linkage step because alloca() is available
only as a builtin function, not as a library function, on the given system/compiler environment.
Perhaps it is possible to check the need for the -ma option during configuration?
(The only purpose of -ma on the given system ist to activate the builtin alloca().)


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

[2001-11-21 07:12:49] mfischer@php.net

Can you try if this still happens with latest RC

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

If so, can you try replacing the line 

#define _XOPEN_SOURCE_EXTENDED

with

#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED
#endif

and see if it works?

Feedback.

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

[2001-10-09 07:27:06] perske@uni-muenster.de

configure --enable-discard-path --enable-force-cgi-redirect --enable-memory-limit --enable-dbase
--enable-ftp --enable-calendar --enable-wddx --enable-socket ; make

ext/sockets/sockets.c line 38 causes the system-defined
_XOPEN_SOURCE_EXTENDED to be redefined from a numeric value to an empty value. This later breaks
compilation because the numeric value will be used in another system header file containing a
statement

#if _XOPEN_SOURCE_EXTENDED==1





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



Edit this bug report at http://bugs.php.net/?id=13611&edit=1



Thread (5 messages)

« previous php.dev (#72030) next »