Re: libiconv vs. iconv error



On Tue, 2003-04-29 at 16:41:36, tacorner chello at wrote:

> I got this error from garnome while it was building glib.  Can someone help me?
>  I am using Slackware 9.0 and there is a libiconv in /usr/lib and iconv.h is in
> /usr/include.
> 
> Thanks,
> Tom Corner
> 
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
> -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -I/home/tcorner/garnome/include
> -I/usr/X11R6/include -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -I/home/tcorner/garnome/include -I/usr/X11R6/include -pthread
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -L/home/tcorner/garnome/lib -L/usr/X11R6/lib -O2 -pipe -g
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -L/home/tcorner/garnome/lib -L/usr/X11R6/lib -O2 -pipe -g
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -L/home/tcorner/garnome/lib -L/usr/X11R6/lib -O2 -pipe -g
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -L/home/tcorner/garnome/lib -L/usr/X11R6/lib -O2 -pipe -g
> -I/home/tcorner/garnome/include -I/usr/X11R6/include
> -L/home/tcorner/garnome/lib -L/usr/X11R6/lib -O2 -pipe -Wall -c gconvert.c 
> -fPIC -DPIC -o gconvert.lo
> gconvert.c:46:2: #error GNU libiconv not in use but included iconv.h is from
> libiconv
> make[8]: *** [gconvert.lo] Error 1
> make[8]: Leaving directory
> `/home/tcorner/src/garnome-0.23.1/gnome/glib/work/main

I have received the same error multiple times as well.  My setup is a
little different (I'm on Red Hat 8.0, but the sysadmin likes to install
all kinds of stuff in /usr/local).  Note that on the other machines that
I've tried garnome on (my home machines and laptop, which I have control
over and for which the sysadmin doesn't put all these stupid packages in
/usr/local), I don't get this problem.  Anyway, below is some ugly hack
that I used to get around this problem.  I'm sure someone else on the
list can probably suggest something better.

GARVERSION=0.22.0  # (the last one I tried...)

# After first build failure ... ??
cd garnome-$GARVERSION
cd gnome/glib/work/main.d/glib-2.2.1/glib
cat Makefile | sed -e "s%^CPPFLAGS =%CPPFLAGS = -isystem /usr/include%"\
  > Makefile.new
mv Makefile Makefile.old
mv Makefile.new Makefile



Hope this helps,
Elijah

-- 
-----------------------------------------------------------------
Elijah Newren
Internet: http://www.math.utah.edu/~newren   newren math utah edu
Tired of pop-up webpages when surfing the internet?  Look at
   http://www.math.utah.edu/~newren/noPopUps.html
for how to get rid of them without spending a penny.
-----------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]