commit -- Re: commit: Re: commit: Re: commit: i18n megapatch to AW


Subject: commit -- Re: commit: Re: commit: Re: commit: i18n megapatch to AW
From: sam th (sam@uchicago.edu)
Date: Tue Oct 10 2000 - 03:35:54 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 10 Oct 2000, Vlad Harchev wrote:

> I think that this can be due to the #inclusion of the wrong <iconv.h> that
> doesn't declare functions as 'extren "C"' - thus C++ compiler tries to find
> mangled names and doesn't find them correctly.
> The sympthoms are:
> If linker says
> "undefined reference to 'iconv'" than 'extren "C"' was aroun the declaration
> of that function.
> If linker says
> "undefined reference to 'iconv(iconv_t, const char**, int*, char**, int*)'"
> than 'extren "C"' was not aroun the declaration of that function.
> It should be traced which one <iconv.h> is included. Though wv's and
> libinconv's iconv.h wrap everything inside 'extern "C" {' - so that wrong
> header file can be only FreeBSD's one.

It was a problem with the FreeBSD header file. I've added some #ifdef's
that fix the problem for FreeBSD, and if it shows up on other platforms,
they are easy to add too.

It took about seven hours from Martin's report of trouble before I
examined it, Vlad posted a possible fix, I coded and committed the fix,
and the compile works. And we're even on 3 continents. :-)

Thanks, Vlad.
           
        sam th
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xCABD33FC

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE54tTrt+kM0Mq9M/wRApENAKDc62NWRRETsNS8qRqdskfS6U+30gCfc9ja
LQswfoQlK7JCVb2ykvx5Edw=
=X/mc
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b25 : Tue Oct 10 2000 - 03:34:47 CDT