Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems compiling crossfire-client-0.95.4



Hello, I was installing Crossfire server&client on my Linux box
(RedHat6.0) and I experienced some problems. I did manage to get around
the problems and successfully compile the client. I gathered all the
information I could, should it be of use to you. Here's how things
went...

Compilation of the server went fine. The compilation of the client
(0.95.4) however had a single problem. Here's the output from the
processes up until the point the problem.

Beginning with the output of the compile script:

----
# ./compile

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 a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for mkdir... (cached) /bin/mkdir
checking for tar... (cached) /bin/tar
checking for makedepend... (cached) /usr/X11R6/bin/makedepend
checking for cp... (cached) /bin/cp
checking for rm... (cached) /bin/rm
checking for perl... (cached) /usr/bin/perl
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 for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for gtk-config... (cached) /usr/bin/gtk-config
checking for GTK - version >= 1.0.0... yes
checking for X... (cached) libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
GTK found - building both gtk and x11 client
Xlibs: -L/usr/X11R6/lib -lX11
Extras:
Xpre: -lSM -lICE
checking for main in -lasound... (cached) no
checking for alNewConfig in -laudio... (cached) no
checking for sys/soundcard.h... (cached) yes
Using OSS sound system
checking for XpmReadFileToXpmImage in -lXpm... (cached) yes
checking for X11/xpm.h... (cached) yes
checking for main in -ldmalloc... (cached) no
checking for sqrt in -lm... (cached) yes
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes
checking whether gcc needs -traditional... (cached) no
checking for vprintf... (cached) yes
checking for mkdir... (cached) yes
checking for socket... (cached) yes
checking for strcspn... (cached) yes
checking for sysconf... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
----

config.h had already been created from a previous attempt.

Here is the output from the 'make depend' command:

----
# ./make depend

/usr/X11R6/bin/makedepend  -- -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I.
-I/usr/X11R6/include  -- client.c commands.c init.c item.c misc.c
newsocket.c player.c sound.c x11.c cfsndserv.c misc.c
----

So far, everything is fine. The final make command before make install
gave me the problem. Here is the output:

----
# ./make

gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
client.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
commands.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
init.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
item.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
misc.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
newsocket.c
gcc -g -O2 -DOSS_SOUND -DNEW_SOUND -Wall   -I. -I/usr/X11R6/include -c
player.c
/usr/bin/perl -p -e s#/usr/local/lib/sounds#/usr/local/lib/sounds#
sounds.dist > sounds
utils/deftoheader.pl sounds soundsdef.h def_sounds

make: utils/deftoheader.pl: Command not found
make: *** [soundsdef.h] Error 127
----

I did manage to fix the error pretty simply.  The problem resided in
line number 162 of the Makefile on my system -
Section "soundsdef.h: sounds," specifically the line
  utils/deftoheader.pl sounds soundsdef.h def_sounds
I merely added $(PERL) to the beginning of the line and re-ran the make
command and if worked after that.


Just thought it might be helpful to you to hear about this - If it's
something you may know about and somebody else has already informed you
of it, sorry for the extraneous email!

Ryan Brown
rolffb@earthlink.net