[root@localhost src]# make
gcc -c -O -Wall -g act_comm.c
gcc -c -O -Wall -g act_info.c
gcc -c -O -Wall -g act_move.c
gcc -c -O -Wall -g act_obj.c
gcc -c -O -Wall -g act_wiz.c
gcc -c -O -Wall -g comm.c
comm.c: In function new_descriptor:
comm.c:869: warning: pointer targets in passing argument 3 of getsockname differ in signedness
comm.c:870: warning: pointer targets in passing argument 3 of accept differ in signedness
comm.c:913: warning: pointer targets in passing argument 3 of getpeername differ in signedness
gcc -c -O -Wall -g const.c
gcc -c -O -Wall -g db.c
gcc -c -O -Wall -g fight.c
gcc -c -O -Wall -g handler.c
gcc -c -O -Wall -g interp.c
interp.c:436:50: warning: trigraph ??' ignored, use -trigraphs to enable
interp.c:437:50: warning: trigraph ??' ignored, use -trigraphs to enable
interp.c:438:55: warning: trigraph ??' ignored, use -trigraphs to enable
interp.c:439:56: warning: trigraph ??' ignored, use -trigraphs to enable
interp.c:440:56: warning: trigraph ??' ignored, use -trigraphs to enable
gcc -c -O -Wall -g magic.c
gcc -c -O -Wall -g save.c
gcc -c -O -Wall -g special.c
gcc -c -O -Wall -g update.c
rm -f envy
gcc -O -o envy act_comm.o act_info.o act_move.o act_obj.o act_wiz.o comm.o const.o db.o fight.o handler.o interp.o magic.o save.o special.o update.o
act_info.o(.text+0x3dc0): In function `do_password':
/usr/local/envy/src/act_info.c:1996: undefined reference to `crypt'
act_info.o(.text+0x3e44):/usr/local/envy/src/act_info.c:2013: undefined reference to `crypt'
comm.o(.text+0x17a7): In function `nanny':
/usr/local/envy/src/comm.c:1624: undefined reference to `crypt'
comm.o(.text+0x19aa):/usr/local/envy/src/comm.c:1683: undefined reference to `crypt'
comm.o(.text+0x1a56):/usr/local/envy/src/comm.c:1706: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [envy] Error 1
$(CC) $(L_FLAGS) -o envy $(O_FILES)
$(CC) $(L_FLAGS) -o envy $(O_FILES) -lcrypt
If you have problems with crypt, add to the NOCRYPT line in your Makefile
-DNOCRYPT.
With my limited C-skills I'm able to get rid of the warnings, but that isn't the problem. How do I get rid off the errors and have a build as result?
Thanks in advance,
Jack…