[leafnode-list] Re: Compilation failure leafnode-2.0.0.alpha20090908a.luascript
Kevin R. Bulgrien
kbulgrien at worldnet.att.net
Tue Jul 27 00:48:13 CEST 2010
<snip>
> > I am attempting to compile leafnode-2.0.0.alpha20090908a.luascript
> > under Karmic Koala and:
> >
> > +--------
> > andrew at skamandros:~$ gcc --version
> > gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
> > +-------
> >
> > Compilation fails with the following error message:
> >
> > +----------
> > -MT arc4random.o -MD -MP -MF .deps/arc4random.Tpo -c -o arc4random.o
> > arc4random.c
> > In file included from arc4random.h:4,
> > from arc4random.c:34:
> > system.h:23:7: warning: "sizeof" is not defined
> > system.h:23:13: error: missing binary operator before token "("
> > arc4random.c: In function ‘arc4_stir’:
> > arc4random.c:87: warning: ignoring return value of ‘read’, declared with
> > attribute warn_unused_result
> > make: *** [arc4random.o] Error 1
> > +-----------
> >
> > Please let me know if there is more information I need to provide to
> > shed light on this error.
>
> Hi Andrew, sorry for that. Please use the patch below for the nonce.
> I think the code shouldn't be using sizeof in preprocessor statements.
>
> diff --git a/system.h b/system.h
> index a460297..189a3cd 100644
> --- a/system.h
> +++ b/system.h
<snip>
I was affected by this issue on Mandriva 2010.1 (Spring). It has been quite
some time since the patch was offered, so I am glad I searched the history
before asking the question again.
Perhaps an updated snapshot is in order?
I got the affected tarball at:
http://www.dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/
where it is listed as the "current development snapshot".
Thanks for your support...
Kevin R. Bulgrien
More information about the leafnode-list
mailing list