#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-02-25 Thread scruffylion at gmail dot com
 ID:   49267
 Comment by:   scruffylion at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Hi, I finally got it to work in multiple versions of PHP after alot of
headbanging.  I'm running snow leopard that was an upgrade and not a
fresh install. 

I did NOT apply the iconv patch to any of the versions I tried this on.
 Also, specific to the compile of PHP, I ran everything literally as
root.

Not all steps are necessary I'm sure, but here's what I did:

1) Forcibly removed and reinstalled macports (had multiple versions of
iconv after the upgrade to snow leopard, one de-activated, but this may
not have done anything with regard to actually solving the iconv
issue).

2) Compile iconv as static with configuration as follows: 
./configure –prefix=/usr/local –enable-static
(I used my own compilations of things such as iconv, mcrypt, ligjpeg,
etc... all in /usr/local) 

3) Configured PHP with iconv directive, and extra LIBS:
env LIBS=-lresolv -liconv ./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/etc \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-openssl=shared,/opt/local \
--enable-cli \
--enable-mbstring \
--enable-exif \
--enable-sockets \
--with-mcrypt \
--with-zlib \
--with-zlib-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/var/mysql/mysql.sock \
--enable-zip \
--with-iconv=/usr/local \
--with-curl

4) Edited the Makefile prior to compilation and changed the location of
$(MH_BUNDLE_FLAGS) when called by the compiler.

Changed this line:
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS)
$(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o)
$(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@  cp $@
libs/libphp$(PHP_MAJOR_VERSION).so

To:
$(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS)
$(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS)
$(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) $(MH_BUNDLE_FLAGS) -o $@  cp $@
libs/libphp$(PHP_MAJOR_VERSION).so

5) Ran make.

Finally, I got this to work with PHP versions:
php-5.2.12
php-5.3.1
php5.3-201002242130

Final note:  for php-5.2.12 and php-5.3.1 I actually messed up my
mysql.sock location and decided to recompile php, and it failed on the
first attempt.  I then ran a make clean, and re-configured and
compiled and it workd on the second attempt.  Frankly, I don't know why.
 But if it works for you then great!


Previous Comments:


[2010-02-16 00:21:24] lperry65 at gmail dot com

I just tried to install 5.3.1 on os x 10.6.2 and had the following 
error:

Undefined symbols:   _libiconv, referenced from: etc etc.

Is this issue going to fixed anytime soon ?



[2010-02-11 10:14:06] sj at sjaensch dot org

The problem seems to be related to MacPorts, which often installs its 
own version of libiconv as dependency for several other ports. In my 
case, I'm using the MacPorts libpng, jpeg and freetype ports to compile

PHP. Even though I specified --with-iconv-dir=/usr, it seems that the 
version in /opt/local gets picked up at the linking stage. The reason
is 
that the linker command includes -L/opt/local/lib and -Wl,-
rpath,/opt/local/lib.



[2010-01-28 23:24:00] yux87 at hotmail dot com

Okay, here's the result how I made it work against my environment and
php version after a few times of failure in compiling:

--
Steps
--
1. The only thing I tried to make it work was to hack the iconv.c as
the patch above. ie. manually remove the #ifdef HAVE_LIBICONV, etc.
lines.
2. Do a re-configure, re-make. 

-
Result
-
./configure --with-iconv-dir=/usr  [Pass]
./make  [Pass]
./make test [Okay, didn't notice any fail with iconv, not sure it's
been tested though]

--
Configuration
--
Snow Leopard, with XCode. I did a fresh install rather than upgrade
from the old 10.5 version, so I guess it could be the reason I didn't
suffer the multiple iconv lib problem as some descriptions above.

PHP version: 5.3.1 - 19 Nov 2009 release from the download page

So I think the problem here is just some need to change the iconv.c
code a bit. Hope this works for you, too. I also tried compiling with my
macport iconv library(coz this'd be the actual one I'm going to use),
there's no problem working with it too.



[2010-01-03 11:48:35] iongion at yahoo dot com

My system is a SNOW LEOPARD 10.6.2

I think we have a final solution. All these problems are generated
because the 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-02-15 Thread lperry65 at gmail dot com
 ID:   49267
 Comment by:   lperry65 at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

I just tried to install 5.3.1 on os x 10.6.2 and had the following 
error:

Undefined symbols:   _libiconv, referenced from: etc etc.

Is this issue going to fixed anytime soon ?


Previous Comments:


[2010-02-11 10:14:06] sj at sjaensch dot org

The problem seems to be related to MacPorts, which often installs its 
own version of libiconv as dependency for several other ports. In my 
case, I'm using the MacPorts libpng, jpeg and freetype ports to compile

PHP. Even though I specified --with-iconv-dir=/usr, it seems that the 
version in /opt/local gets picked up at the linking stage. The reason
is 
that the linker command includes -L/opt/local/lib and -Wl,-
rpath,/opt/local/lib.



[2010-01-28 23:24:00] yux87 at hotmail dot com

Okay, here's the result how I made it work against my environment and
php version after a few times of failure in compiling:

--
Steps
--
1. The only thing I tried to make it work was to hack the iconv.c as
the patch above. ie. manually remove the #ifdef HAVE_LIBICONV, etc.
lines.
2. Do a re-configure, re-make. 

-
Result
-
./configure --with-iconv-dir=/usr  [Pass]
./make  [Pass]
./make test [Okay, didn't notice any fail with iconv, not sure it's
been tested though]

--
Configuration
--
Snow Leopard, with XCode. I did a fresh install rather than upgrade
from the old 10.5 version, so I guess it could be the reason I didn't
suffer the multiple iconv lib problem as some descriptions above.

PHP version: 5.3.1 - 19 Nov 2009 release from the download page

So I think the problem here is just some need to change the iconv.c
code a bit. Hope this works for you, too. I also tried compiling with my
macport iconv library(coz this'd be the actual one I'm going to use),
there's no problem working with it too.



[2010-01-03 11:48:35] iongion at yahoo dot com

My system is a SNOW LEOPARD 10.6.2

I think we have a final solution. All these problems are generated
because the Makefile is confused by the existence of multiple iconv
library installations, but not only this.

