RE: FreeBSD and BeOS on tinderbox don't like wv.


Subject: RE: FreeBSD and BeOS on tinderbox don't like wv.
From: James Montgomerie (jamie@montgomerie.net)
Date: Tue Jun 06 2000 - 08:43:31 CDT


> -----Original Message-----
> From: Martin Sevior [mailto:msevior@mccubbin.ph.unimelb.edu.au]
>
> They're too numerous to send via email. Checkout:
>
http://www.abisource.com/tinderbox/

Doh! Why didn't I think of that?

Anyway, the PPC BeOS error appears to because the compiler is very strict:

### mwcc Compiler Error:
# wvStream_create(in, FILE_STREAM, (wvInternalStream)inner);
# ^
# illegal explicit conversion from 'struct _FILE *' to
# 'union '
#----------------------------------------------------------
    File "/boot/home/work/tbscripts/BeOS_4.5_clobber/wv/support.c"; Line 69
#----------------------------------------------------------
### mwcc Compiler Error:
# wvStream_create(in, LIBOLE_STREAM, (wvInternalStream)inner);
# ^
# illegal explicit conversion from 'struct _MsOleStream *' to
# 'union '
#----------------------------------------------------------
    File "/boot/home/work/tbscripts/BeOS_4.5_clobber/wv/support.c"; Line 74
#----------------------------------------------------------

I'm casting to a union (which I didn't realise was illegal).

The solution is to change the lines to:

wvInternalStream str;
str.file_stream=inner;
wvStream_create(in, FILE_STREAM, str);

and

wvInternalStream str;
str.libole_stream=inner
wvStream_create(in, LIBOLE_STREAM, str);

respectively. Seems a bit long-winded when a cast would do, but I guess you
have to pay for correctness (or something).

More updates later, when tinderbox finishes it's current builds (or,
hopefully, no updates, because it'll work :-)

Jamie.



This archive was generated by hypermail 2b25 : Tue Jun 06 2000 - 08:41:10 CDT