[CF-Devel] troubles compiling 1.0 (warning long!)

Sean Michael Whipkey highway at cstone.net
Thu May 24 14:11:34 CDT 2001


I downloaded the 1.0 source code today from sourceforge so that I could
upgrade my .98.0 server.

I'm finding, though, that it will not compile the crossedit or crossfire
binaries.

I'm running a Red Hat 7.1 machine on a 1.3 GHz Pentium with 512 MB of
RAM and a 40 GB hard drive.  Therefore, space or performance is not an
issue.

The first file shows running configure.  I'm not using any command line
flags; I want it to run in /usr/games/crossfire.  All of this is exactly
the same as when I installed .98.0.

The second file shows the results of the make depend.  You can see some
errors start to show up in there.

I then edit the include/config.h file.  The only changes I make are:
* enable polymorph by commenting out the "define NO_POLYMORPH".
* enable permanent experience
* enable it so that player saves are in a bed


The next file shows the make.  When running (I ran it as make >>
crossfire.make to save the results) I got these errors:
metaserver.c: In function `metaserver_update':
metaserver.c:136: warning: passing arg 5 of `sendto' from incompatible
pointer type
spell_util.c: In function `cast_spell':
spell_util.c:575: invalid lvalue in assignment
make[1]: *** [spell_util.o] Error 1

Finally, I do the make install and get similar errors:
spell_util.c: In function `cast_spell':
spell_util.c:575: invalid lvalue in assignment
make[1]: *** [spell_util.o] Error 1

When I do an "ls" I don't see crossfire at all in there...this is an ls
of /usr/games/crossfire/bin/ in the final file.

Once again, sorry about the length of this mail.  I'd appreciate some
help, as I'm doing this exactly the same as last time (according to my
.bash_history) and it's not working, and that means we're out a server
until fixed. :)

Thanks, 

seanMike
-------------- next part --------------
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for flex... (cached) lex
checking for yywrap in -ll... (cached) no
checking for mawk... (cached) mawk
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for mkdir... (cached) /bin/mkdir
checking for tar... (cached) /bin/tar
checking for makedepend... no
checking for cp... (cached) /bin/cp
checking for basename... (cached) /bin/basename
checking for sed... (cached) /bin/sed
checking for rm... (cached) /bin/rm
checking for ar... (cached) /usr/bin/ar
checking for latex... no
checking for gzip... (cached) /usr/bin/gzip
checking for gunzip... (cached) /usr/bin/gunzip
checking for perl... (cached) /usr/bin/perl
checking for compress... (cached) /usr/bin/compress
checking for uncompress... (cached) /usr/bin/uncompress
checking for bzip2... (cached) /usr/bin/bzip2
checking for bunzip2... (cached) /usr/bin/bunzip2
checking for sh... (cached) /bin/sh
checking for main in -lnsl... (cached) yes
checking for main in -lsocket... (cached) no
checking for X... (cached) no
checking for main in -lX11... (cached) no
checking for main in -lICE... (cached) no
checking for main in -lSM... (cached) no
checking for main in -lXext... (cached) no
checking for main in -lXt... (cached) no
checking for main in -lXmu... (cached) no
checking for main in -lXaw... (cached) no
checking for main in -lXpm... (cached) no
checking for main in -lm... (cached) yes
checking for main in -lpng... (cached) no
checking for main in -lcrypt... (cached) yes
checking for des_crypt in -ldes... (cached) no
checking for main in -ldmalloc... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for limits.h... (cached) yes
checking for malloc.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/ttycom.h... (cached) no
checking for sys/termios.h... (cached) yes
checking for crypt.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for des.h... (cached) no
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for uid_t in sys/types.h... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking whether setpgrp takes no argument... (cached) yes
checking return type of signal handlers... (cached) void
checking for strftime... (cached) yes
checking for vprintf... (cached) yes
checking for gettimeofday... (cached) yes
checking for mkdir... (cached) yes
checking for mktime... (cached) yes
checking for rmdir... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strcspn... (cached) yes
checking for strerror... (cached) yes
checking for strspn... (cached) yes
checking for strstr... (cached) yes
checking for strtol... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for snprintf... (cached) yes
checking for setsid... (cached) yes
checking for srandom... (cached) yes
checking for getdtablesize... (cached) yes
checking for srand48... (cached) yes
checking for srand... (cached) yes
checking for sysconf... (cached) yes
checking for scandir... (cached) yes
checking how many args gettimeofday uses... (cached) two arguments

If you are upgrading an 0.95.3 or earlier release, you may want to use
--enable-old-layout to use the same install directories