Fixing iconv (please note that these are pretty subjective, but they
are a good start)

Needed elements:

1) gettext - http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
2) iconv - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

Unpack both libraries, before running configure, prepare your
environment as follows:

(i assume you have latest xcode)

export MACOSX_DEPLOYMENT_TARGET=10.6; export CFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe -no-cpp-precomp; export CCFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe; export CXXFLAGS=-arch i386 -arch x86_64 -g -Os
-pipe LDFLAGS=-arch i386 -arch x86_64 -bind_at_load

and then run configure in gettext, leave prefix as it is, make  make
install;

NOW, building iconv will replace existing iconv from apple(it shouldn't
break anything)

./configure --prefix=/usr --enable-shared --enable-static

then:

make
sudo make install

This did it, what i managed to achieve:

1) Replace php 5.3.0 that comes with Snow Leopard, with php 5.3.1
2) Replace php 5.3.0 that comes with Snow Leopard, with php 5.2.12

Managed to install pecl extensions, apc, xdebug, uploadprogress, ming

I am now on php 5.2.12 as i do drupal development and there are some
module issues with php 5.3, but you could easily replace Snow Leo's php
5.3.0 with 5.3.1 and have your own pecl extensions/features enables

Bellow are build scripts that i use to compile php 5.3.1 and php
5.2.12

1) 5.2.12 - http://dpaste.com/hold/140511/
2) 5.3.1 - http://dpaste.com/hold/140512/

Good luck and hopefully php will get some better less confused build
scripts.

This the link that made me think and search more

http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/

I have a little more than 0 knowledge of unix build tools, make, conf,
gcc ... i am a php developer, excuse the non-initiated terms.



[2010-01-02 13:41:56] iongion at yahoo dot com

This is the output of make at its last step before throwing the hell

http://dpaste.com/hold/140147/



[2010-01-02 13:36:06] iongion at yahoo dot com

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-02-11 Thread sj at sjaensch dot org
 ID:   49267
 Comment by:   sj at sjaensch dot org
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

The problem seems to be related to MacPorts, which often installs its 
own version of libiconv as dependency for several other ports. In my 
case, I'm using the MacPorts libpng, jpeg and freetype ports to compile

PHP. Even though I specified --with-iconv-dir=/usr, it seems that the 
version in /opt/local gets picked up at the linking stage. The reason
is 
that the linker command includes -L/opt/local/lib and -Wl,-
rpath,/opt/local/lib.


Previous Comments:


[2010-01-28 23:24:00] yux87 at hotmail dot com

Okay, here's the result how I made it work against my environment and
php version after a few times of failure in compiling:

--
Steps
--
1. The only thing I tried to make it work was to hack the iconv.c as
the patch above. ie. manually remove the #ifdef HAVE_LIBICONV, etc.
lines.
2. Do a re-configure, re-make. 

-
Result
-
./configure --with-iconv-dir=/usr  [Pass]
./make  [Pass]
./make test [Okay, didn't notice any fail with iconv, not sure it's
been tested though]

--
Configuration
--
Snow Leopard, with XCode. I did a fresh install rather than upgrade
from the old 10.5 version, so I guess it could be the reason I didn't
suffer the multiple iconv lib problem as some descriptions above.

PHP version: 5.3.1 - 19 Nov 2009 release from the download page

So I think the problem here is just some need to change the iconv.c
code a bit. Hope this works for you, too. I also tried compiling with my
macport iconv library(coz this'd be the actual one I'm going to use),
there's no problem working with it too.



[2010-01-03 11:48:35] iongion at yahoo dot com

My system is a SNOW LEOPARD 10.6.2

I think we have a final solution. All these problems are generated
because the Makefile is confused by the existence of multiple iconv
library installations, but not only this.

Fixing iconv (please note that these are pretty subjective, but they
are a good start)

Needed elements:

1) gettext - http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
2) iconv - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

Unpack both libraries, before running configure, prepare your
environment as follows:

(i assume you have latest xcode)

export MACOSX_DEPLOYMENT_TARGET=10.6; export CFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe -no-cpp-precomp; export CCFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe; export CXXFLAGS=-arch i386 -arch x86_64 -g -Os
-pipe LDFLAGS=-arch i386 -arch x86_64 -bind_at_load

and then run configure in gettext, leave prefix as it is, make  make
install;

NOW, building iconv will replace existing iconv from apple(it shouldn't
break anything)

./configure --prefix=/usr --enable-shared --enable-static

then:

make
sudo make install

This did it, what i managed to achieve:

1) Replace php 5.3.0 that comes with Snow Leopard, with php 5.3.1
2) Replace php 5.3.0 that comes with Snow Leopard, with php 5.2.12

Managed to install pecl extensions, apc, xdebug, uploadprogress, ming

I am now on php 5.2.12 as i do drupal development and there are some
module issues with php 5.3, but you could easily replace Snow Leo's php
5.3.0 with 5.3.1 and have your own pecl extensions/features enables

Bellow are build scripts that i use to compile php 5.3.1 and php
5.2.12

1) 5.2.12 - http://dpaste.com/hold/140511/
2) 5.3.1 - http://dpaste.com/hold/140512/

Good luck and hopefully php will get some better less confused build
scripts.

This the link that made me think and search more

http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/

I have a little more than 0 knowledge of unix build tools, make, conf,
gcc ... i am a php developer, excuse the non-initiated terms.



[2010-01-02 13:41:56] iongion at yahoo dot com

This is the output of make at its last step before throwing the hell

http://dpaste.com/hold/140147/



[2010-01-02 13:36:06] iongion at yahoo dot com

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Here is the build script

./configure \
'--with-iconv-dir=/usr' \
'--prefix=/usr' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-cli' \
'--with-config-file-path=/etc' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-28 Thread yux87 at hotmail dot com
 ID:   49267
 Comment by:   yux87 at hotmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Okay, here's the result how I made it work against my environment and
php version after a few times of failure in compiling:

--
Steps
--
1. The only thing I tried to make it work was to hack the iconv.c as
the patch above. ie. manually remove the #ifdef HAVE_LIBICONV, etc.
lines.
2. Do a re-configure, re-make. 

