SWR version 2 something

Posted by Solari on Tue 30 May 2006 05:02 AM — 15 posts, 36,398 views.

#0
Okay so i try using the makefile with Cygwin for SWR, and i get this error....:

make -s swr
Compiling o/act_info.o....
act_info.c: In function `void do_password(CHAR_DATA*, char*)':
act_info.c:2551: error: `crypt' undeclared (first use this function)
act_info.c:2551: error: (Each undeclared identifier is reported only once for ea
ch function it appears in.)
make[1]: *** [o/act_info.o] Error 1
USA #1
Did you make sure to enable the flags in the Makefile about crypt?
#2
yeah....ummm...i have 3 words to say that maybe you can help me out with this, I'm a Noob
USA #3
Look in the Makefile for something that mentions crypt. It should say to uncomment the line below. Do so, by removing the # at the start of the line.
#4
alright, i'll try that.
#5
Okay...Problem, the line was already err Uncommented.
USA #6
Can you show us that line?

Also make sure any lines about Cygwin are uncommented.

Have you considered using SWRFUSS?
#7
okay uncommented Cygwin lines already heres the Cygwin and Crypt lines:
#Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN

#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt
USA #8
Did you make sure to do a make clean? If so, it looks like the Makefile/source isn't working as intended.
#9
yeah i did the make clean, it gets a tad bit further but then busts out the same error as in the beggining.
#10
wait now it's saying something about act_info.c
#11
where can i find SWRFUSS?
USA #12
You can get SWRFUSS at http://www.smaugfuss.org/

And as for the errors, (I can't remember if Cygwin has it offhand) but maybe you're missing the crypt package in Cygwin.

[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/
Amended on Tue 11 Mar 2008 03:30 AM by Nick Gammon
#13
yeah...got swrfuss, more errors:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make[1]: *** [swreality] Error 1
make: *** [all] Error 2
USA #14
There should be something in the Makefile you need to uncomment. Do a search on the forums too, you can find answers.