[GRASS-user] libiconv compile error

Glynn Clements glynn at gclements.plus.com
Tue Feb 13 19:48:43 EST 2007


Micha Silver wrote:

> >> I have libiconv in /usr/local/lib:
> >>     
> >
> > That's the problem.
> >
> > If you're using Linux, you should be using the iconv implementation
> > which is included in GNU libc. Installing a stand-alone iconv library
> > will result in conflicts with the version in libc.
> >
> >   
> I suspected something like that.  So I've done:
> #make uninstall
> in the source directory for the stand-alone iconv. Then
> #ldconfig
> and now I see:
> [root at akev ~]# ldconfig -p | grep iconv
> [root at akev ~]# 
> So it's gone, but the compile still errors in several directories with:
> /home/micha/download/gis/grass-6.2.0/dist.i686-pc-linux-gnu/lib/libgrass_driver.so: 
> undefined reference to `libiconv_open'

> Any further suggestions?

Once you've uninstalled iconv, you need to rebuild GRASS from scratch,
i.e. "make distclean ; ./configure ... ; make ; make install".

If you try to do an incremental re-compile, it will re-use the object
files which were compiled using the libiconv headers.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list