Web Hosting Talk







View Full Version : gcc headers


Shyne
06-28-2002, 08:31 PM
Hi,

Does anyone know how to reinstall gcc headers. When I try to compile something I get errors like:

/usr/include/_G_config.h:28: parse error before `__off_t'
/usr/include/_G_config.h:28: warning: no semicolon at end of struct or union

/usr/include/libio.h:286: parse error before `__off_t'
/usr/include/libio.h:286: warning: no semicolon at end of struct or union

I realized this is a header problem, so I downloaded the gcc rpm and installed it again, but it still didn't fix the problem. I can't recompile my gcc because my current gcc doesn't work. I copied the header files from another server but still no luck.

roly
06-29-2002, 12:42 AM
Are you using gcc 2.96?

Shyne
06-29-2002, 01:03 AM
Yes.

gcc-2.96-98

roly
06-29-2002, 01:09 AM
gcc 2.96 is a crap version
go to www.rpmfind.net and pick up a gcc 2.95/2.91 rpm (i like 2.91, its been very stable for me)

Shyne
06-29-2002, 05:00 PM
Actually I fixed by running the /scripts/fixheaders command.

CPanel corrupts software and creates fix scripts for it. Maybe they shouldn't corrupt them in the first place.