#48195 [Com]: iconv link failure
ID: 48195 Comment by: ajmiller at engr dot psu dot edu Reported By: rickdunn at chez dot com Status: Open Bug Type: Compile Failure Operating System: OS X 10.5.6 PHP Version: 5.3.0RC2 Assigned To: scottmac New Comment: I had the same problem with iconv on a Mac OS X Server 10.5.6 on an iMac G5. Using compiler and linker flags CFLAGS="-arch ppc64" CCFLAGS="-arch ppc64" CXXFLAGS="-arch ppc64" LDFLAGS="-arch ppc64" export CFLAGS CXXFLAGS LDFLAGS CCFLAGS to force 64 bit and then the following configure options did produce a functioning version of the php module. ./configure '--prefix=/usr/local' '--mandir=/usr/share/man' '-- disable-all' '--with-xmlrpc' '--enable-libxml' '-- infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with- ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib- dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable- ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable- sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file- path=/etc' '--sysconfdir=/private/etc' '--with-mysql-sock=/var/mysql' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd' '--with-openssl' '-- with-xmlrpc' '--enable-dom' '--with-xsl=/usr' '--enable-xml' '--with- pear' I've never used --disable-all before. Does it disable everything that is not explicitly enabled? Does this exclude something that caused the link problems with iconv? Also, for mysqlnd to build, I had to edit the mysqlnd_portability.h file like I described in the bug #48198 report I submitted previously. Previous Comments: [2009-05-11 20:57:48] rickdunn at chez dot com The problem seems to be that the 5.3 RC2 build has a problem with the "- arch x86_64" compiler flag. If I run a stripped-down configure... ./configure --disable-all --with-iconv --with-apxs2 ...I don't get any errors, but I'll end up with a 32-bit PHP module and I'm running 64-bit Apache. Compiling for 64-bit was not a problem with 5.2.x or 5.3 RC1. [2009-05-11 18:35:07] rickdunn at chez dot com I tried the 5.3-dev build at http://snaps.php.net/ and received the same error. [2009-05-10 18:38:58] scott...@php.net Can you try with ./configure --disable-all --with-xmlrpc --enable-libxml The above configures file for me on 10.5.6. [2009-05-10 17:05:53] j...@php.net Does this happen with current PHP_5_2 snapshot? (please try..) http://snaps.php.net/ [2009-05-10 12:03:51] rickdunn at chez dot com No luck. I tried running ./buildconf before ./configure and the same error occurs. I tried stripping out all of the compiler flags except for " -arch x86_64 -m64" and still get the same error. Again, this problem showed up with 5.3.0RC2. I did not have any problems with 5.3.0RC1. 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/48195 -- Edit this bug report at http://bugs.php.net/?id=48195&edit=1
#48198 [NEW]: Compile failure with mysqlnd similar to Bug #47992
From: ajmiller at engr dot psu dot edu Operating system: Mac OS X Server 10.5.6 PHP version: 5.3.0RC2 PHP Bug Type: Compile Failure Bug description: Compile failure with mysqlnd similar to Bug #47992 Description: Compiling with mysqlnd drivers failed. System: Mac OS X Server 10.5.6 on a G5 iMac with XCode 3.1.2 This bug is similar to that described in Bug #47992 /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 'MYSQLND_LLU_SPEC' undeclared (first use in this function) /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:111: error: 'MYSQLND_LL_SPEC' undeclared (first use in this function) changing line 177 in ext/mysqlnd/mysqlnd_portability.h from #if __powerpc64__ to #if __powerpc64__ || __ppc64__ and line 192 from #if __powerpc__ && !__powerpc64__ to #if (__powerpc__ || __ppc__ ) && !(__powerpc64__ || __ppc64__) resolves the error. Reproduce code: --- ./configure '--prefix=/usr/local' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql-sock=/var/mysql' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--with-pear' Expected result: Compile with out errors. Actual result: -- /bin/sh /Users/ajmiller/Desktop/php-5.3.0RC2/libtool --silent -- preserve-dup-deps --mode=compile gcc -Iext/mysqlnd/ - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mysqlnd/ -DPHP_ATOM_INC - I/Users/ajmiller/Desktop/php-5.3.0RC2/include - I/Users/ajmiller/Desktop/php-5.3.0RC2/main - I/Users/ajmiller/Desktop/php-5.3.0RC2 -I/Users/ajmiller/Desktop/php- 5.3.0RC2/ext/ereg/regex -I/usr/include/libxml2 - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/date/lib - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/oniguruma - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/libmbfl - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/libmbfl/mbfl - I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/sqlite3/libsqlite - I/Users/ajmiller/Desktop/php-5.3.0RC2/TSRM - I/Users/ajmiller/Desktop/php-5.3.0RC2/Zend -no-cpp-precomp -O2 - I/usr/include -fvisibility=hidden -c /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo In file included from /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd.h:59, from /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:23: /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:471:1: warning: "float8get" redefined /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:423:1: warning: this is the location of the previous definition /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:472:1: warning: "float8store" redefined /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:413:1: warning: this is the location of the previous definition /Users/ajmiller/Desktop/php-5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c: In function 'ps_fetch_from_1_to_8_bytes': /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 'MYSQLND_LLU_SPEC' undeclared (first use in this function) /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: (Each undeclared identifier is reported only once /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: for each function it appears in.) /Users/ajmiller/Desktop/php- 5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:111: error: 'MYSQLND_LL_SPEC' undeclared (first use in this function) make: *** [ext/mysqlnd/mysqlnd_ps_codec.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=48198&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48198&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48198&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48198&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48198&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48198&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48198&r=alreadyfixed Need backtrace: