Edit report at https://bugs.php.net/bug.php?id=20484&edit=1

 ID:                 20484
 Comment by:         denis_truffaut at hotmail dot com
 Reported by:        paj at pearfr dot org
 Summary:            Wrong detection of gnuiconv
 Status:             No Feedback
 Type:               Bug
 Package:            ICONV related
 Operating System:   Linux RH 7.3, gnu libiconv
 PHP Version:        4CVS-2002-11-18 (dev)
 Block user comment: N
 Private report:     N

 New Comment:

I validate the

  --with-iconv

instead of

  --width-iconv=/usr/lib

Other posts said that you had to try to switch between both instructions, 
depending on your configuration.

This trick saved my PHP 5.4 compilation.

Thanks ! :)


Previous Comments:
------------------------------------------------------------------------
[2002-12-01 16:34:50] [email protected]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------
[2002-11-19 09:52:36] [email protected]

Basically it's supposed to cause unexpected results that you install libiconv 
with --prefix=/usr, because libiconv would overwrite /usr/include/iconv.h that 
comes from glibc, which offers iconv functionality independently. It should be 
avoided when using linux.

Anyway, could you try following commands in the top of the PHP source directory 
and configure again?

$ rm -f include/*


------------------------------------------------------------------------
[2002-11-19 09:31:30] paj at pearfr dot org

After a make clean, which I forgot to do before, using only '--with-iconv' I 
got the same error I got weeks ago during make:


ext/iconv/iconv.lo: In function `zm_startup_miconv':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:139: undefined reference 
to `_libiconv_version'
ext/iconv/iconv.lo: In function `php_iconv_string':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:217: undefined reference 
to `libiconv_open'
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:226: undefined reference 
to `libiconv'
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:238: undefined reference 
to `libiconv_close'
ext/xmlrpc/libxmlrpc/encodings.lo: In function `convert':
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:62: 
undefined reference to `libiconv_open'
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:73: 
undefined reference to `libiconv'
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:93: 
undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

pa

------------------------------------------------------------------------
[2002-11-19 09:17:08] paj at pearfr dot org

Hello,

Sorry for the answer delay, my home connection is down and/or too tired ;-)

Well, using only '--with-iconv' gave me the same error.

<Besides what configure params did you install libiconv with?>

./configure --prefix=/usr

I cannot remove it as far as I need it for php_dom too.

hth

pa

------------------------------------------------------------------------
[2002-11-18 19:24:19] [email protected]

Besides what configure params did you install libiconv with?

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


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

    https://bugs.php.net/bug.php?id=20484


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

Reply via email to