Velu Erwan
2005-Jul-22 12:05 UTC
[syslinux] memdisk troubles while compiling with gcc 4.01
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 Sounds like gcc didn't like the extern in one side and static in the other side. What do you recommend for fixing this ?
H. Peter Anvin
2005-Jul-22 14:07 UTC
[syslinux] memdisk troubles while compiling with gcc 4.01
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 > > > 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. gcc 4 seems to like to throw errors for things where warnings would do just fine. Sigh. -hpa