Problems compiling Smaug under SunOS

Posted by Greg on Wed 19 Feb 2003 06:52 AM — 2 posts, 10,476 views.

#0
It unzipped fine but, I can't get Smaug to compile... any help?


make smaug
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
In file included from act_comm.c:32:
mud.h:37: sys/cdefs.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `act_comm.o'
Current working directory /afs/unity.ncsu.edu/users/g/gcstader/dist/src
*** Error code 1
make: Fatal error: Command failed for target `all'
unity%
Australia Forum Administrator #1
Different operating systems might have different "include" files, in your case sys/cdefs.h either isn't required at all, or is in a different place.

Try this:

  • Comment out the line "#include <sys/cdefs.h>" where it occurs to see if the problem goes away, and no further problems occur.
  • Find where cdefs.h is (eg. use the locate program) and amend the include line. eg. maybe this would work: "#include <cdefs.h>"