ID: 48195
User updated by: rickdunn at chez dot com
Reported By: rickdunn at chez dot com
Status: Assigned
Bug Type: Compile Failure
Operating System: OS X 10.5.6
PHP Version: 5.3.0RC2
Assigned To: scottmac
New Comment:
Here's the last few lines and the error:
Zend/zend_object_handlers.o Zend/zend_objects_API.o
Zend/zend_default_classes.o Zend/zend_execute.o
sapi/apache2handler/mod_php5.o sapi/apache2handler/sapi_apache2.o
sapi/apache2handler/apache_config.o
sapi/apache2handler/php_functions.o main/internal_functions.o -liconv
-liconv -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle
libs/libphp5.so
Undefined symbols:
"_libiconv", referenced from:
__php_iconv_appendl in iconv.o
__php_iconv_appendl in iconv.o
_php_iconv_string in iconv.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
__php_iconv_strpos in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
Previous Comments:
------------------------------------------------------------------------
[2009-05-12 16:10:10] [email protected]
Can you show me the last command it tried to run from linking?
Usually you have -L/usr/lib and -L/opt/local/lib or similar.
------------------------------------------------------------------------
[2009-05-12 15:55:11] rickdunn at chez dot com
Unfortunately, no luck. I applied the patch, ran ./buildconf and then
ran the following:
CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LDFLAGS="-arch x86_64"
CCFLAGS="-arch x86_64" ./configure --disable-all --with-iconv --with-
apxs2
'Make' still fails with the same error.
For what it's worth, I compiled 5.2.9 successfully today, so nothing
seems to have changed on my computer that would cause this.
------------------------------------------------------------------------
[2009-05-12 02:19:30] [email protected]
Can you apply
http://whisky.macvicar.net/patches/apache2handler.patch.txt
Run ./buildconf and then configure again.
This should fix the issue you're having.
------------------------------------------------------------------------
[2009-05-11 21:32:48] ajmiller at engr dot psu dot edu
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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