Errors Gallor

Posted by Gothalyptic on Sun 04 Feb 2007 01:09 AM — 26 posts, 77,967 views.

#0
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)
#1

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.
USA #2
Looks like you're missing a lot of lib files. See if you can find where they are located. Make sure you toggled the right Makefile flags.
#3
Complete linux newb here. Which lib files? my computers or the smaug libs?
USA #4
From linux. Do a locate on those missing files, like locate ctype.h
#5
Found em. I assume I need to edit the .c files now with the correct links?
USA #6
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.
#7
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.
USA #8
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.

Isn't learning how to manage a new OS fun...? :-)
#9
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.

I'll report, thanks again guys.
#10
Good news!

The error messages aren't as long haha.

Now I receive the following (full text, not a summary)

------------

make smaug
make[1]: Entering directory `/home/jeremy/Desktop/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG -DREGEX act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function ‘generate_exit’:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/home/jeremy/Desktop/dist/src'
make: *** [all] Error 2

---------------------------

I did get a re_exec error and uncomment the line, that error went away as you can see above.

Just in case you want it, this was the previous error before uncommenting the line for re_exec.

--------------------------

make smaug
make[1]: Entering directory `/home/jeremy/Desktop/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function ‘is_profane’:
act_comm.c:3347: warning: implicit declaration of function ‘re_exec’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function ‘generate_exit’:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/home/jeremy/Desktop/dist/src'
make: *** [all] Error 2
USA #11
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.
#12
David,

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

Thanks again
#13
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

--------------------------------

Yep, lost again haha
USA #14
You're missing the zlib lib.
USA #15
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).
#16
Ok, installed zlib stuff via synaptics.

So far so good, more compiled than previously.

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.


You two rock major mud butt (and linux).

Thanks so much.
#17
Ok maybe I'm not in business.

I do ./startup & and this is what it returns.

/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.
#18
ah Ha! I th ink I got it... another lib wasn't installed haha.

I'm good for real this time, I was able to telnet in.

Thanks again guys!
USA #19
Well, this line tipped us off:
Quote:
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.)
USA #20
Ah, I see that you figured it out -- great. :-)

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.)
#21
Im haveing the exact same error, and have been trying to compile any codebase i can get my hands on, but every single one of them seem to error out.

gcc -c -O -g3 -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function ‘generate_exit’:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/home/edgar/Desktop/smaug/src'
make: *** [all] Error 2

is my make error from smaug.

forgot to mention:

Running Ubuntu fiesty fawn. (for now) the main machine ill prob be running it on will be opensuse or mepis 7 when its released.
Amended on Sat 06 Oct 2007 03:56 AM by Indrid
USA #22
Search for "invalid lvalue in assignment", I'm pretty sure this has been answered.
#23
I checked synaptic PM to check and it claims the zlib is installed.
USA #24
I don't understand. I don't think that error has anything to do with zlib.
USA #25
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.)