ID:               39685
 User updated by:  dinumarina at gmail dot com
 Reported By:      dinumarina at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: Slackware
 PHP Version:      5.2.0
 New Comment:

Done:
Installed libiconv 1.9 in /opt/iconv

rm config.cache

'./configure' '--prefix=/usr' '--disable-static'
'--with-apxs=/usr/local/apache/bin/apxs' '--sysconfdir=/etc'
'--enable-discard-path' '--with-config-file-path=/etc/apache'
'--with-openssl' '--enable-bcmath' '--with-bz2' '--with-pic'
'--enable-calendar' '--enable-ctype' '--with-gdbm'
'--with-imap-ssl=/tmp/pine4.58/imap/c-client'
'--with-imap=/tmp/pine4.58/imap/c-client' '--enable-dbase'
'--enable-ftp' '--with-iconv=/opt/iconv' '--with-exif' '--with-gd'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
'--with-gmp' '--with-xml=shared,/usr' '--with-gettext=shared,/usr'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
'--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
'--disable-debug' '--with-zlib=/usr' '--with-kerberos' '--with-mysql'
'--with-iconv-dir=/opt/iconv'

still the same result, iconv() undefined... also from what I can make
of ./configure, it will search for glibc iconv and if found it will use
it regardless of --with-iconv= value? And anyway, the problem was there
before installing libiconv, when there was only glibc... it still gave
undefined function for iconv.


Previous Comments:
------------------------------------------------------------------------

[2006-11-29 16:43:12] [EMAIL PROTECTED]

Sure. Install it properly into separate location and specify its prefix
in configure.

------------------------------------------------------------------------

[2006-11-29 16:29:35] dinumarina at gmail dot com

Problem is, glibc implementation of iconv() seems to miss out on
//TRANSLIT, that's why I'm trying to use libiconv. Is there any chance
php will work with libiconv?

------------------------------------------------------------------------

[2006-11-29 16:25:28] [EMAIL PROTECTED]

Well, it looks like for some reason you have BOTH glibc and libiconv
installed, and that is expected to cause problems.
And this: --with-iconv=/root/libiconv-1.9.2/lib/.libs/ is completely
wrong.
Each time when configure expects <DIR>, it expects installation prefix,
i.e. the value of --prefix=<DIR> used when configuring the library.
Please uninstall libiconv (you don't need it as long as you're using
Linux, as you have glibc), remove config.cache and try again without
the value for --with-iconv option.

------------------------------------------------------------------------

[2006-11-29 16:20:59] dinumarina at gmail dot com

I tried with both glibc and libiconv-1.9.2; same result. Also when
trying with '--with-iconv=/root/libiconv-1.9.2/lib/.libs/' php -i still
reports using glibc.

cat main/php_config.h | grep ICONV
#define HAVE_LIBICONV 1
/* #undef HAVE_GICONV_H */
#define HAVE_LIBICONV 1
#define HAVE_ICONV 1
#define PHP_ICONV_IMPL "glibc"
/* #undef HAVE_BSD_ICONV */
#define PHP_ICONV_IMPL "glibc"
#define HAVE_GLIBC_ICONV 1
#define PHP_ICONV_IMPL "glibc"
#define ICONV_SUPPORTS_ERRNO 1
#define ICONV_SUPPORTS_ERRNO 1
#define ICONV_SUPPORTS_ERRNO 1
#define PHP_ICONV_H_PATH </usr/local/include/iconv.h>
/* #undef COMPILE_DL_ICONV */
#define HAVE_LIBICONV 1
/* #undef HAVE_GICONV_H */
#define HAVE_LIBICONV 1
#define HAVE_ICONV 1

------------------------------------------------------------------------

[2006-11-29 16:09:09] [EMAIL PROTECTED]

What kind of iconv implementation is installed on your machine?
What do you see with `cat main/php_config.h | grep 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/39685

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

Reply via email to