13 Jun, 2009, Hades_Kane wrote in the 1st comment:
Votes: 0
I tried compiling today and got this error followed by a bunch of other crap:

gcc -c -Wall -O -ggdb  fight.c -o obj/fight.o
fight.c:31:23: sys/types.h: No such file or directory
fight.c:33:19: stdio.h: No such file or directory
fight.c:34:20: string.h: No such file or directory
fight.c:35:18: time.h: No such file or directory
In file included from fight.c:36:
merc.h:845: error: syntax error before "time_t"
merc.h:845: warning: no semicolon at end of struct or union
merc.h:2325: error: syntax error before "time_t"
merc.h:2325: warning: no semicolon at end of struct or union


I've never seen that before, and this is actually the first code change/compile I've attempted since May 25th according to my last modified dates.

The only thing I've done since then was work on installing sendmail and such into my VPS (running Debian 4.0 distro) so I could install a form mailer script. I'm kind of assuming that when I was changing permissions in order to allow the script to run (I later ended up going with a php script instead of cgi and delete the old ones) that I might have cut off my compiler?

This is the first time I've come up against something like this, so I'm pretty much clueless. Anyone have any advice?
13 Jun, 2009, Runter wrote in the 2nd comment:
Votes: 0
Hades_Kane said:
I tried compiling today and got this error followed by a bunch of other crap:

gcc -c -Wall -O -ggdb  fight.c -o obj/fight.o
fight.c:31:23: sys/types.h: No such file or directory
fight.c:33:19: stdio.h: No such file or directory
fight.c:34:20: string.h: No such file or directory
fight.c:35:18: time.h: No such file or directory
In file included from fight.c:36:
merc.h:845: error: syntax error before "time_t"
merc.h:845: warning: no semicolon at end of struct or union
merc.h:2325: error: syntax error before "time_t"
merc.h:2325: warning: no semicolon at end of struct or union


I've never seen that before, and this is actually the first code change/compile I've attempted since May 25th according to my last modified dates.

The only thing I've done since then was work on installing sendmail and such into my VPS (running Debian 4.0 distro) so I could install a form mailer script. I'm kind of assuming that when I was changing permissions in order to allow the script to run (I later ended up going with a php script instead of cgi and delete the old ones) that I might have cut off my compiler?

This is the first time I've come up against something like this, so I'm pretty much clueless. Anyone have any advice?


I'd first try to verify that the library files that are missing actually exist on your machine. (As they should.)
And if they don't you can reinstall them.
13 Jun, 2009, Hades_Kane wrote in the 3rd comment:
Votes: 0
If I'm looking for them in /usr/include then they aren't there. The locate command is finding a bunch in other locations, but to be honest I'm not even completely sure where I need to be looking. I keep finding conflicting results on google about this…
13 Jun, 2009, Runter wrote in the 4th comment:
Votes: 0
You can always try

sudo apt-get install libc6-dev

or

sudo apt-get install –reinstall build-essential

I'm assuming linux?
edit: Nm, you said linux. :)
13 Jun, 2009, Hades_Kane wrote in the 5th comment:
Votes: 0
Runter said:
You can always try

sudo apt-get install libc6-dev

or

sudo apt-get install –reinstall build-essential

I'm assuming linux?
edit: Nm, you said linux. :)


That did the trick, thanks a ton!
0.0/5