-
Result
-
./configure --with-iconv-dir=/usr  [Pass]
./make  [Pass]
./make test [Okay, didn't notice any fail with iconv, not sure it's
been tested though]

--
Configuration
--
Snow Leopard, with XCode. I did a fresh install rather than upgrade
from the old 10.5 version, so I guess it could be the reason I didn't
suffer the multiple iconv lib problem as some descriptions above.

PHP version: 5.3.1 - 19 Nov 2009 release from the download page

So I think the problem here is just some need to change the iconv.c
code a bit. Hope this works for you, too. I also tried compiling with my
macport iconv library(coz this'd be the actual one I'm going to use),
there's no problem working with it too.


Previous Comments:


[2010-01-03 11:48:35] iongion at yahoo dot com

My system is a SNOW LEOPARD 10.6.2

I think we have a final solution. All these problems are generated
because the Makefile is confused by the existence of multiple iconv
library installations, but not only this.

Fixing iconv (please note that these are pretty subjective, but they
are a good start)

Needed elements:

1) gettext - http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
2) iconv - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

Unpack both libraries, before running configure, prepare your
environment as follows:

(i assume you have latest xcode)

export MACOSX_DEPLOYMENT_TARGET=10.6; export CFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe -no-cpp-precomp; export CCFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe; export CXXFLAGS=-arch i386 -arch x86_64 -g -Os
-pipe LDFLAGS=-arch i386 -arch x86_64 -bind_at_load

and then run configure in gettext, leave prefix as it is, make  make
install;

NOW, building iconv will replace existing iconv from apple(it shouldn't
break anything)

./configure --prefix=/usr --enable-shared --enable-static

then:

make
sudo make install

This did it, what i managed to achieve:

1) Replace php 5.3.0 that comes with Snow Leopard, with php 5.3.1
2) Replace php 5.3.0 that comes with Snow Leopard, with php 5.2.12

Managed to install pecl extensions, apc, xdebug, uploadprogress, ming

I am now on php 5.2.12 as i do drupal development and there are some
module issues with php 5.3, but you could easily replace Snow Leo's php
5.3.0 with 5.3.1 and have your own pecl extensions/features enables

Bellow are build scripts that i use to compile php 5.3.1 and php
5.2.12

1) 5.2.12 - http://dpaste.com/hold/140511/
2) 5.3.1 - http://dpaste.com/hold/140512/

Good luck and hopefully php will get some better less confused build
scripts.

This the link that made me think and search more

http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/

I have a little more than 0 knowledge of unix build tools, make, conf,
gcc ... i am a php developer, excuse the non-initiated terms.



[2010-01-02 13:41:56] iongion at yahoo dot com

This is the output of make at its last step before throwing the hell

http://dpaste.com/hold/140147/



[2010-01-02 13:36:06] iongion at yahoo dot com

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Here is the build script

./configure \
'--with-iconv-dir=/usr' \
'--prefix=/usr' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-cli' \
'--with-config-file-path=/etc' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' \
'--with-kerberos=/usr' \
'--with-zlib=/usr' \
'--enable-bcmath' \
'--with-bz2=/usr' \
'--enable-calendar' \
'--with-curl=/usr' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--enable-gd-native-ttf' \
'--with-ldap=/usr' \
'--with-ldap-sasl=/usr' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-pdo-mysql=mysqlnd' \
'--with-iodbc=/usr' \
'--enable-shmop' \
'--with-snmp=/usr' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sysvmsg' \

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-03 Thread iongion at yahoo dot com
 ID:   49267
 Comment by:   iongion at yahoo dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

My system is a SNOW LEOPARD 10.6.2

I think we have a final solution. All these problems are generated
because the Makefile is confused by the existence of multiple iconv
library installations, but not only this.

Fixing iconv (please note that these are pretty subjective, but they
are a good start)

Needed elements:

1) gettext - http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
2) iconv - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

Unpack both libraries, before running configure, prepare your
environment as follows:

(i assume you have latest xcode)

export MACOSX_DEPLOYMENT_TARGET=10.6; export CFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe -no-cpp-precomp; export CCFLAGS=-arch i386 -arch
x86_64 -g -Os -pipe; export CXXFLAGS=-arch i386 -arch x86_64 -g -Os
-pipe LDFLAGS=-arch i386 -arch x86_64 -bind_at_load

and then run configure in gettext, leave prefix as it is, make  make
install;

NOW, building iconv will replace existing iconv from apple(it shouldn't
break anything)

./configure --prefix=/usr --enable-shared --enable-static

then:

make
sudo make install

This did it, what i managed to achieve:

1) Replace php 5.3.0 that comes with Snow Leopard, with php 5.3.1
2) Replace php 5.3.0 that comes with Snow Leopard, with php 5.2.12

Managed to install pecl extensions, apc, xdebug, uploadprogress, ming

I am now on php 5.2.12 as i do drupal development and there are some
module issues with php 5.3, but you could easily replace Snow Leo's php
5.3.0 with 5.3.1 and have your own pecl extensions/features enables

Bellow are build scripts that i use to compile php 5.3.1 and php
5.2.12

1) 5.2.12 - http://dpaste.com/hold/140511/
2) 5.3.1 - http://dpaste.com/hold/140512/

Good luck and hopefully php will get some better less confused build
scripts.

This the link that made me think and search more

http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/

I have a little more than 0 knowledge of unix build tools, make, conf,
gcc ... i am a php developer, excuse the non-initiated terms.


Previous Comments:


[2010-01-02 13:41:56] iongion at yahoo dot com

This is the output of make at its last step before throwing the hell

http://dpaste.com/hold/140147/



[2010-01-02 13:36:06] iongion at yahoo dot com

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Here is the build script

./configure \
'--with-iconv-dir=/usr' \
'--prefix=/usr' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-cli' \
'--with-config-file-path=/etc' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' \
'--with-kerberos=/usr' \
'--with-zlib=/usr' \
'--enable-bcmath' \
'--with-bz2=/usr' \
'--enable-calendar' \
'--with-curl=/usr' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--enable-gd-native-ttf' \
'--with-ldap=/usr' \
'--with-ldap-sasl=/usr' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-pdo-mysql=mysqlnd' \
'--with-iodbc=/usr' \
'--enable-shmop' \
'--with-snmp=/usr' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-xmlrpc' \
'--with-xsl=/usr' \
'--with-pcre-regex' \
'--with-mcrypt' \
'--with-mhash' \
'--enable-zip' \
'--with-curl' \
'--with-pear'