creating ./config.status
creating Makefile
creating crossedit/Makefile
creating crossedit/doc/Makefile
creating crossedit/include/Makefile
creating crossedit/Cnv/Makefile
creating crossedit/bitmaps/Makefile
creating doc/Makefile
creating doc/spell-docs/Makefile
creating doc/spoiler/Makefile
creating doc/spoiler-html/Makefile
creating doc/playbook/Makefile
creating doc/playbook-html/Makefile
creating lib/Makefile
creating random_maps/Makefile
creating socket/Makefile
creating server/Makefile
creating include/Makefile
creating utils/Makefile
creating lib/xpmtopix.pl
creating lib/checkarch.pl
creating lib/collect.pl
creating utils/add_throw.perl
creating utils/crossloop
creating utils/crossloop.pl
creating utils/metaserver.pl
creating common/Makefile
creating include/autoconf.h
include/autoconf.h is unchanged
-------------- next part --------------
making depend in common...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/common'
g -O2   -I../include -I./../include -- anim.c arch.c button.c exp.c friend.c glue.c holy.c info.c image.c init.c item.c links.c living.c loader.c logger.c los.c ltostr.c map.c object.c porting.c player.c re-cmp.c readable.c recipe.c shstr.c sqrt.c time.c treasure.c
make[1]: g: Command not found
make[1]: [depend] Error 127 (ignored)
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/common'
making depend in random_maps...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/random_maps'
g -O2   -I../include -I. -I../include -- random_map.c room_gen_onion.c room_gen_spiral.c maze_gen.c reader.c floor.c wall.c monster.c door.c decor.c exit.c treasure.c special.c style.c rogue_layout.c snake.c square_spiral.c expand2x.c
make[1]: g: Command not found
make[1]: [depend] Error 127 (ignored)
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/random_maps'
making depend in socket...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/socket'
g -O2   -I../include -I./../include -- info.c init.c item.c loop.c lowlevel.c metaserver.c request.c sounds.c
make[1]: g: Command not found
make[1]: [depend] Error 127 (ignored)
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/socket'
making depend in server...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/server'
g -O2   -I../include -I./../include -I../include -- alchemy.c apply.c attack.c ban.c c_chat.c c_misc.c c_move.c c_new.c c_object.c c_party.c c_range.c c_wiz.c commands.c daemon.c disease.c egoitem.c encounter.c hiscore.c gods.c init.c login.c main.c monster.c move.c pets.c player.c resurrection.c rune.c shop.c skills.c skill_util.c spell_effect.c spell_util.c swamp.c swap.c time.c
make[1]: g: Command not found
make[1]: [depend] Error 127 (ignored)
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/server'
making depend in include...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/include'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/include'
making depend in lib...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/lib'
makedepend  --   -I../include -- 
make[1]: makedepend: Command not found
make[1]: *** [depend] Error 127
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/lib'
making depend in utils...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/utils'
make[1]: `depend' is up to date.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/utils'
making depend in doc...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/doc'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/doc'

-------------- next part --------------
making all in common...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/common'
gcc -g -O2   -I../include -I./../include  -c anim.c
gcc -g -O2   -I../include -I./../include  -c arch.c
gcc -g -O2   -I../include -I./../include  -c button.c
gcc -g -O2   -I../include -I./../include  -c exp.c
gcc -g -O2   -I../include -I./../include  -c friend.c
gcc -g -O2   -I../include -I./../include  -c glue.c
gcc -g -O2   -I../include -I./../include  -c holy.c
gcc -g -O2   -I../include -I./../include  -c info.c
gcc -g -O2   -I../include -I./../include  -c image.c
gcc -g -O2   -I../include -I./../include  -c init.c
gcc -g -O2   -I../include -I./../include  -c item.c
gcc -g -O2   -I../include -I./../include  -c links.c
gcc -g -O2   -I../include -I./../include  -c living.c
gcc -g -O2   -I../include -I./../include  -c loader.c
gcc -g -O2   -I../include -I./../include  -c logger.c
gcc -g -O2   -I../include -I./../include  -c los.c
gcc -g -O2   -I../include -I./../include  -c ltostr.c
gcc -g -O2   -I../include -I./../include  -c map.c
gcc -g -O2   -I../include -I./../include  -c object.c
gcc -g -O2   -I../include -I./../include  -c porting.c
gcc -g -O2   -I../include -I./../include  -c player.c
gcc -g -O2   -I../include -I./../include  -c re-cmp.c
gcc -g -O2   -I../include -I./../include  -c readable.c
gcc -g -O2   -I../include -I./../include  -c recipe.c
gcc -g -O2   -I../include -I./../include  -c shstr.c
gcc -g -O2   -I../include -I./../include  -c sqrt.c
gcc -g -O2   -I../include -I./../include  -c time.c
gcc -g -O2   -I../include -I./../include  -c treasure.c
/bin/rm -f libcross.a
/usr/bin/ar cq libcross.a anim.o arch.o button.o exp.o friend.o glue.o holy.o info.o image.o init.o item.o links.o living.o loader.o logger.o los.o ltostr.o map.o object.o porting.o player.o re-cmp.o readable.o recipe.o shstr.o sqrt.o time.o treasure.o
ranlib libcross.a
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/common'
making all in random_maps...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/random_maps'
gcc -g -O2   -I../include -I. -c random_map.c
gcc -g -O2   -I../include -I. -c room_gen_onion.c
gcc -g -O2   -I../include -I. -c room_gen_spiral.c
gcc -g -O2   -I../include -I. -c maze_gen.c
gcc -g -O2   -I../include -I. -c reader.c
gcc -g -O2   -I../include -I. -c floor.c
gcc -g -O2   -I../include -I. -c wall.c
gcc -g -O2   -I../include -I. -c monster.c
gcc -g -O2   -I../include -I. -c door.c
gcc -g -O2   -I../include -I. -c decor.c
gcc -g -O2   -I../include -I. -c exit.c
gcc -g -O2   -I../include -I. -c treasure.c
gcc -g -O2   -I../include -I. -c special.c
gcc -g -O2   -I../include -I. -c style.c
gcc -g -O2   -I../include -I. -c rogue_layout.c
gcc -g -O2   -I../include -I. -c snake.c
gcc -g -O2   -I../include -I. -c square_spiral.c
gcc -g -O2   -I../include -I. -c expand2x.c
/bin/rm -f random_map
gcc -g -O2   -I../include -I. -c standalone.c
gcc -o random_map random_map.o room_gen_onion.o room_gen_spiral.o maze_gen.o reader.o floor.o wall.o monster.o door.o decor.o exit.o treasure.o special.o style.o rogue_layout.o snake.o square_spiral.o expand2x.o standalone.o  -lcrypt -lm -lnsl   -L../common -lcross 
/bin/rm -f random_map.a
/usr/bin/ar clq random_map.a random_map.o room_gen_onion.o room_gen_spiral.o maze_gen.o reader.o floor.o wall.o monster.o door.o decor.o exit.o treasure.o special.o style.o rogue_layout.o snake.o square_spiral.o expand2x.o
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/random_maps'
making all in socket...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/socket'
gcc -g -O2   -I../include -I./../include  -c info.c
gcc -g -O2   -I../include -I./../include  -c init.c
gcc -g -O2   -I../include -I./../include  -c item.c
gcc -g -O2   -I../include -I./../include  -c loop.c
gcc -g -O2   -I../include -I./../include  -c lowlevel.c
gcc -g -O2   -I../include -I./../include  -c metaserver.c
gcc -g -O2   -I../include -I./../include  -c request.c
gcc -g -O2   -I../include -I./../include  -c sounds.c
/bin/rm -f socket.a
/usr/bin/ar cq socket.a info.o init.o item.o loop.o lowlevel.o metaserver.o request.o sounds.o
ranlib socket.a
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/socket'
making all in server...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/server'
gcc -g -O2   -I../include -I./../include -c alchemy.c
gcc -g -O2   -I../include -I./../include -c apply.c
gcc -g -O2   -I../include -I./../include -c attack.c
gcc -g -O2   -I../include -I./../include -c ban.c
gcc -g -O2   -I../include -I./../include -c c_chat.c
gcc -g -O2   -I../include -I./../include -c c_misc.c
gcc -g -O2   -I../include -I./../include -c c_move.c
gcc -g -O2   -I../include -I./../include -c c_new.c
gcc -g -O2   -I../include -I./../include -c c_object.c
gcc -g -O2   -I../include -I./../include -c c_party.c
gcc -g -O2   -I../include -I./../include -c c_range.c
gcc -g -O2   -I../include -I./../include -c c_wiz.c
gcc -g -O2   -I../include -I./../include -c commands.c
gcc -g -O2   -I../include -I./../include -c daemon.c
gcc -g -O2   -I../include -I./../include -c disease.c
gcc -g -O2   -I../include -I./../include -c egoitem.c
gcc -g -O2   -I../include -I./../include -c encounter.c
gcc -g -O2   -I../include -I./../include -c hiscore.c
gcc -g -O2   -I../include -I./../include -c gods.c
gcc -g -O2   -I../include -I./../include -c init.c
gcc -g -O2   -I../include -I./../include -c login.c
gcc -g -O2   -I../include -I./../include -c main.c
gcc -g -O2   -I../include -I./../include -c monster.c
gcc -g -O2   -I../include -I./../include -c move.c
gcc -g -O2   -I../include -I./../include -c pets.c
gcc -g -O2   -I../include -I./../include -c player.c
gcc -g -O2   -I../include -I./../include -c resurrection.c
gcc -g -O2   -I../include -I./../include -c rune.c
gcc -g -O2   -I../include -I./../include -c shop.c
gcc -g -O2   -I../include -I./../include -c skills.c
gcc -g -O2   -I../include -I./../include -c skill_util.c
gcc -g -O2   -I../include -I./../include -c spell_effect.c
gcc -g -O2   -I../include -I./../include -c spell_util.c
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/server'
making all in include...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/include'
making all in lib...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/lib'
making all in utils...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/utils'
making all in doc...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/doc'
-------------- next part --------------
making install in common...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/common'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/common'
making install in random_maps...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/random_maps'
/usr/bin/install -c random_map /usr/games/crossfire/bin/random_map
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/random_maps'
making install in socket...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/socket'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/socket'
making install in server...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/server'
gcc -g -O2   -I../include -I./../include -c spell_util.c
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/server'
making install in include...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/include'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/include'
making install in lib...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/lib'
if [ ! -d /usr/games/crossfire/share/crossfire/help ]; then \
	echo "Creating directory /usr/games/crossfire/share/crossfire/help"; \
	/bin/mkdir -p /usr/games/crossfire/share/crossfire/help; \
fi;
Installing ./help/apply
Installing ./help/bind
Installing ./help/cast
Installing ./help/golem
Installing ./help/invoke
Installing ./help/keys
Installing ./help/mark
Installing ./help/melee
Installing ./help/mouse
Installing ./help/move
Installing ./help/name
Installing ./help/output
Installing ./help/output-count
Installing ./help/output-sync
Installing ./help/party
Installing ./help/pickup
Installing ./help/quit
Installing ./help/range
Installing ./help/save
Installing ./help/sort_inventory
Installing ./help/spells
Installing ./help/statistics
Installing ./help/take
Installing ./help/traps
Installing ./help/unbind
Installing ./help/usekeys
Installing ./artifacts
Installing ./ban_file
Installing ./def_help
Installing ./dm_file
Installing ./forbid
Installing ./formulae
Installing ./messages
Installing ./motd
Installing ./races
Installing ./skill_params
Installing ./spell_params
Installing ./treasures
Installing ./animations
Installing ./archetypes
Installing ./bmaps
Installing ./bmaps.paths
Installing ./crossfire.xpm
Installing ./faces
Installing ./crossfire.xbm
Installing ./crossfire.png
Installing ./xpmtopix.pl
Installing ./collect.pl
Installing ./util.pl
touch /usr/games/crossfire/var/crossfire/highscore
touch /usr/games/crossfire/var/crossfire/bookarch
touch /usr/games/crossfire/var/crossfire/temp.maps
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/lib'
making install in utils...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/utils'
rm -f /usr/games/crossfire/bin/flushlocks
sed s%xxxx%%g <flushlocks > /usr/games/crossfire/bin/flushlocks
chmod 755 /usr/games/crossfire/bin/flushlocks
rm -f /usr/games/crossfire/bin/crossloop.pl
sed s%BINDIR%/usr/games/crossfire/bin%g <crossloop.pl >/usr/games/crossfire/bin/crossloop.pl
chmod 755 /usr/games/crossfire/bin/crossloop.pl
rm -f /crossloop
sed s%BINDIR%/usr/games/crossfire/bin%g <crossloop >/usr/games/crossfire/bin/crossloop
chmod 755 /usr/games/crossfire/bin/crossloop
/usr/bin/install -c  mktable.script /usr/games/crossfire/bin/mktable
/usr/bin/install -c  add_throw.perl /usr/games/crossfire/bin/add_throw
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/utils'
making install in doc...
make[1]: Entering directory `/home/smw4s/crossfire-1.0.0/doc'
/usr/bin/install -c ./crossedit.man /usr/games/crossfire/man/man6/crossedit.6
/usr/bin/install -c ./crossfire.man /usr/games/crossfire/man/man6/crossfire.6
make[1]: Leaving directory `/home/smw4s/crossfire-1.0.0/doc'
-------------- next part --------------
total 752
-rwxr-xr-x    1 root     root          683 May 24 15:07 add_throw
-rwxr-xr-x    1 root     root         8684 May 24 15:07 collect.pl
-rwxr-xr-x    1 root     root          567 May 24 15:07 crossloop
-rwxr-xr-x    1 root     root         1468 May 24 15:07 crossloop.pl
-rwxr-xr-x    1 root     root          419 May 24 15:07 flushlocks
-rwxr-xr-x    1 root     root         2025 May 24 15:07 mktable
-rwxr-xr-x    1 root     root         1519 May 24 15:07 util.pl
-rwxr-xr-x    1 root     root         4110 May 24 15:07 xpmtopix.pl
-rwxr-xr-x    1 root     root       718222 May 24 15:07 random_map
    
    


More information about the crossfire mailing list