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 ➜ ROM ➜ Compiling the server ➜ He's Back.....

He's Back.....

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


Posted by Translucent Hate   USA  (48 posts)  Bio
Date Wed 14 Nov 2001 04:22 PM (UTC)
Message
Here's the makefile...

CC = gcc
PROF = -O -ggdb
NOCRYPT = -DNOCRYPT -DOLD_RAND
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
LIBS = -lcrypt

SRC_FILES := $(wildcard *.c)
O_FILES := $(patsubst %.c, %.o, $(SRC_FILES))

rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)

.c.o: merc.h
$(CC) -c $(C_FLAGS) $<

clean:
rm -f $(O_FILES) rom



Here's the error...

$ make
rm -f rom
gcc -O -ggdb -o rom NewMagic.o act_comm.o act_enter.o act_info.o act_move.o
act_newc.o act_obj.o act_wiz.o alias.o ban.o bank.o bit.o comm.o const
.o db.o db2.o effects.o fight.o flags.o handler.o healer.o hedit.o inte
rp.o lookup.o magic.o magic2.o mem.o mob_cmds.o mob_prog.o music.o note.
o olc.o olc_act.o olc_mpcode.o olc_save.o recycle.o remort.o save.o scan
.o skills.o special.o string.o tables.o update.o
act_info.o: In function `do_password':
/home/jmartin4/ghost/src/act_info.c:2925: undefined reference to `crypt'
/home/jmartin4/ghost/src/act_info.c:2940: undefined reference to `crypt'
act_newc.o: In function `do_rsetpword':
/home/jmartin4/ghost/src/act_newc.c:1193: undefined reference to `crypt'
comm.o: In function `nanny':
/home/jmartin4/ghost/src/comm.c:1816: undefined reference to `crypt'
/home/jmartin4/ghost/src/comm.c:1951: undefined reference to `crypt'
comm.o:/home/jmartin4/ghost/src/comm.c:1972: more undefined references to `crypt
' follow
collect2: ld returned 1 exit status
make: *** [rom] Error 1


i went back through your suggestions for the older version, but the crypt error obviously didnt solve it... any suggestion
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 14 Nov 2001 11:45 PM (UTC)
Message
Try forcing a recompile of all files, ie. type:


rm *.o
make

- Nick Gammon

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

Posted by Translucent Hate   USA  (48 posts)  Bio
Date Reply #2 on Thu 15 Nov 2001 01:29 AM (UTC)
Message
dammit... i should've known that with all the stuff i've done...
Top

Posted by Talsin   (1 post)  Bio
Date Reply #3 on Thu 21 Feb 2002 11:41 AM (UTC)
Message
I had the same problem. If you put -lcrypt at the end of O_FILES section you should fix the problem.

Enjoy!
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,811 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.