With iconv dir set to /usr/local, still not working, arghhh



[2010-01-02 00:57:29] conrad dot tim at gmail dot com

Solved for me by applying the patch provided by Apple mentioned in bug

#48195.

http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch



[2010-01-02 00:37:35] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-02 Thread iongion at yahoo dot com
 ID:   49267
 Comment by:   iongion at yahoo dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Here is the build script

./configure \
'--with-iconv-dir=/usr' \
'--prefix=/usr' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-cli' \
'--with-config-file-path=/etc' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' \
'--with-kerberos=/usr' \
'--with-zlib=/usr' \
'--enable-bcmath' \
'--with-bz2=/usr' \
'--enable-calendar' \
'--with-curl=/usr' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--enable-gd-native-ttf' \
'--with-ldap=/usr' \
'--with-ldap-sasl=/usr' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-pdo-mysql=mysqlnd' \
'--with-iodbc=/usr' \
'--enable-shmop' \
'--with-snmp=/usr' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-xmlrpc' \
'--with-xsl=/usr' \
'--with-pcre-regex' \
'--with-mcrypt' \
'--with-mhash' \
'--enable-zip' \
'--with-curl' \
'--with-pear'

With iconv dir set to /usr/local, still not working, arghhh


Previous Comments:


[2010-01-02 00:57:29] conrad dot tim at gmail dot com

Solved for me by applying the patch provided by Apple mentioned in bug

#48195.

http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch



[2010-01-02 00:37:35] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2010-01-02 00:37:24] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2009-12-30 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2009-12-22 10:00:04] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And please, don't report multiple issues in one report. That missing
-lresolv issue should be fixed, right? (if not, report it separately!)



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/49267

-- 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-02 Thread iongion at yahoo dot com
 ID:   49267
 Comment by:   iongion at yahoo dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

This is the output of make at its last step before throwing the hell

http://dpaste.com/hold/140147/


Previous Comments:


[2010-01-02 13:36:06] iongion at yahoo dot com

It does not work for me, same Snow Leopard

I've added all possible combination of fixes

Using the latest php snapshot php5.3-201001012330


http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Here is the build script

./configure \
'--with-iconv-dir=/usr' \
'--prefix=/usr' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-cli' \
'--with-config-file-path=/etc' \
'--with-libxml-dir=/usr' \
'--with-openssl=/usr' \
'--with-kerberos=/usr' \
'--with-zlib=/usr' \
'--enable-bcmath' \
'--with-bz2=/usr' \
'--enable-calendar' \
'--with-curl=/usr' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--enable-gd-native-ttf' \
'--with-ldap=/usr' \
'--with-ldap-sasl=/usr' \
'--enable-mbstring' \
'--enable-mbregex' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-pdo-mysql=mysqlnd' \
'--with-iodbc=/usr' \
'--enable-shmop' \
'--with-snmp=/usr' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-xmlrpc' \
'--with-xsl=/usr' \
'--with-pcre-regex' \
'--with-mcrypt' \
'--with-mhash' \
'--enable-zip' \
'--with-curl' \
'--with-pear'

With iconv dir set to /usr/local, still not working, arghhh



[2010-01-02 00:57:29] conrad dot tim at gmail dot com

Solved for me by applying the patch provided by Apple mentioned in bug

#48195.

http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch



[2010-01-02 00:37:35] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2010-01-02 00:37:24] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2009-12-30 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-01 Thread conrad dot tim at gmail dot com
 ID:   49267
 Comment by:   conrad dot tim at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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-12-30 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2009-12-22 10:00:04] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And please, don't report multiple issues in one report. That missing
-lresolv issue should be fixed, right? (if not, report it separately!)



[2009-12-21 12:24:15] h dot lapp at clipdealer dot de

worked for me, too -- osx 10.6.2 / php 5.3.1

can we expect an official fix anytime soon?



[2009-12-08 00:03:06] ydeedido at yahoo dot com

Running OSX 10.6.2 and had the same issue on 5.3.1. The original post 
works (#define change on line #186).

As the original author mentioned, it seems as there should be another 
fix than to define A to A but hey, it works! (I didn't have to add -
lreslov on 5.3.1)



[2009-12-02 14:19:02] ralph dot schindler at zend dot com

Please note: This affects the PHP_5_2 branch as well.



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-01 Thread conrad dot tim at gmail dot com
 ID:   49267
 Comment by:   conrad dot tim at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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:


[2010-01-02 00:37:24] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2009-12-30 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2009-12-22 10:00:04] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And please, don't report multiple issues in one report. That missing
-lresolv issue should be fixed, right? (if not, report it separately!)



[2009-12-21 12:24:15] h dot lapp at clipdealer dot de

worked for me, too -- osx 10.6.2 / php 5.3.1

can we expect an official fix anytime soon?



[2009-12-08 00:03:06] ydeedido at yahoo dot com

Running OSX 10.6.2 and had the same issue on 5.3.1. The original post 
works (#define change on line #186).

As the original author mentioned, it seems as there should be another 
fix than to define A to A but hey, it works! (I didn't have to add -
lreslov on 5.3.1)



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2010-01-01 Thread conrad dot tim at gmail dot com
 ID:   49267
 Comment by:   conrad dot tim at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Solved for me by applying the patch provided by Apple mentioned in bug

#48195.

http://www.opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch


Previous Comments:


[2010-01-02 00:37:35] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2010-01-02 00:37:24] conrad dot tim at gmail dot com

This bug remains for me. On Snow Leapoard (10.6.2 Build 10C540) using 
php5.3-201001012330 snapshot).

Output ending the make process:
Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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



[2009-12-30 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2009-12-22 10:00:04] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And please, don't report multiple issues in one report. That missing
-lresolv issue should be fixed, right? (if not, report it separately!)



[2009-12-21 12:24:15] h dot lapp at clipdealer dot de

