Re: BeOS Build error:


Subject: Re: BeOS Build error:
From: Sam TH (sam@uchicago.edu)
Date: Mon Dec 04 2000 - 08:38:11 CST


On Mon, Dec 04, 2000 at 03:28:24PM +0100, Roland Kunz wrote:
> Hi folks,
>
> same error when building under AIX 4.3.3 with gcc/g++ 2.95.
>
> Ben Hall wrote:
> >
> > Okay, I'm building Abi on BeOS, and I got this error:
> >
> > ut_mbtowc.cpp: /boot/home/Ab/LinuxX86/abi/src/af/util/xp/ut_mbtowc.cpp: In
> > method `int UT_Mbtowc::mbtowc(__wchar_t &, char)':
> > /boot/home/Ab/LinuxX86/abi/src/af/util/xp/ut_mbtowc.cpp:259: passing `char
> > **' as argument 2 of `iconv(void *, const char **, size_t *, char **,
> > size_t *)' adds cv-quals without intervening `const' make[4]: ***
> > [/boot/home/Ab/LinuxX86/abi/src/BeOS_5.0_x86_OBJ/obj/ut_mbtowc.o] Error 1
> > make[4]: Leaving directory `/boot/home/Ab/LinuxX86/abi/src/af/util/xp'
> > make[3]: *** [build] Error 2 make[3]: Leaving directory
> > `/boot/home/Ab/LinuxX86/abi/src/af/util' make[2]: *** [build] Error 2
> > make[2]: Leaving directory `/boot/home/Ab/LinuxX86/abi/src/af' make[1]:
> > *** [build] Error 2
> > make[1]: Leaving directory `/boot/home/Ab/LinuxX86/abi/src'

This is a serious problem, and one which I don't know how to fix.
Basically, the issue is that different libc versions have different
declarations for iconv. Eventually, (hopefully by the next release)
we will fix this by using something like autoconf. But for now, I
reccomend adding and

#if defined(__BeOS__) || defined(__AIX__)

around that code, provided that those are the right defines. If that
works, please submit a patch.

PS - Roland, are you willing to provide us with binaries for AIX?
That would be very nice to have.

Thanks
           
        sam th
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Mon Dec 04 2000 - 08:38:12 CST