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 ➜ More crypt compile problem

More crypt compile problem

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


Posted by Kenmen   (5 posts)  Bio
Date Sun 08 Feb 2004 08:30 AM (UTC)
Message
I have read all the messages on the crypt.h file. and i am still having problems on compile, when i type make it returns this

make[1]: Entering directory `/home/chris/smaugfuss/src'
gcc -c -O -g2 -Wall -lcrypt -DI3 -DI3SMAUG build.c
build.c:24:19: crypt.h: No such file or directory
build.c: In function `do_mset':
build.c:1753: warning: implicit declaration of function `crypt'
build.c:1753: warning: assignment makes pointer from integer without a cast
make[1]: *** [build.o] Error 1
make[1]: Leaving directory `/home/chris/smaugfuss/src'
make: *** [all] Error 2


i have never done anything codeing wise, i dont even know how to uncomment :) but i will send my makefile if needed
thank you
Top

Posted by Kenmen   (5 posts)  Bio
Date Reply #1 on Sun 08 Feb 2004 08:59 AM (UTC)
Message
Ok i tryed what i saw in another post, with creating the crypt file and adding this
char *crypt(const char *key, char *salt)
{
return (char*)key;
}

now i get the error


make smaug
make[1]: Entering directory `/home/chris/smaugfuss/src'
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG i3.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_comm.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_info.c
act_info.c:25:19: crypt.h: No such file or directory
act_info.c: In function `do_password':
act_info.c:3490: warning: implicit declaration of function `crypt'
act_info.c:3490: warning: assignment makes pointer from integer without a cast
make[1]: *** [act_info.o] Error 1
make[1]: Leaving directory `/home/chris/smaugfuss/src'
make: *** [all] Error 2

Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #2 on Sun 08 Feb 2004 10:05 AM (UTC)

Amended on Sun 08 Feb 2004 10:10 AM (UTC) by Meerclar

Message
The easy answer to your original problem isn't making your own crypt file, it's editing the make file to not try to use the crypt library in the first place. There are posts here (I'm pretty sure) or comments in the make file that can walk you thru the process. I would also recommend reading some of the more in depth threads discussing the demands and frustrations of coding and trying to run a mud. I am strongly advising you to go get a basic c or c++ book and teach yourslef at least the very basics of the language and its structure. This will make you life so very much easier in the long run and your efforts to run a mud so much less frustrating.

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

Posted by Kenmen   (5 posts)  Bio
Date Reply #3 on Sun 08 Feb 2004 05:25 PM (UTC)
Message
I uncommented the line by taking out the # but i still get the do_password error
Top

Posted by Kenmen   (5 posts)  Bio
Date Reply #4 on Sun 08 Feb 2004 07:16 PM (UTC)
Message
lol i am sooooo dumb, i downloaded the crypt files for cygwin and now it compiles fine except for this

gcc -c -O -g2 -Wall -DI3 -DI3SMAUG imm_host.c
rm -f smaug
gcc -o smaug i3.o act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o
build.o clans.o color.o comm.o comments.o const.o crypt.o db.o deity.o fight.o h
andler.o hashstr.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 reset.o save.o shops.o skills.o speci
al.o tables.o track.o update.o grub.o ban.o services.o planes.o imm_host.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot
find -luser32
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/chris/smaugfuss/src'
make: *** [all] Error 2
$
$


and i also had a build.c error and a core dump whatever that is :)


Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 09 Feb 2004 08:05 PM (UTC)
Message
It cannot find the library libuser32.a - I have it in my /usr/lib/w32api directory.

As for the core dump that means the compiler crashed, for some reason.

- 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.


17,088 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.