worked for me, too -- osx 10.6.2 / php 5.3.1

can we expect an official fix anytime soon?



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-12-21 Thread h dot lapp at clipdealer dot de
 ID:   49267
 Comment by:   h dot lapp at clipdealer dot de
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

worked for me, too -- osx 10.6.2 / php 5.3.1

can we expect an official fix anytime soon?


Previous Comments:


[2009-12-08 00:03:06] ydeedido at yahoo dot com

Running OSX 10.6.2 and had the same issue on 5.3.1. The original post 
works (#define change on line #186).

As the original author mentioned, it seems as there should be another 
fix than to define A to A but hey, it works! (I didn't have to add -
lreslov on 5.3.1)



[2009-12-02 14:19:02] ralph dot schindler at zend dot com

Please note: This affects the PHP_5_2 branch as well.



[2009-10-09 16:00:28] Lawrence dot Sewell at vt dot edu

Moving this thread to a positive note, making these two changes does
work for my system with PHP-5.3.0:

sw_vers -   ProductName: Mac OS X Server ProductVersion: 10.6.1
BuildVersion: 10B504
gcc -v  -   Thread model: posix gcc version 4.2.1 (Apple Inc. build
5646)
machine -   i486

1) Add -lresolv to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and
EXTRA_LDFLAGS_PROGRAM in Makefile

2) Change ext/iconv/iconv.c 
186c186
 #define iconv libiconv
---
 #define iconv iconv



[2009-10-05 13:45:31] cest_robert at hotmail dot com

I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install.
Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng,
etc.) and ensured it was a 64-bit library using file
/opt/local/lib/libiconv.dylib.

Tried each combination (edited ext/iconv/iconv.c file line 185, edited
Makefile to include -lresolv) but nothing allows the system to compile
correctly.  The error is always:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __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_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _convert in encodings.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I've even tried NOT using libiconv with --without-iconv in the PHP
config script, but it *still* gives this error no matter what happens.

Spent 3 days now searching for fixes, trying different combinations of
patches and suggestions, but nothing works. I'm completely stumped.



[2009-09-28 19:05:37] bj...@php.net

This issue looks like the same issue as I fixed on FreeBSD some years
ago.
If I can access to that OSX platform I'm sure I can fix it while Scott
is away..



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-12-07 Thread ydeedido at yahoo dot com
 ID:   49267
 Comment by:   ydeedido at yahoo dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Running OSX 10.6.2 and had the same issue on 5.3.1. The original post 
works (#define change on line #186).

As the original author mentioned, it seems as there should be another 
fix than to define A to A but hey, it works! (I didn't have to add -
lreslov on 5.3.1)


Previous Comments:


[2009-12-02 14:19:02] ralph dot schindler at zend dot com

Please note: This affects the PHP_5_2 branch as well.



[2009-10-09 16:00:28] Lawrence dot Sewell at vt dot edu

Moving this thread to a positive note, making these two changes does
work for my system with PHP-5.3.0:

sw_vers -   ProductName: Mac OS X Server ProductVersion: 10.6.1
BuildVersion: 10B504
gcc -v  -   Thread model: posix gcc version 4.2.1 (Apple Inc. build
5646)
machine -   i486

1) Add -lresolv to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and
EXTRA_LDFLAGS_PROGRAM in Makefile

2) Change ext/iconv/iconv.c 
186c186
 #define iconv libiconv
---
 #define iconv iconv



[2009-10-05 13:45:31] cest_robert at hotmail dot com

I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install.
Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng,
etc.) and ensured it was a 64-bit library using file
/opt/local/lib/libiconv.dylib.

Tried each combination (edited ext/iconv/iconv.c file line 185, edited
Makefile to include -lresolv) but nothing allows the system to compile
correctly.  The error is always:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __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_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _convert in encodings.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I've even tried NOT using libiconv with --without-iconv in the PHP
config script, but it *still* gives this error no matter what happens.

Spent 3 days now searching for fixes, trying different combinations of
patches and suggestions, but nothing works. I'm completely stumped.



[2009-09-28 19:05:37] bj...@php.net

This issue looks like the same issue as I fixed on FreeBSD some years
ago.
If I can access to that OSX platform I'm sure I can fix it while Scott
is away..



[2009-09-23 23:53:35] mattcsl at gmail dot com

For php-5.3.0, php-5.3.1RC1, and a snapshot build

I have tried adding -lresolv to EXTRA_LIBS and MH_BUNDLE_FLAGS in
Makefile
 
I have edited ext/iconv/iconv.c like the thread has said.

I even patched iconv.c with the patch that was posted at the end of
this thread. 

Absolutely none of this solves the linking problem! This is seriously
ruining my day. Why is this not working 

Mac OS X 10.6.1 

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --enable-zip --enable-ftp --with-gd
--with-jpeg-dir=/usr/local/lib --with-curl --with-iconv-dir=/usr

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_factory_create in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
   

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-12-02 Thread ralph dot schindler at zend dot com
 ID:   49267
 Comment by:   ralph dot schindler at zend dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Please note: This affects the PHP_5_2 branch as well.


Previous Comments:


[2009-10-09 16:00:28] Lawrence dot Sewell at vt dot edu

Moving this thread to a positive note, making these two changes does
work for my system with PHP-5.3.0:

sw_vers -   ProductName: Mac OS X Server ProductVersion: 10.6.1
BuildVersion: 10B504
gcc -v  -   Thread model: posix gcc version 4.2.1 (Apple Inc. build
5646)
machine -   i486

1) Add -lresolv to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and
EXTRA_LDFLAGS_PROGRAM in Makefile

2) Change ext/iconv/iconv.c 
186c186
 #define iconv libiconv
---
 #define iconv iconv



[2009-10-05 13:45:31] cest_robert at hotmail dot com

I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install.
Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng,
etc.) and ensured it was a 64-bit library using file
/opt/local/lib/libiconv.dylib.

Tried each combination (edited ext/iconv/iconv.c file line 185, edited
Makefile to include -lresolv) but nothing allows the system to compile
correctly.  The error is always:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __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_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _convert in encodings.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I've even tried NOT using libiconv with --without-iconv in the PHP
config script, but it *still* gives this error no matter what happens.

