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
➜ Trouble Compiling
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Ombrenuit
(6 posts) Bio
|
| Date
| Wed 07 Apr 2004 07:12 PM (UTC) |
| Message
| First off, I'd like to apologize to anyone who may find it quite irritating that they've seen the same topics over and over. However, I've spent the last 3 hours looking for a solution, and I don't have any progress to show for it. I would like to eventually find a unix host for this smaug, however, I don't have one yet. So, as a preparation I thought it would be nice to try out the codebase, and start editing it that way if I start paying for a host I can immediately let player join instead of going through a building stage. My machine is running windows XP, and I'm running cygwin as well. I have both smaug 1.4, and smaugFUSS just in case. Now, I can't get either of them to compile, even though I edited the makefiles, etc. With 1.4 I'm getting (Is there a way to copy and paste this?):
gcc -c -O -g3 -Wall -Wuninitialized -DREQUESTS -DSMAUG db.c
db.c:675:8: macro names must be identifiers
db.c: In function 'load_resets':
db.c:1579: warning: suggest explicit braces to avoid ambiguous 'else'
make[1]: *** [db.o] Error 1
make[1]: Leaving Directory ''(I don't feel like typing this one out)
make: *** [all] error 2
on FUSS I'm getting "can't find crypt.h" problems even though I edited the makefile. Any help would be greatly appreciated! Once again, I apologize for my incompetence for being unable to help myself with this issue. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 07 Apr 2004 11:02 PM (UTC) |
| Message
| To copy the error message go to the System menu (top LH corner) and click on it. Then select Edit -> Mark, drag the mouse over the message which will highlight it, and then hit Enter. That puts it on the Clipboard.
Which SMAUG 1.4 download did you use exactly?
Are you saying you compiled it under Cygwin and got these errors? Or under Unix?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Ombrenuit
(6 posts) Bio
|
| Date
| Reply #2 on Thu 08 Apr 2004 02:01 AM (UTC) |
| Message
| I am running cygwin. I believe it was just the version I was trying to use that was giving me the problem. So, I got a different version that gave me virtually no problems, except one that probably involves cygwin.
$ make
make smaug
make[1]: Entering directory `/home/Owner/smaug/src'
rm -f smaug
gcc -lcrypt -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o b
oards.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 sk
ills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o pl
anes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot fi
nd -lcrypt
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/Owner/smaug/src'
make: *** [all] Error 2
Is there something I need to download for cygwin to get this -lcrypt? | | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #3 on Thu 08 Apr 2004 04:40 AM (UTC) |
| Message
| | Yes, you need to download the crypt package with cygwin for it to work. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | Top |
|
| Posted by
| Ombrenuit
(6 posts) Bio
|
| Date
| Reply #4 on Thu 08 Apr 2004 02:49 PM (UTC) |
| Message
| | I started getting undefined reference to crypt again even though I downloaded the crypt library. However, the good news is I tried out smaugfuss and it compiled perfectly, much to my delight. Thank you for the help! | | 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.
16,789 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top