Re: {bb} compile errors
John Horne <[email protected]> Tue, 26 Feb 2008 23:25:11 +0000
| Newsgroups | gmane.network.bb4.general |
|---|---|
| Organization | University of Plymouth |
| Message-ID | <[email protected]> |
On Tue, 2008-02-26 at 12:49 -0500, [email protected] wrote: > trying to compile bb on Centos 5 and am getting the following errors >=20 > bbd.c: In function =E2main=E2: > bbd.c:724: error: invalid storage class for function =E2bbd_timeout=E2 > bbd.c:1154:8: warning: extra tokens at end of #endif directive > bbd.c:1186:8: warning: extra tokens at end of #endif directive > make[2]: *** [bbd.o] Error 1 > make[2]: Leaving directory `/usr/local/bb1.9i-btf/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/local/bb1.9i-btf/src' > make: *** [all] Error 2 >=20 If you look in bb.h at around line 107 you will see: #ifdef __GNUC__ /* GCC on darwin doesn't like function in function */ /* GCC on solaris does not seem to process a function within a function correctly */ #ifndef darwin #ifndef solaris #define FUNCINFUNCOK 1 #endif #endif #endif As far as I remember I added in there '#ifndef linux' after the 'solaris' one and an extra '#endif' too (so there are 4 in total) to fix the problem (well it gets round the problem, I'm sure there's a better fix). You'll still get warnings, but it does compile. John. --=20 --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: [email protected] Fax: +44 (0)1752 233839 -- =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D To unsubscribe from this list, or to subscribe to the bb-digest list send e-mail to mailto:[email protected] with unsubscribe bb -and/or- subscribe bb-digest in the BODY of the message.