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

From arnaud yvan
DateThu Jun 17 01:56:09 2010
Subject [greenstone-users] Having difficulties to compile form the so urce code to enable z3950. errors on libiconv
Hi,

I had to add some includes in runtime-src/src/z3950/z3950proxy.cpp in order
to compile the optionnal z3950 source code too :
#include <string.h>
#include <stdlib.h>
after line 28.

Regards,
Yvan Arnaud

-----Message d'origine-----
De : Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
Envoy□ : mercredi 16 juin 2010 01:23
□ : Biligsaikhan B.
Cc : greenstone-users@list.scms.waikato.ac.nz
Objet : Re: [greenstone-users] Having difficulties to compile form the
source code to enable z3950. errors on libiconv

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
>