From: Xochitl L. <Xoc...@tr...> - 2009-03-23 15:41:20
|
> > The problem I am having now which seems that it might be > a path issue is when I am trying to build libxml2. The > configure fails to find iconv. I have tried CFLAGS/LDFLAGS > and even tampering with the specs file but nothing so far > has worked. Here is a little snip from the config.log > file where the iconv test fails. > > configure:28926: checking for iconv > configure:28952: gcc -o conftest.exe -g -O2 -pedantic -W -Wformat > -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs > -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses > -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings > -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes > -Wnested-externs -Winline -Wredundant-decls conftest.c >&5 > > Shouldn't I see a -liconv > there just as I do in the config.log from another library > (gettext)? > > conftest.c:71: warning: function declaration isn't a prototype > C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccYxUN0h.o: In function `main': > n:/gtki/libxml2-2.6.32/conftest.c:73: undefined reference to > `libiconv_open' > n:/gtki/libxml2-2.6.32/conftest.c:74: undefined reference to `libiconv' > > Is the lack of the -liconv the reason for the above error? > > Damon Register > Have you tried specifying to libxml2 the directory for iconv? You notice that in libxml2 configure.in there is a section for setting up iconv: WITH_ICONV=0 if test "$with_iconv" = "no" ; then echo Disabling ICONV support else if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" # Export this since our headers include iconv.h XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" ICONV_LIBS="-L$with_iconv/lib" fi The iconv setup continues, that's just an excerpt. Earlier in the file u find the rule for enabling / disabling sections of code which use iconv. AC_ARG_WITH(iconv, [ --with-iconv[[=DIR]] add ICONV support (on)]) You might try specifying the directory for iconv on the configure command line. If you don't care about iconv support, u can instead use '--without-iconv'. Probably the libxml2 configure should find iconv if you have it installed, but I don't really know. Hope this helps, Xochitl |