[greenstone-users] Having difficulties to compile form the source code to enable z3950. errors on libiconv

From Katherine Don
DateWed Jun 16 11:22:44 2010
Subject [greenstone-users] Having difficulties to compile form the source code to enable z3950. errors on libiconv
In-Reply-To (4C0DB90B-4040509-gmail-com)
Hi

To fix the mg_files error (common-src/indexers/mgpp/text/mg_files.cpp),
change line 56
from

s = strrchr (bp, '/');
to
s = strrchr ((char*)bp, '/');

Hopefully that will be the only error.

iconv was only included in 2.82 for windows. 2.83 includes it for all
platforms.
If you can't get it working in your Ubuntu, then you may like to try
2.83 instead.

Regards,
Katherine

Biligsaikhan B. wrote:
> Dear Jim,
>
> My host OS is Ubuntu 10.04LTS (lycid) with the latest updates e.g,
> g++, gcc 4.4.3.
> It was giving errors : mg_files.cpp:56: error: invalid conversion from
> ?const char*? to ?char*? , etc.
>
> So I tested in my guest OS, Debian Etch (4.0r9) with g++ 2.95. And
> errors are: unac.c:12601: undefined reference to `libiconv_open'
> unac.c:12605: undefined reference to `libiconv_close',
> undefined reference to `libiconv'
>
> Thank you,
>
> Biligee
>
> On 06/08/2010 04:27 AM, Jim Hart wrote:
>> Dear Biligsaikhan ,
>>
>> What operating system are you compiling on?
>>
>> Regards,
>>
>> Jim Hart
>> Bates College
>>
>>
>> On 6/3/10 2:18 AM, Biligsaikhan B. wrote:
>>> Dear folks,
>>>
>>> I am having problems to compile GSDLv2.82 from the source code to
>>> enable z3950.
>>> Errors are: unac.c:12601: undefined reference to `libiconv_open'
>>> unac.c:12605: undefined reference to `libiconv_close',
>>> undefined reference to `libiconv'
>>>
>>> I think iconv is already included in the source code distribution.
>>> Any glues?
>>>
>>> Your advices are valuable.
>>>
>>> Biligsaikhan
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> greenstone-users mailing list
>>> greenstone-users@list.scms.waikato.ac.nz
>>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>
>>
>> _______________________________________________
>> greenstone-users mailing list
>> greenstone-users@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>