smaugFUSS 1.7 compile errors

Posted by Falk0n on Tue 18 Jul 2006 07:38 PM — 4 posts, 16,001 views.

#0
i looked through the forum already and havent found anyone else with this problem unless i accidently missed it.

Im running Ubuntu (breezy badger)

josh@X-102:~/smaugfuss/src$ make
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
In file included from comm.c:29:
mccp.h:18:18: error: zlib.h: No such file or directory
In file included from comm.c:29:
mccp.h:33: error: syntax error before ‘z_stream’
cc1: warnings being treated as errors
mccp.h:33: warning: no semicolon at end of struct or union
mccp.h:35: error: syntax error before ‘}’ token
comm.c: In function ‘new_descriptor’:
comm.c:1035: error: invalid application of ‘sizeof’ to incomplete type ‘MCCP’
comm.c: In function ‘write_to_descriptor’:
comm.c:1624: error: dereferencing pointer to incomplete type
comm.c:1626: error: dereferencing pointer to incomplete type
comm.c:1627: error: dereferencing pointer to incomplete type
comm.c:1629: error: dereferencing pointer to incomplete type
comm.c:1631: error: dereferencing pointer to incomplete type
comm.c:1632: error: dereferencing pointer to incomplete type
comm.c:1632: error: dereferencing pointer to incomplete type
comm.c:1634: error: dereferencing pointer to incomplete type
comm.c:1636: warning: implicit declaration of function ‘deflate’
comm.c:1636: error: dereferencing pointer to incomplete type
comm.c:1636: error: ‘Z_SYNC_FLUSH’ undeclared (first use in this function)
comm.c:1636: error: (Each undeclared identifier is reported only once
comm.c:1636: error: for each function it appears in.)
comm.c:1638: error: ‘Z_OK’ undeclared (first use in this function)
comm.c:1642: error: dereferencing pointer to incomplete type
comm.c:1642: error: dereferencing pointer to incomplete type
comm.c:1648: error: dereferencing pointer to incomplete type
comm.c:1678: error: dereferencing pointer to incomplete type
comm.c:1678: error: dereferencing pointer to incomplete type
comm.c:1680: error: dereferencing pointer to incomplete type
comm.c:1680: error: dereferencing pointer to incomplete type
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2

any help would be awesome thanks
Amended on Wed 19 Jul 2006 12:04 AM by Falk0n
USA #1
Looks like you might be missing zlib. Are you using Cygwin?
[EDIT] That was a silly question.
Amended on Tue 18 Jul 2006 07:50 PM by Zeno
USA #2
He's running on Ubuntu. It should be pretty easy to get zlib; the standard package list should have it in there somewhere. If it doesn't, it should be fairly easy to get it from the web; just google for "zlib" and it'll be in the first few entries.
#3
you guys rock that fixed the problem thanks a bunch