[syslinux] memdisk troubles while compiling with gcc 4.01

Geert Stappers stappers at stappers.nl
Tue Jul 26 01:53:41 PDT 2005


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

On Fri, Jul 22, 2005 at 10:07:05AM -0400, H. Peter Anvin wrote:
> Velu Erwan wrote:
> >inflate.c:1001: error: static declaration of 'crc_32_tab' follows
> >non-static declaration
> >unzip.c:73: error: previous declaration of 'crc_32_tab' was here

I got those errors also.

> >Sounds like gcc didn't like the extern in one side and static in the
> >other side.
> >
> >What do you recommend for fixing this ?
> >
> 
> Add "static" to the declaration in unzip.c, line 73.

Doing that didn't get me a clean compile.   :-(

How should line 73 in memdisk/unzip.c look like?

> gcc 4 seems to like to throw errors for things where warnings would do 
> just fine.  Sigh.
> 
> 	-hpa


Cheers
Geert Stappers

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC5foVOSINbgwa/7sRAjqUAJwNahc8+Cjs3xeYW/PDPzwNdfdu4QCaA/sg
V6mp8anScB7rC0UsP+3Csys=
=AjDg
-----END PGP SIGNATURE-----




More information about the Syslinux mailing list