#38452 [Fbk->Asn]: cvs build fails @ --enable-mbstring

From: Date: Wed, 16 Aug 2006 12:42:21 +0000
Subject: #38452 [Fbk->Asn]: cvs build fails @ --enable-mbstring
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100856@lists.php.net to get a copy of this message
 ID:               38452
 Updated by:       tony2001@php.net
 Reported By:      openmacnews at gmail dot com
-Status:           Feedback
+Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: OSX 10.4.7
 PHP Version:      5CVS-2006-08-14 (CVS)
-Assigned To:      
+Assigned To:      hirokawa
 New Comment:

Assigned to the maintainer.


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

[2006-08-16 11:47:23] marcus at synchromedia dot co dot uk

This thread suggests that this is a problem that was 
introduced with XCode 2.2 and gcc 4.0.1, so if your XCode is 
older then you won't see this error:

http://www.mail-archive.com/fink-devel@lists.sourceforge.net/
msg12622.html
http://thread.gmane.org/gmane.os.apple.fink.general/19723

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

[2006-08-16 10:35:00] marcus at synchromedia dot co dot uk

FWIW, I'm getting this on 5.1.4. I DO have an entry in my 
config.log though:

configure:52940: checking for variable length prototypes and 
stdarg.h
configure:52974: gcc -o conftest -I/usr/include -mtune=7450 
-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -fno-strict-
aliasing -DBIND_8_COMPAT=1 -DEAPI -I/sw/include -Wno-
pointer-sign -I/sw/include -no-cpp-precomp -liconv -L/usr/
lib -L/sw/lib -L/opt/local/lib -L/opt/local/lib conftest.c -
liconv -lintl -lt1 -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 
-lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -
lxml2 -lz -liconv -lm 1>&5
configure: failed program was:
#line 52959 "configure"
#include "confdefs.h"

#include <stdarg.h>
int foo(int x, ...) {
        va_list va;
        va_start(va, x);
        va_arg(va, int);
        va_arg(va, char *);
        va_arg(va, double);
        return 0;
}
int main() { return foo(10, "", 3.14); }

Does that make any more sense?

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

[2006-08-16 10:18:49] tony2001@php.net

Latest CVS works just fine here.

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

[2006-08-14 22:10:39] openmacnews at gmail dot com

hi tony,

/usr/ports/php-5.2cvs/main  > grep HAVE_STDARG_PROTOTYPES *
  php_config.h:/* #undef HAVE_STDARG_PROTOTYPES */
  php_config.h.in:#undef HAVE_STDARG_PROTOTYPES

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

[2006-08-14 20:17:56] tony2001@php.net

Could you plz check main/php_config.h and tell me what is the value of
HAVE_STDARG_PROTOTYPES defined there?

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

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
    http://bugs.php.net/38452

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


Thread (21 messages)

« previous php.bugs (#100856) next »