Re: [xml] Using libiconv
- From: xml thewrittenword com
- To: xml gnome org
- Subject: Re: [xml] Using libiconv
- Date: Mon, 2 Jul 2001 14:06:43 -0500
On Mon, Jul 02, 2001 at 10:16:50AM -0400, Daniel Veillard wrote:
On Mon, Jul 02, 2001 at 10:48:40AM +0100, Brian Stafford wrote:
Hi folks,
When running configure on a system which provides iconv but also
has libiconv installed in /usr/local, linking fails complaining that
libiconv_open and related functions are not found.
This is because the configure script fails to notice that -liconv
is required in this circumstance.
The following patch fixes this
  So now I have 3 ways to try to fix this iconv library thingie:
    http://mail.gnome.org/archives/xml/2001-July/msg00002.html
    http://mail.gnome.org/archives/xml/2001-June/msg00196.html
    http://mail.gnome.org/archives/xml/2001-July/msg00000.html
http://mail.gnome.org/archives/xml/2001-July/msg00000.html addresses a
minor nit with
http://mail.gnome.org/archives/xml/2001-June/msg00196.html. So, you
have :
  http://mail.gnome.org/archives/xml/2001-July/msg00002.html
  http://mail.gnome.org/archives/xml/2001-June/msg00196.html
I also think the patches address different problems.
I believe http://mail.gnome.org/archives/xml/2001-July/msg00002.html
is wrong for the following reasons (I have not tried it):
  1. Using AC_CHECK_LIB before AC_TRY_FUNC is just wrong. The
     fact that the library exists doesn't mean it should be used.
     Link with a library *only* if the function is not already
     found by linking with $LIBS (which AC_TRY_FUNC does).
  2. If you have both libiconv in /usr/lib and /usr/local/lib
     and you wish the one in /usr/local/lib to win, set
     LDFLAGS="-L/usr/local/lib" before running configure.
-- 
albert chin (china thewrittenword com)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]