Spent 3 days now searching for fixes, trying different combinations of
patches and suggestions, but nothing works. I'm completely stumped.



[2009-09-28 19:05:37] bj...@php.net

This issue looks like the same issue as I fixed on FreeBSD some years
ago.
If I can access to that OSX platform I'm sure I can fix it while Scott
is away..



[2009-09-23 23:53:35] mattcsl at gmail dot com

For php-5.3.0, php-5.3.1RC1, and a snapshot build

I have tried adding -lresolv to EXTRA_LIBS and MH_BUNDLE_FLAGS in
Makefile
 
I have edited ext/iconv/iconv.c like the thread has said.

I even patched iconv.c with the patch that was posted at the end of
this thread. 

Absolutely none of this solves the linking problem! This is seriously
ruining my day. Why is this not working 

Mac OS X 10.6.1 

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --enable-zip --enable-ftp --with-gd
--with-jpeg-dir=/usr/local/lib --with-curl --with-iconv-dir=/usr

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_factory_create in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-10-09 Thread Lawrence dot Sewell at vt dot edu
 ID:   49267
 Comment by:   Lawrence dot Sewell at vt dot edu
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Moving this thread to a positive note, making these two changes does
work for my system with PHP-5.3.0:

sw_vers -   ProductName: Mac OS X Server ProductVersion: 10.6.1
BuildVersion: 10B504
gcc -v  -   Thread model: posix gcc version 4.2.1 (Apple Inc. build
5646)
machine -   i486

1) Add -lresolv to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and
EXTRA_LDFLAGS_PROGRAM in Makefile

2) Change ext/iconv/iconv.c 
186c186
 #define iconv libiconv
---
 #define iconv iconv


Previous Comments:


[2009-10-05 13:45:31] cest_robert at hotmail dot com

I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install.
Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng,
etc.) and ensured it was a 64-bit library using file
/opt/local/lib/libiconv.dylib.

Tried each combination (edited ext/iconv/iconv.c file line 185, edited
Makefile to include -lresolv) but nothing allows the system to compile
correctly.  The error is always:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __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_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _convert in encodings.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I've even tried NOT using libiconv with --without-iconv in the PHP
config script, but it *still* gives this error no matter what happens.

Spent 3 days now searching for fixes, trying different combinations of
patches and suggestions, but nothing works. I'm completely stumped.



[2009-09-28 19:05:37] bj...@php.net

This issue looks like the same issue as I fixed on FreeBSD some years
ago.
If I can access to that OSX platform I'm sure I can fix it while Scott
is away..



[2009-09-23 23:53:35] mattcsl at gmail dot com

For php-5.3.0, php-5.3.1RC1, and a snapshot build

I have tried adding -lresolv to EXTRA_LIBS and MH_BUNDLE_FLAGS in
Makefile
 
I have edited ext/iconv/iconv.c like the thread has said.

I even patched iconv.c with the patch that was posted at the end of
this thread. 

Absolutely none of this solves the linking problem! This is seriously
ruining my day. Why is this not working 

Mac OS X 10.6.1 

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --enable-zip --enable-ftp --with-gd
--with-jpeg-dir=/usr/local/lib --with-curl --with-iconv-dir=/usr

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_factory_create in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _php_iconv_stream_filter_append_bucket in iconv.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-10-05 Thread cest_robert at hotmail dot com
 ID:   49267
 Comment by:   cest_robert at hotmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install.
Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng,
etc.) and ensured it was a 64-bit library using file
/opt/local/lib/libiconv.dylib.

Tried each combination (edited ext/iconv/iconv.c file line 185, edited
Makefile to include -lresolv) but nothing allows the system to compile
correctly.  The error is always:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __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_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _php_iconv_stream_filter_append_bucket in iconv.o
  _convert in encodings.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _convert in encodings.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I've even tried NOT using libiconv with --without-iconv in the PHP
config script, but it *still* gives this error no matter what happens.

Spent 3 days now searching for fixes, trying different combinations of
patches and suggestions, but nothing works. I'm completely stumped.


Previous Comments:


[2009-09-28 19:05:37] bj...@php.net

This issue looks like the same issue as I fixed on FreeBSD some years
ago.
If I can access to that OSX platform I'm sure I can fix it while Scott
is away..



[2009-09-23 23:53:35] mattcsl at gmail dot com

For php-5.3.0, php-5.3.1RC1, and a snapshot build

I have tried adding -lresolv to EXTRA_LIBS and MH_BUNDLE_FLAGS in
Makefile
 
I have edited ext/iconv/iconv.c like the thread has said.

I even patched iconv.c with the patch that was posted at the end of
this thread. 

Absolutely none of this solves the linking problem! This is seriously
ruining my day. Why is this not working 

Mac OS X 10.6.1 

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --enable-zip --enable-ftp --with-gd
--with-jpeg-dir=/usr/local/lib --with-curl --with-iconv-dir=/usr

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_factory_create in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _php_iconv_stream_filter_append_bucket in iconv.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-15 22:26:59] j dot 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-23 Thread mattcsl at gmail dot com
 ID:   49267
 Comment by:   mattcsl at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

For php-5.3.0, php-5.3.1RC1, and a snapshot build

I have tried adding -lresolv to EXTRA_LIBS and MH_BUNDLE_FLAGS in
Makefile
 
I have edited ext/iconv/iconv.c like the thread has said.

I even patched iconv.c with the patch that was posted at the end of
this thread. 

Absolutely none of this solves the linking problem! This is seriously
ruining my day. Why is this not working 

Mac OS X 10.6.1 

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --enable-zip --enable-ftp --with-gd
--with-jpeg-dir=/usr/local/lib --with-curl --with-iconv-dir=/usr

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _php_iconv_stream_filter_factory_create in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _php_iconv_stream_filter_append_bucket in iconv.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _zif_iconv_substr in iconv.o
  _zif_iconv_substr in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
  _zif_iconv_mime_encode in iconv.o
  _zif_iconv_mime_encode in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


Previous Comments:


[2009-09-15 22:26:59] j dot jeising at gmail dot com

Apple already added a path to it's own sources:

