From:             [EMAIL PROTECTED]
Operating system: Linux RH 7.3, gnu libiconv
PHP version:      4CVS-2002-11-18 (dev)
PHP Bug Type:     ICONV related
Bug description:  Wrong detection of gnuiconv

Hello,

I used redhat 7.3 and current cvs, iconv installed from sources using
version 1.8 (no rpm previously installed).

Configure options:./configure --prefix=/usr/local \
--enable-cli \
--enable-exif \
--with-calendar=shared \
--enable-magic-quotes \
--enable-trans-sid \
--enable-wddx \
--enable-ftp \
--with-gd \
--with-zlib \
--enable-gd-native-tt \
--with-t1lib="/usr/local" \
--with-jpeg-dir="/usr" \
--with-png-dir="/usr" \
--with-zlib-dir="/usr" \
--with-ttf \
--with-freetype-dir="/usr" \
 --with-mcrypt=/usr \
 --with-unixodbc=/usr \
--with-tiff-dir="/usr" \
--with-jpeg-dir="/usr" \
--with-zlib-dir="/usr" \
--with-xmlrpc \
 --with-openssl="/usr" \
 --with-ming="/usr/local" \
 --enable-bcmath \
 --with-gettext="/usr" \
 --with-mysql=/usr \
 --with-pgsql=/usr \
 --with-ibm-db2 \
 --enable-xslt \
 --with-xslt-sablot=/usr \
 --with-sablot-js=/usr \
 --enable-sockets \
 --with-imagick=/usr/local \
 --with-dom \
 --with-dom-xslt \
 --with-dom-exslt \
 --with-java=/usr/java/jdk1.3.1_03 \
 --with-tokenizer \
 --with-iconv=/usr \
 --with-iconv-dir=/usr \


make failed on:
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c: In function
`zm_startup_miconv':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:140:
`_libiconv_version' undeclared (first use in this function)
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:140: (Each
undeclared identifier is reported only once
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:140: for each
function it appears in.)
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c: In function
`php_iconv_string':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:255: warning:
assignment makes pointer from integer without a cast
make: *** [ext/iconv/iconv.lo] Error 1

It seems the wrong lib are detected:
<snip>
    136 #if HAVE_LIBICONV
    137     {
    138         static char buf[16];
    139         snprintf(buf, sizeof(buf), "%d.%d",
    140             ((_libiconv_version >> 8) & 0x0f),
(_libiconv_version & 0x0f));    141         version = buf;
    142     }
    143 #elif HAVE_GLIBC_ICONV
    144     version = (char *)gnu_get_libc_version();
    145 #endif
<snip>

hth

pa
-- 
Edit bug report at http://bugs.php.net/?id=20484&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20484&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20484&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20484&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20484&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20484&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20484&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20484&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20484&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20484&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20484&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20484&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20484&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20484&r=isapi

Reply via email to