Here some errors I am getting upon make all. I am running Ubuntu 6.1 with latest kernel and updated software. I can run Knoppix or Mandrake if needed however. I am brand new to linux, so it might be an error on my part. I decided to learn Linux and got rid of windows totally to force me to learn, what a trip it's become.
make smaug
make[1]: Entering directory `/home/jeremy/Desktop/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG act_comm.c
act_comm.c:19:23: error: sys/types.h: No such file or directory
act_comm.c:20:19: error: ctype.h: No such file or directory
act_comm.c:21:19: error: stdio.h: No such file or directory
act_comm.c:22:20: error: string.h: No such file or directory
act_comm.c:23:18: error: time.h: No such file or directory
In file included from act_comm.c:32:
mud.h:21:20: error: stdlib.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from mud.h:22,
from act_comm.c:32:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
In file included from act_comm.c:32:
mud.h:35:22: error: unistd.h: No such file or directory
mud.h:37:25: error: sys/cdefs.h: No such file or directory
mud.h:41:24: error: sys/time.h: No such file or directory
In file included from act_comm.c:32:
mud.h:2271: error: expected specifier-qualifier-list before ‘time_t’
mud.h:2416: error: expected specifier-qualifier-list before ‘time_t’
mud.h:2841: error: field ‘total_time’ has incomplete type
mud.h:2842: error: field ‘min_time’ has incomplete type
mud.h:2843: error: field ‘max_time’ has incomplete type
mud.h:3504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘last_restore_all_time’
mud.h:3505: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘boot_time’
mud.h:3508: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘new_boot_time_t’
mud.h:3672: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘current_time’
mud.h:3674: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
mud.h:3675: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
mud.h:4595: error: expected ‘)’ before ‘*’ token
mud.h:4596: error: expected ‘)’ before ‘*’ token
mud.h:4597: error: expected ‘)’ before ‘*’ token
mud.h:4598: error: expected declaration specifiers or ‘...’ before ‘FILE’
mud.h:4600: error: expected ‘)’ before ‘*’ token
mud.h:4601: error: expected ‘)’ before ‘*’ token
mud.h:4602: error: expected ‘)’ before ‘*’ token
mud.h:4603: error: expected ‘)’ before ‘*’ token
mud.h:4604: error: expected ‘)’ before ‘*’ token
mud.h:4773: error: expected declaration specifiers or ‘...’ before ‘FILE’
mud.h:4774: error: expected declaration specifiers or ‘...’ before ‘FILE’
mud.h:4793: error: expected ‘)’ before ‘*’ token
mud.h:4795: error: expected ‘)’ before ‘*’ token
mud.h:4827: error: expected ‘)’ before ‘*’ token
mud.h:4963: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘end_timer’
mud.h:5005: error: expected declaration specifiers or ‘...’ before ‘FILE’
mud.h:5007: error: expected declaration specifiers or ‘...’ before ‘FILE’
mud.h:5012: error: expected ‘)’ before ‘*’ token
mud.h:5013: error: expected ‘)’ before ‘*’ token
mud.h:5053: error: expected ‘)’ before ‘reset’
act_comm.c:40:21: error: regex.h: No such file or directory
act_comm.c:65: error: ‘NULL’ undeclared here (not in a function)
act_comm.c: In function ‘talk_auction’:
act_comm.c:2914: warning: incompatible implicit declaration of built-in function ‘sprintf’
act_comm.c:2919: error: ‘CHAR_DATA’ has no member named ‘deaf’
act_comm.c:2920: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c: In function ‘knows_language’:
act_comm.c:2937: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2939: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2939: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c:2941: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2941: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c:2949: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2949: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2955: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2965: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c: In function ‘can_learn_lang’:
act_comm.c:2978: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:2982: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c: In function ‘do_speak’:
act_comm.c:3049: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c:3058: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:3060: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c: In function ‘do_languages’:
act_comm.c:3076: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:3121: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:3121: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:3122: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c:3124: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c:3124: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c:3131: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c:3140: error: ‘CHAR_DATA’ has no member named ‘practice’
act_comm.c:3146: error: ‘CHAR_DATA’ has no member named ‘practice’
act_comm.c:3151: error: ‘CHAR_DATA’ has no member named ‘speaks’
act_comm.c:3172: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c:3173: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c:3173: error: ‘CHAR_DATA’ has no member named ‘speaking’
act_comm.c: In function ‘do_traffic’:
act_comm.c:3186: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c: In function ‘do_wartalk’:
act_comm.c:3197: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c: In function ‘do_racetalk’:
act_comm.c:3208: error: ‘CHAR_DATA’ has no member named ‘act’
act_comm.c: In function ‘add_profane_word’:
act_comm.c:3247: warning: implicit declaration of function ‘strlen’
act_comm.c:3247: warning: incompatible implicit declaration of built-in function ‘strlen’
act_comm.c:3338: warning: incompatible implicit declaration of built-in function ‘strcat’
act_comm.c: In function ‘is_profane’:
act_comm.c:3347: warning: implicit declaration of function ‘re_exec’
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/jeremy/Desktop/dist/src'
make: *** [all] Error 2
--------------------------------------
And that's it. I untar the file using tar -xvf smaugfilehere.tgz then I changed to dist/src without issue. The issue lies in the make all command.
No matter what I uncomment it seems to spit the same error messages.
No, you shouldn't be changing the .c files. System includes should "just work". I'm very concerned that it's having trouble finding things like stdlib.h.
Did you install the development files in the "development" package category? You should have libc6 already installed, but make sure that libc6-dev is also installed.
I didn't even see a development package. Where I can download this at? I looked in the directory the tarball uncompressed and see no development in there, nor do I on smaug.org where I downloaded the tarball.
That's probably my issue, I didn't realize there was more to install than the smaug tarball.
The things I learn when switching OSes.
I really appreciate all the help thus far. I've imm'd on muds before and want to stab at my own, this is great fun and learning experience.
Oh, this has nothing to do with SMAUG... it's a Ubuntu package.
Launch up the package manager (go to a console and type synaptic) and look in the left-hand list of categories -- those are the package categories. You can also do a search for libc6 and you should see libc6-dev -- make sure it's installed.
If it's already installed, then the problem is something else.
I searched for libc6 and got a lot of returns. I noticed libc6-dev was NOT installed. So I selected it and everything else libc6 specific. Once installed I'll give it a go again and report.
lol, it's a lot of fun actually. Reminds me of my days 13 years ago learning win 3.1 and then 95 ;) haha trial and error. Though thus far I love linux, Bill Gates won't get more of my money that's for sure! haha.
The invalid lvalue error has come up several times in these forums, I think a quick search should find it. (It has to do with newer versions of gcc being stricter and not allowing you to do things that aren't quite right.)
As for the trigraph warning, that also might have come up, but you can safely ignore it.
You're using SMAUG, right, not SMAUGfuss? I'd think about giving SMAUGfuss a whirl; it has a whole lot of bug fixes in it and is actively maintained.
Thank you so much for the help. I did download SMAUGfuss as well. I'll give that a whirl if my search doesn't produce results.
Thank you again so much, you've taught me something new OS related which is what I was hoping this wouldn't turn into. But at least new Ubuntu users will now have an answer as well :D
Back again. I did the fuss install. Compile seemed to ok at first, and now a slight case of deja vu.
---------------------
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: expected specifier-qualifier-list before ‘z_stream’
comm.c: In function ‘write_to_descriptor’:
comm.c:1620: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1622: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1623: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1625: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1627: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1628: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1628: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
comm.c:1630: error: ‘struct mccp_data’ has no member named ‘out_compress’
cc1: warnings being treated as errors
comm.c:1632: warning: implicit declaration of function ‘deflate’
comm.c:1632: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1632: error: ‘Z_SYNC_FLUSH’ undeclared (first use in this function)
comm.c:1632: error: (Each undeclared identifier is reported only once
comm.c:1632: error: for each function it appears in.)
comm.c:1634: error: ‘Z_OK’ undeclared (first use in this function)
comm.c:1638: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1638: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
comm.c:1644: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
comm.c:1674: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
comm.c:1674: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
comm.c:1676: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1676: error: ‘struct mccp_data’ has no member named ‘out_compress_buf’
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2
This is actually very similar to the previous error; you are missing the development files for a library.
Go back into the package manager, and search for zlib. You will be looking for the zlib library's development files; the package happens to be called zlib1g-dev. (I'm not sure why they chose that particular name.) If the package zlib1g itself isn't installed either, you'll want to grab that.
By the way, I'm running Ubuntu myself, the Edgy Eft version. I've become fairly familiar with the system internals over the several months I've been running it, and in fact I ran into some of these issues myself (like the zlib one).
I'm curious though what clues you two found to know what libs I was missing... I know this isn't smaug related question but it's a newb linux question :P.
SMAUGfuss compiled with 0 errors now. I'm in business... not really, but figuratively.
/Desktop/SmaugFUSS/src$ ./startup &
[1] 4001
jeremy@fuckoff:~/Desktop/SmaugFUSS/src$ bash: ./startup: /bin/csh: bad interpreter: No such file or directory
I can't telnet localhost 4000 it says unable to connect to localhost connection refused.
In file included from comm.c:29:
mccp.h:18:18: error: zlib.h: No such file or directory
The fact that it couldn't find zlib.h means that you didn't have that package installed.
As for your new problem: go back into synaptic, and install the packages 'tcsh' and 'csh'. (They should be under the category "Shells", or you can always search for them.)
Actually csh isn't a library, it's a shell. A shell is a program that takes commands and does something -- the console you type into is running a shell, probably bash. (Personally, I run zsh, which is similar to bash.)
This lvalue bit has indeed been answered many times, and has nothing to do with zlib. If you go back in the post history, I said the following about the original poster's lvalue problem:
Quote: The invalid lvalue error has come up several times in these forums, I think a quick search should find it. (It has to do with newer versions of gcc being stricter and not allowing you to do things that aren't quite right.)