http://opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch

With the parameters provided in the Makefile this works seamless:

--with-iconv-dir=/usr



[2009-09-15 19:29:50] skovjuice at gmail dot com

I had this issue on OSX 10.6:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

Managed to solve it by doing as described in the first post on the
latest PHP 5.3 snapshot.



[2009-09-11 14:20:59] jason at dajaney dot com

I am also experiencing this same issue on my new mac, running 10.6.

Keep this alive with any updates. 

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

The above was trying my last ditch effort to have --without-iconv in
the ./configure statement. 

Jason



[2009-09-09 20:34:20] rickdunn at chez dot com

For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.



[2009-09-09 13:30:41] aoyagi dot kouhei at gmail dot com

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-15 Thread skovjuice at gmail dot com
 ID:   49267
 Comment by:   skovjuice at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

I had this issue on OSX 10.6:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

Managed to solve it by doing as described in the first post on the
latest PHP 5.3 snapshot.


Previous Comments:


[2009-09-11 14:20:59] jason at dajaney dot com

I am also experiencing this same issue on my new mac, running 10.6.

Keep this alive with any updates. 

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

The above was trying my last ditch effort to have --without-iconv in
the ./configure statement. 

Jason



[2009-09-09 20:34:20] rickdunn at chez dot com

For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.



[2009-09-09 13:30:41] aoyagi dot kouhei at gmail dot com

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-09 13:29:03] alexandre dot morgaut at 4d dot fr

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..



[2009-09-08 00:45:55] notfornoone at gmail dot com

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-15 Thread j dot jeising at gmail dot com
 ID:   49267
 Comment by:   j dot jeising at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Apple already added a path to it's own sources:

http://opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch

With the parameters provided in the Makefile this works seamless:

--with-iconv-dir=/usr


Previous Comments:


[2009-09-15 19:29:50] skovjuice at gmail dot com

I had this issue on OSX 10.6:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

Managed to solve it by doing as described in the first post on the
latest PHP 5.3 snapshot.



[2009-09-11 14:20:59] jason at dajaney dot com

I am also experiencing this same issue on my new mac, running 10.6.

Keep this alive with any updates. 

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

The above was trying my last ditch effort to have --without-iconv in
the ./configure statement. 

Jason



[2009-09-09 20:34:20] rickdunn at chez dot com

For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.



[2009-09-09 13:30:41] aoyagi dot kouhei at gmail dot com

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-09 13:29:03] alexandre dot morgaut at 4d dot fr

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-11 Thread jason at dajaney dot com
 ID:   49267
 Comment by:   jason at dajaney dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

I am also experiencing this same issue on my new mac, running 10.6.

Keep this alive with any updates. 

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

The above was trying my last ditch effort to have --without-iconv in
the ./configure statement. 

Jason


Previous Comments:


[2009-09-09 20:34:20] rickdunn at chez dot com

For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.



[2009-09-09 13:30:41] aoyagi dot kouhei at gmail dot com

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-09 13:29:03] alexandre dot morgaut at 4d dot fr

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..



[2009-09-08 00:45:55] notfornoone at gmail dot com

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS



[2009-09-06 03:47:43] me at sleepycode dot com

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-09 Thread alexandre dot morgaut at 4d dot fr
 ID:   49267
 Comment by:   alexandre dot morgaut at 4d dot fr
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..


Previous Comments:


[2009-09-08 00:45:55] notfornoone at gmail dot com

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS



[2009-09-06 03:47:43] me at sleepycode dot com

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1




[2009-09-06 00:04:17] aoyagi dot kouhei at gmail dot com

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-09 Thread aoyagi dot kouhei at gmail dot com
 ID:   49267
 Comment by:   aoyagi dot kouhei at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


Previous Comments:


[2009-09-09 13:29:03] alexandre dot morgaut at 4d dot fr

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..



[2009-09-08 00:45:55] notfornoone at gmail dot com

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS



[2009-09-06 03:47:43] me at sleepycode dot com

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1




[2009-09-06 00:04:17] aoyagi dot kouhei at gmail dot com

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-09 Thread rickdunn at chez dot com
 ID:   49267
 Comment by:   rickdunn at chez dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.


Previous Comments:


[2009-09-09 13:30:41] aoyagi dot kouhei at gmail dot com

SnowLeopard
PHP-5.3.1RC1

ext/iconv/iconv.c

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-09 13:29:03] alexandre dot morgaut at 4d dot fr

the tip of notfornoone worked for me 
but I still have a problem with buildconf :

sh-3.2# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.

I didn't change autoconf, so I imagine snow leopard did..



[2009-09-08 00:45:55] notfornoone at gmail dot com

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS



[2009-09-06 03:47:43] me at sleepycode dot com

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1




[2009-09-06 00:04:17] aoyagi dot kouhei at gmail dot com

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-07 Thread notfornoone at gmail dot com
 ID:   49267
 Comment by:   notfornoone at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

The instructions in the first comment worked for me, here is what I did
to successfully install php-5.3.1RC1 on Snow Leopard. This also worked
for php-5.2.11RC1 on Snow Leopard.

1.
I changed ext/iconv/iconv.c as per the first comment on this bug.

On line 185 change

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to 

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif


2.
Run configure
./configure --prefix=/usr/local/php/5.3.1RC1
--with-apxs2=/usr/sbin/apxs


I found that after changing the iconv.c file I did not need to add
-lsresolv to EXTRA_LIBS


Previous Comments:


[2009-09-06 03:47:43] me at sleepycode dot com

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1




[2009-09-06 00:04:17] aoyagi dot kouhei at gmail dot com

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-04 05:34:43] jay3ld at yahoo dot com

Has any progress been made towards this with Snow Leopard?

I am receiving the same issue with both PHP 5.3 and PHP 6.  I don't get
the above error.  My error occurs during the configure stage.


checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.


I even tried to download and build a 

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-05 Thread aoyagi dot kouhei at gmail dot com
 ID:   49267
 Comment by:   aoyagi dot kouhei at gmail dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


Previous Comments:


[2009-09-04 05:34:43] jay3ld at yahoo dot com

Has any progress been made towards this with Snow Leopard?

