Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Error while compiling...

Error while compiling...

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


Posted by Zeno   USA  (2,871 posts)  Bio
Date Wed 01 Jan 2003 11:58 PM (UTC)
Message
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG db.c
db.c: In function `load_resets':
db.c:1594: warning: suggest explicit braces to avoid ambiguous `else'
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[1]: *** [db.o] Error 1
make[1]: Leaving directory `/home/zeno/dist/src'
make: *** [all] Error 2

How would I fix this?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Chris L   USA  (57 posts)  Bio
Date Reply #1 on Thu 02 Jan 2003 12:27 AM (UTC)
Message
submit a full bug report? ;) sorry no clue
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #2 on Thu 02 Jan 2003 07:53 AM (UTC)
Message
What operating system are you using? What version of gcc? Type:

gcc --version


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Thu 02 Jan 2003 08:23 PM (UTC)
Message
2.96

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 02 Jan 2003 11:12 PM (UTC)
Message
And the operating system?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Thu 02 Jan 2003 11:39 PM (UTC)

Amended on Thu 02 Jan 2003 11:44 PM (UTC) by Zeno

Message
Linux, I'm compiling on the shell. (Didn't see you ask the operating system, sorry)

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #6 on Fri 03 Jan 2003 08:29 PM (UTC)
Message
Very strange. gcc doesn't normally crash, although it is possible with badly-formed source. Try getting another db.c from the archive or something. It should compile OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #7 on Fri 03 Jan 2003 08:55 PM (UTC)
Message
ok, that was it... Now another error.

act_info.o: In function `do_password':
/home/zeno/dist/src/act_info.c:3474: undefined reference to `crypt'
act_wiz.o: In function `do_form_password':
/home/zeno/dist/src/act_wiz.c:5441: undefined reference to `crypt'
build.o: In function `do_mset':
/home/zeno/dist/src/build.c:1692: undefined reference to `crypt'
comm.o: In function `nanny':
/home/zeno/dist/src/comm.c:1663: undefined reference to `crypt'
/home/zeno/dist/src/comm.c:1750: undefined reference to `crypt'
comm.o:/home/zeno/dist/src/comm.c:1771: more undefined references to `crypt' follow
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/zeno/dist/src'
make: *** [all] Error 2

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #8 on Fri 03 Jan 2003 09:16 PM (UTC)
Message
Sounds like you got a bad distribution of SMAUG plain and simple.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #9 on Fri 03 Jan 2003 09:32 PM (UTC)

Amended on Fri 03 Jan 2003 10:35 PM (UTC) by Zeno

Message
ok, I got a new copy and got this error-

colorize.c: In function `load_colors':
colorize.c:39: warning: implicit declaration of function `strcpy'
rm -f smaug
gcc -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
collect2: ld terminated with signal 15 [Terminated], core dumped
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/zeno/dist/src'
make: *** [all] Error 2

Mainly-
collect2: ld terminated with signal 15 [Terminated], core dumped

ok, I know my Smaug is a good copy. But now I'm getting different errors. This is really odd. I'm getting my smaug from www.smaug.org.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #10 on Sun 05 Jan 2003 09:28 PM (UTC)
Message
The one you had with the 'crypt' errors - there is a setting in the makefile to stop that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #11 on Mon 06 Jan 2003 07:39 PM (UTC)
Message
Yeah. That fixed it. lol, sometimes I miss the simplest things.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
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.


24,671 views.

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

Go to topic:           Search the forum


[Go to top] top

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