[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Errors Gallor

Errors Gallor

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Sun 04 Feb 2007 01:09 AM (UTC)
Message
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)
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #1 on Sun 04 Feb 2007 01:13 AM (UTC)
Message

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.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #2 on Sun 04 Feb 2007 01:21 AM (UTC)
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #3 on Sun 04 Feb 2007 01:24 AM (UTC)
Message
Complete linux newb here. Which lib files? my computers or the smaug libs?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #4 on Sun 04 Feb 2007 01:27 AM (UTC)
Message
From linux. Do a locate on those missing files, like locate ctype.h

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #5 on Sun 04 Feb 2007 01:30 AM (UTC)
Message
Found em. I assume I need to edit the .c files now with the correct links?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #6 on Sun 04 Feb 2007 01:51 AM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #7 on Sun 04 Feb 2007 02:06 AM (UTC)
Message
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.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #8 on Sun 04 Feb 2007 02:14 AM (UTC)
Message
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...? :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #9 on Sun 04 Feb 2007 02:21 AM (UTC)
Message
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.
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #10 on Sun 04 Feb 2007 02:28 AM (UTC)
Message
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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #11 on Sun 04 Feb 2007 02:33 AM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #12 on Sun 04 Feb 2007 02:38 AM (UTC)
Message
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
[Go to top] top

Posted by Gothalyptic   (18 posts)  [Biography] bio
Date Reply #13 on Sun 04 Feb 2007 02:42 AM (UTC)
Message
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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #14 on Sun 04 Feb 2007 02:45 AM (UTC)
Message
You're missing the zlib lib.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


47,244 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]