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
➜ Crypt errors
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Atrox
USA (18 posts) Bio
|
Date
| Wed 14 Jan 2004 08:48 PM (UTC) |
Message
| I'm trying to compile a smaug base in CygWin and I'm having some trouble fixing a few errors:
Crypt Error:
o/act_info.o(.text+0xb44e): In function `do_password':
/cygdrive/c/atrox/appz/cygwin/home/dbz/src/act_info.c:3564: undefined reference
to `_crypt'
Bigregex Error:
o/act_comm.o(.text+0x7122): In function `add_profane_word':
/cygdrive/c/atrox/appz/cygwin/home/dbz/src/act_comm.c:3300: undefined reference
to `_bigregex'
If anyone has any clue how to fix these, I'd be very happy. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Wed 14 Jan 2004 10:46 PM (UTC) |
Message
| You probably don't have the crypt libraries... I don't think they exist on Windows.
What you need to do is define NOCRYPT or something like that - look in the makefile, it should tell you to uncomment a line if you have trouble with crypt. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #2 on Thu 15 Jan 2004 05:32 AM (UTC) |
Message
| Or, you do this:
#if defined(__CYGWIN__)
#include <crypt.h>
#endif
That goes at the top of whichever file complains, and will stop crypt problems. Assuming the problem is Cygwin related. Far better solution than leaving it without encryption since the pfiles would end up incompatible should the mud move to a Linux host where the encryption is working.
As for the regex, it's part of the profanity filter and you'd be better of ditching it since it's generally worthless. | Top |
|
Posted by
| Atrox
USA (18 posts) Bio
|
Date
| Reply #3 on Sun 25 Jan 2004 05:34 PM (UTC) |
Message
| Yea, I've had the crypt package and I've got crypt.h defined and I have "NOCRYPT = " in my Makefile, but I'm still getting the errors. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sun 25 Jan 2004 10:08 PM (UTC) |
Message
| Should work. You are including crypt.h in act_info.c before do_password? You said you had it "defined". That isn't quite the same as including it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
14,026 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top