[GRASS-user] libiconv compile error

Micha Silver micha at arava.co.il
Wed Feb 14 01:56:34 EST 2007



Glynn Clements wrote:

> 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.
>
>   
Ooof, of course!
Glynn, your help as always is spot on.




More information about the grass-user mailing list