Re: Compiling and iconv

From: Date: Mon, 14 Aug 2006 13:55:27 +0000
Subject: Re: Compiling and iconv
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-240631@lists.php.net to get a copy of this message
On Sunday 13 August 2006 22:00, Chris wrote: > Ray Hauge wrote: > > I use Slackware linux, and XMLRPC is not compiled in by default with my > > distro, so I'm compiling PHP myself. It's always been a simple enough > > task. First I get and install the required xmlrpc-epi libraries, and then > > I compile PHP telling it where I just installed them. Now I get this > > error message: > > > > undefined reference to `libiconv' > > > > when compiling PHP. I did some searching, and the only thing I've found > > in reference to this error was a bug in version 4.3.10. Has anyone run > > into this issue, or have some suggestions? > > > > I have checked that /usr/include/iconv.h is there, and it defines all the > > iconv_* and iconv compiler flags etc. I can also vouch that using iconv > > on the command line works just fine. > > Try explicitly telling php where iconv is by adding this option to your > configure command: > > --with-iconv-dir=/usr Thanks for the reply. I enentually got it to comipile by adding "-liconv" to the LDFLAGS environment variable to tell it to actually link in the iconv code. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099

« previous php.general (#240631) next »