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

2006-08-16 Thread openmacnews at gmail dot com
 ID:   38452
 User updated by:  openmacnews at gmail dot com
 Reported By:  openmacnews at gmail dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: OSX 10.4.7
 PHP Version:  5CVS-2006-08-14 (CVS)
 Assigned To:  hirokawa
 New Comment:

i've
  xcode 2.4
  gcc version 4.0.1 (Apple Computer, Inc. build 5363)

installed.

bldg with-mbstring _had_ worked w/ this combo ...

though i can't swear to the correlation, i think it was a php52cvs
update when it started.

sounds like y'all have a better handle on it atm.

thx.


Previous Comments:


[2006-08-16 12:42:21] [EMAIL PROTECTED]

Assigned to the maintainer.



[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 15
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] [EMAIL PROTECTED]

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



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=38452edit=1


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

2006-08-16 Thread tony2001
 ID:   38452
 Updated by:   [EMAIL PROTECTED]
 Reported By:  openmacnews at gmail dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: OSX 10.4.7
 PHP Version:  5CVS-2006-08-14 (CVS)
 Assigned To:  hirokawa
 New Comment:

You can try to grab some old CVS code and see if it builds for you.
This command would do that for you:
cvs -d :pserver:[EMAIL PROTECTED]/repository co -D
2006-month-day 00:00:00 -r PHP_5_2 php-src


Previous Comments:


[2006-08-16 13:15:40] openmacnews at gmail dot com

i've
  xcode 2.4
  gcc version 4.0.1 (Apple Computer, Inc. build 5363)

installed.

bldg with-mbstring _had_ worked w/ this combo ...

though i can't swear to the correlation, i think it was a php52cvs
update when it started.

sounds like y'all have a better handle on it atm.

thx.



[2006-08-16 12:42:21] [EMAIL PROTECTED]

Assigned to the maintainer.



[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 15
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] [EMAIL PROTECTED]

Latest CVS works just fine here.



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=38452edit=1


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

2006-08-16 Thread openmacnews at gmail dot com
 ID:   38452
 User updated by:  openmacnews at gmail dot com
 Reported By:  openmacnews at gmail dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: OSX 10.4.7
 PHP Version:  5CVS-2006-08-14 (CVS)
 Assigned To:  hirokawa
 New Comment:

I bet openmacnews upgraded XCode between Aug 4th and 14th...

yup.

 I have however discovered something else: it works fine on 
Intel OS X with XCode 2.4 (MacBook). I'm seeing this problem 
on a Dual G4, also with XCode 2.4. Looking more like a gcc PPC issue to
me.

hmm ...

all my tests ARE on PPC -- no MacIntels.


Previous Comments:


[2006-08-16 15:22:50] marcus at synchromedia dot co dot uk

Well, given that I'm seeing this in 5.1.4, I doubt earlier 
versions of 5.2 will be any different, and I bet openmacnews 
upgraded XCode between Aug 4th and 14th...

I have however discovered something else: it works fine on 
Intel OS X with XCode 2.4 (MacBook). I'm seeing this problem 
on a Dual G4, also with XCode 2.4. Looking more like a gcc PPC 
issue to me.



[2006-08-16 14:25:00] [EMAIL PROTECTED]

And if the old code doesn't work for you too, it's likely to be Xcode
issue, not PHP.



[2006-08-16 14:24:08] [EMAIL PROTECTED]

You can try to grab some old CVS code and see if it builds for you.
This command would do that for you:
cvs -d :pserver:[EMAIL PROTECTED]/repository co -D
2006-month-day 00:00:00 -r PHP_5_2 php-src



[2006-08-16 13:15:40] openmacnews at gmail dot com

i've
  xcode 2.4
  gcc version 4.0.1 (Apple Computer, Inc. build 5363)

installed.

bldg with-mbstring _had_ worked w/ this combo ...

though i can't swear to the correlation, i think it was a php52cvs
update when it started.

sounds like y'all have a better handle on it atm.

thx.



[2006-08-16 12:42:21] [EMAIL PROTECTED]

Assigned to the maintainer.



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=38452edit=1