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 smaug in Cygwin

Error while compiling smaug in Cygwin

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


Posted by Raeyu   (3 posts)  Bio
Date Mon 31 Mar 2003 02:12 PM (UTC)
Message
When I try to 'make' smaug in Cygwin, I keep getting the following:

Adam1@Adam ~/dist/src
$ make
make smaug
make[1]: Entering directory `/home/Adam1/dist/src'
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_com
m.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o s
pecial.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o i
mm_host.o colorize.o
act_comm.o(.text+0x88df): In function `is_profane':
/home/Adam1/dist/src/act_comm.c:3347: undefined reference to `_re_exec'
act_info.o(.text+0xb364): In function `do_password':
/home/Adam1/dist/src/act_info.c:3474: undefined reference to `_crypt'
act_wiz.o(.text+0x12416): In function `do_form_password':
/home/Adam1/dist/src/act_wiz.c:5441: undefined reference to `_crypt'
build.o(.text+0x67c7): In function `do_mset':
/home/Adam1/dist/src/build.c:1692: undefined reference to `_crypt'
comm.o(.text+0x3d38): In function `nanny':
/home/Adam1/dist/src/comm.c:1663: undefined reference to `_crypt'
comm.o(.text+0x4069):/home/Adam1/dist/src/comm.c:1750: undefined reference to `_
crypt'
comm.o(.text+0x4162):/home/Adam1/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/Adam1/dist/src'
make: *** [all] Error 2

Adam1@Adam ~/dist/src
$

How do I make it actually work and to stop getting those errors?
Top

Posted by Zhamel   USA  (67 posts)  Bio
Date Reply #1 on Mon 31 Mar 2003 09:47 PM (UTC)
Message
What I would suggest you do is to get this copy of SMAUG, which has all the bug fixes that have been reported to the SMAUG mailing list and from the SMAUG team. You can get it at www.mudplanet.org/files/smaug14aSam.tgz

I'd also suggest getting the crypt libraries for Cygwin. They will be needed to compile it. I don't know how old your copy is, so you should get the latest setup.exe from Cygwin.com.

If you still have problems post again and I'll see what I can do.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Wed 02 Apr 2003 07:06 AM (UTC)
Message
Search this forum for "crypt" and "re_exec" - I am certain that this has been covered in some depth before.

- Nick Gammon

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

Posted by Zhamel   USA  (67 posts)  Bio
Date Reply #3 on Wed 02 Apr 2003 08:41 PM (UTC)
Message
In the Makefile there is two lines that will help you. Uncomment the NEED_CRYPT and that should solve your problem.

[code]
#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex

#Uncomment the line below if you are getting undefined crypt errors
#NEED_CRYPT = -lcrypt
[/code]
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.


15,025 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.