[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  He's Back.....

He's Back.....

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


Posted by Translucent Hate   USA  (48 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (23,000 posts)  [Biography] 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
[Go to top] top

Posted by Translucent Hate   USA  (48 posts)  [Biography] 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...
[Go to top] top

Posted by Talsin   (1 post)  [Biography] 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!
[Go to top] 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.


12,312 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]