I am receiving the same issue with both PHP 5.3 and PHP 6.  I don't get
the above error.  My error occurs during the configure stage.


checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.


I even tried to download and build a custom iconv library and pointed
it with --with-iconv-dir=/home/builds/iconv and it still fails.



[2009-08-15 16:30:35] scott...@php.net

I'll look at the iconv issue once I get access to the snow leopard
appleseed.

I'd like to investigate a proper fix for this.



[2009-08-15 16:27:05] s dot rost at ewerk dot com

Right, the DNS stuff works in the snapshot (php5.3-200908151430)
The precise linker error for iconv is:

Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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: *** [sapi/cgi/php-cgi] Error 1



[2009-08-15 15:26:39] scott...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

The DNS functions have been fixed in SVN already.

The iconv stuff I've not looked at yet.



[2009-08-15 13:54:11] s dot rost at ewerk dot com

ext/iconv/iconv.c has to be changed to

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

Stupid copy/paste mistake.

Also that does of course not really make sense, the #define is not 
needed at all. so probably the configure script should not detect 
LIBICONV in the first place, but plain iconv.



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/49267

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



#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-05 Thread me at sleepycode dot com
 ID:   49267
 Comment by:   me at sleepycode dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

I have the same issue as well with Snow Leopard and any version of PHP
I try.
I have built my own libiconv and this made little difference.

My configure line:

./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/home/software/postgresql \
--enable-mbstring \
--with-gd \
--with-png-dir=/home/software/libpng \
--with-iconv=/home/software/iconv


The build error during make:

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_ctor in iconv.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
  _php_iconv_string in iconv.o
  __php_iconv_strlen in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_substr in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_encode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  __php_iconv_mime_decode in iconv.o
  _php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



Previous Comments:


[2009-09-06 00:04:17] aoyagi dot kouhei at gmail dot com

Snow Leopard
PHP5.3.1RC1

./configure --prefix=/opt/php-5.3.1RC1 --enable-zip
--with-apxs2=/opt/httpd/bin/apxs --with-bz2 --enable-calendar
--with-curl --with-gd --enable-gd-native-ttf --enable-gd-jis-conv 
--enable-mbstring --with-pdo-pgsql=/opt/postgresql
--with-pgsql=/opt/postgresql --enable-soap --enable-sockets
--with-jpeg-dir=/opt/jpeg --with-png-dir=/opt/libpng
--with-freetype-dir=/opt/freetype --with-zlib
--with-libxml-dir=/opt/libxml2 --with-xsl=/opt/libxslt
--with-readline=/opt/readline --with-gettext=/opt/gettext
--with-iconv-dir=/opt/libiconv

make

Undefined symbols:
  _libiconv_open, referenced from:
  _do_convert in gdkanji.o
  _libiconv, referenced from:
  _do_convert in gdkanji.o
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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
  _libiconv_close, referenced from:
  _do_convert in gdkanji.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1



[2009-09-04 05:34:43] jay3ld at yahoo dot com

Has any progress been made towards this with Snow Leopard?

I am receiving the same issue with both PHP 5.3 and PHP 6.  I don't get
the above error.  My error occurs during the configure stage.


checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.


I even tried to download and build a custom iconv library and pointed
it with --with-iconv-dir=/home/builds/iconv and it still fails.



[2009-08-15 16:30:35] scott...@php.net

I'll look at the iconv issue once I get access to the snow leopard
appleseed.

I'd like to investigate a proper fix for this.



[2009-08-15 16:27:05] s dot rost at ewerk dot com

Right, the DNS stuff works in the snapshot (php5.3-200908151430)
The precise linker error for iconv is:

Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  

#49267 [Com]: Linking fails for iconv: Undefined symbols: _libiconv

2009-09-03 Thread jay3ld at yahoo dot com
 ID:   49267
 Comment by:   jay3ld at yahoo dot com
 Reported By:  s dot rost at ewerk dot com
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: Mac OSX 10.6 Snow Leopard
 PHP Version:  5.3, 6 (2009-08-18)
 Assigned To:  scottmac
 New Comment:

Has any progress been made towards this with Snow Leopard?

I am receiving the same issue with both PHP 5.3 and PHP 6.  I don't get
the above error.  My error occurs during the configure stage.


checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.


I even tried to download and build a custom iconv library and pointed
it with --with-iconv-dir=/home/builds/iconv and it still fails.


Previous Comments:


[2009-08-15 16:30:35] scott...@php.net

I'll look at the iconv issue once I get access to the snow leopard
appleseed.

I'd like to investigate a proper fix for this.



[2009-08-15 16:27:05] s dot rost at ewerk dot com

Right, the DNS stuff works in the snapshot (php5.3-200908151430)
The precise linker error for iconv is:

Undefined symbols:
  _libiconv, referenced from:
  __php_iconv_strlen in iconv.o
  _php_iconv_string in iconv.o
  _php_iconv_string in iconv.o
  __php_iconv_strpos in iconv.o
  __php_iconv_appendl in iconv.o
  __php_iconv_appendl 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: *** [sapi/cgi/php-cgi] Error 1



[2009-08-15 15:26:39] scott...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

The DNS functions have been fixed in SVN already.

The iconv stuff I've not looked at yet.



[2009-08-15 13:54:11] s dot rost at ewerk dot com

ext/iconv/iconv.c has to be changed to

#ifdef HAVE_LIBICONV
#define iconv iconv
#endif

Stupid copy/paste mistake.

Also that does of course not really make sense, the #define is not 
needed at all. so probably the configure script should not detect 
LIBICONV in the first place, but plain iconv.



[2009-08-15 13:51:01] s dot rost at ewerk dot com

Description:

The linker fails to link the PHP 5.3.0 binaries on Mac OS X 10.6. For 
two reasons.

1. The configure Script fails to add `-lresolv` to EXTRA_LIBS and 
MH_BUNDLE_FLAGS in Makefile

2. ext/iconv/iconv.c has to be changed

(line 185) from

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif


Reproduce code:
---
./configure --with-iconv

Expected result:

`configure` and `make` work

Actual result:
--
Unresolved symbols when linking the binaries at the end of the `make` 
process.





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