[CF List] Make depend error (!)

Jesse F. Hughes jesse at andrew.cmu.edu
Sun Aug 6 19:20:55 CDT 2000


Hey ho.

When running `make depend', I get the following error:
diogenes:/usr/src/crossfire-client-0.95.6# make depend
g -O2 -DALSA_SOUND -DNEW_SOUND -Wall   -I.   -- client.c commands.c init.c item.c misc.c newsocket.c player.c sound.c x11.c cfsndserv.c misc.c
make: g: Command not found
make: [depend] Error 127 (ignored)

As you can see, I'm running ALSA on this machine.  On my other
machine, I'm not using ALSA, and I had no problem compiling.  But, I
don't know if that has anything to do with it.

The variable CC = gcc, while 
CFLAGS = -g -O2 -DALSA_SOUND -DNEW_SOUND -Wall   -I.

I've attached the Makefile and config.cache -- hope that helps.
-------------- next part --------------
# Generated automatically from Makefile.in by configure.
VERSION = crossfire-client-0.95.6
MKDIR = /bin/mkdir
CP = /bin/cp
TAR = /bin/tar
RM = /bin/rm
TARGET = gcfclient cfclient cfsndserv
CFLAGS = -g -O2 -DALSA_SOUND -DNEW_SOUND -Wall   -I.
LDFLAGS =  
CC = gcc
LIBS = -lm  -lXpm
INSTALL = /usr/bin/ginstall -c
DEPEND = 
PERL = /usr/bin/perl
SOUND_DIR = /usr/local/lib/sounds

prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
mandir=${prefix}/man/man1

HEADERS= \
	cconfig.h		\
	client.h		\
	clientbmap.h		\
	item.h			\
	item_types.h		\
        newclient.h		\
	proto.h			\
	soundsdef.h		

SOURCES = \
	client.c		\
	commands.c		\
	init.c			\
	item.c			\
	misc.c			\
	newsocket.c		\
	player.c		\
	sound.c

GTK_SOURCES = $(SOURCES) gx11.c
GTK_OBJS= $(GTK_SOURCES:.c=.o)

X11_SOURCES = $(SOURCES) x11.c
X11_OBJS= $(X11_SOURCES:.c=.o)
X_CFLAGS=
X_LIBS= -L/usr/X11/lib -lX11 -lXext -lImlib

GTK_CFLAGS=-I/usr/X11R6/include -I/usr/lib/glib/include
GTK_LIBS=-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lgdk_imlib
SND_LIBS=-lasound -lm

# proto only wants the .c files 

PROTOSOURCES= \
	client.c		\
	commands.c		\
	init.c			\
	item.c			\
	misc.c			\
	newsocket.c		\
	player.c		\
	sound.c			\
	x11.c

EXTRA_DIST = \
	aclocal.m4		\
	CHANGES			\
	COPYING			\
	Makefile.in		\
	Protocol		\
	README			\
	README.old		\
	aclocal.m4		\
	client.man		\
	config.h.in		\
	configure		\
	configure.in		\
	def_keys		\
	def-keys.h		\
	item_types		\
	items.pl		\
	sounds.dist		\
	x11.c			\
	xutil.c			\
	gx11.c			\
	cfsndserv.c

PIXMAPS = \
	pixmaps/all.xpm		\
	pixmaps/applied.xpm	\
	pixmaps/bg.xpm		\
	pixmaps/close.xpm	\
	pixmaps/coin.xpm	\
	pixmaps/crossfiretitle.xpm	\
	pixmaps/cursed.xpm	\
	pixmaps/damned.xpm	\
	pixmaps/hand.xpm	\
	pixmaps/hand2.xpm	\
	pixmaps/lock.xpm	\
	pixmaps/locked.xpm	\
	pixmaps/mag.xpm		\
	pixmaps/magic.xpm	\
	pixmaps/nonmag.xpm	\
	pixmaps/question.111	\
	pixmaps/question.xpm	\
	pixmaps/skull.xpm	\
	pixmaps/stipple.111	\
	pixmaps/stipple.112	\
	pixmaps/test.xpm	\
	pixmaps/unpaid.xpm	

HELP= \
	help/chelp.h		\
	help/shelp.h		\
	help/about.h

UTILS = \
	utils/config.guess	\
	utils/config.sub	\
	utils/mdk.sh		\
	utils/deftoheader.pl	\
	utils/install-sh	\
	utils/missing		\
	utils/mkinstalldirs

SND_SOURCES = cfsndserv.c misc.c
SND_OBJS= $(SND_SOURCES:.c=.o)


INCLUDES = 

all:  gcfclient cfclient cfsndserv def-keys.h

gcfclient: $(GTK_OBJS)
	$(CC) -o gcfclient $(GTK_OBJS) $(LDFLAGS) $(LIBS) $(GTK_LIBS)

cfclient: $(X11_OBJS)
	$(CC) -o cfclient $(X11_OBJS) $(LDFLAGS) $(LIBS) $(X_LIBS)

# grumble grumble.  cextract can't seem to handle gx11.c
proto:
	cextract +p -P -o proto.h.bak -DCFCLIENT \
	-cpp-program="gcc -E -C" $(INCLUDES) -I. $(PROTOSOURCES)
	sed -e "s/#if __STDC__/#ifdef __STDC__/" -e "/__inline/d" < \
	proto.h.bak > proto.h
	$(RM) -f proto.h.bak
	chmod 664 proto.h

item_types.h: item_types
	$(PERL) items.pl

def-keys.h: def_keys
	utils/mdk.sh

sounds: sounds.dist Makefile
	$(PERL) -p -e s#/usr/local/lib/sounds#$(SOUND_DIR)# sounds.dist > sounds


soundsdef.h: sounds
	$(PERL) utils/deftoheader.pl sounds soundsdef.h def_sounds

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $*.c

gx11.o: gx11.c
	$(CC) $(CFLAGS) $(GTK_CFLAGS) $(INCLUDES) -c gx11.c

x11.o: x11.c
	$(CC) $(CFLAGS) $(X_CFLAGS) $(INCLUDES) -c x11.c

cfsndserv: $(SND_OBJS)
	$(CC) -o cfsndserv $(SND_OBJS) $(LDFLAGS) $(SND_LIBS)

archive:
	if [ -d /tmp/$(VERSION) ]; then $(RM) -rf /tmp/$(VERSION); fi
	$(MKDIR) /tmp/$(VERSION) /tmp/$(VERSION)/utils /tmp/$(VERSION)/help /tmp/$(VERSION)/pixmaps
	$(CP) $(HEADERS) $(SOURCES) $(EXTRA_DIST) /tmp/$(VERSION)
	$(CP) $(PIXMAPS) /tmp/$(VERSION)/pixmaps
	$(CP) $(HELP) /tmp/$(VERSION)/help
	$(CP) $(UTILS) /tmp/$(VERSION)/utils
	(cd /tmp; $(RM) $(VERSION).tgz; \
		$(TAR) cvfhz $(VERSION).tar.gz $(VERSION) )
	$(CP) /tmp/$(VERSION).tar.gz ../
	$(RM) -rf /tmp/$(VERSION) /tmp/$(VERSION).tar.gz


clean::
	$(RM) -f $(TARGET) $(GTK_OBJS) $(SND_OBJS) x11.o Makefile.bak

distclean::
	$(MAKE) clean
	$(RM) -f config.status config.log config.cache
	$(RM) -f cfsndserv cfclient gcfclient

install:
	$(INSTALL) $(TARGET) ${bindir}
	$(INSTALL) client.man ${mandir}/cfclient.1
	@if [ -x gcfclient ]; then \
	    	$(INSTALL) client.man ${mandir}/gcfclient.1; \
	fi

depend:
	$(DEPEND) $(DEPENDFLAGS) -- $(CFLAGS) $(INCLUDES)  -- $(PROTOSOURCES) $(SND_SOURCES)
	
-------------- next part --------------

-------------- next part --------------
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
ac_cv_c_const=${ac_cv_c_const=yes}
ac_cv_func_connect=${ac_cv_func_connect=yes}
ac_cv_func_gethostbyname=${ac_cv_func_gethostbyname=yes}
ac_cv_func_mkdir=${ac_cv_func_mkdir=yes}
ac_cv_func_remove=${ac_cv_func_remove=yes}
ac_cv_func_shmat=${ac_cv_func_shmat=yes}
ac_cv_func_socket=${ac_cv_func_socket=yes}
ac_cv_func_strcspn=${ac_cv_func_strcspn=yes}
ac_cv_func_sysconf=${ac_cv_func_sysconf=yes}
ac_cv_func_vprintf=${ac_cv_func_vprintf=yes}
ac_cv_have_x=${ac_cv_have_x='have_x=yes 		ac_x_includes= ac_x_libraries=/usr/X11/lib'}
ac_cv_header_Imlib_h=${ac_cv_header_Imlib_h=yes}
ac_cv_header_X11_xpm_h=${ac_cv_header_X11_xpm_h=yes}
ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=yes}
ac_cv_header_stdc=${ac_cv_header_stdc=yes}
ac_cv_header_string_h=${ac_cv_header_string_h=yes}
ac_cv_header_sys_audioio_h=${ac_cv_header_sys_audioio_h=no}
ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h=yes}
ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h=yes}
ac_cv_header_sys_soundcard_h=${ac_cv_header_sys_soundcard_h=yes}
ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h=yes}
ac_cv_header_time=${ac_cv_header_time=yes}
ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes}
ac_cv_lib_ICE_IceConnectionNumber=${ac_cv_lib_ICE_IceConnectionNumber=yes}
ac_cv_lib_Imlib_main=${ac_cv_lib_Imlib_main=yes}
ac_cv_lib_Xext_main=${ac_cv_lib_Xext_main=yes}
ac_cv_lib_Xpm_XpmReadFileToXpmImage=${ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes}
ac_cv_lib_asound_main=${ac_cv_lib_asound_main=yes}
ac_cv_lib_audio_alNewConfig=${ac_cv_lib_audio_alNewConfig=no}
ac_cv_lib_dmalloc_main=${ac_cv_lib_dmalloc_main=no}
ac_cv_lib_dnet_dnet_ntoa=${ac_cv_lib_dnet_dnet_ntoa=no}
ac_cv_lib_dnet_stub_dnet_ntoa=${ac_cv_lib_dnet_stub_dnet_ntoa=no}
ac_cv_lib_gdk_imlib_main=${ac_cv_lib_gdk_imlib_main=yes}
ac_cv_lib_m_sqrt=${ac_cv_lib_m_sqrt=yes}
ac_cv_path_CP=${ac_cv_path_CP=/bin/cp}
ac_cv_path_GTK_CONFIG=${ac_cv_path_GTK_CONFIG=/usr/bin/gtk-config}
ac_cv_path_MKDIR=${ac_cv_path_MKDIR=/bin/mkdir}
ac_cv_path_PERL=${ac_cv_path_PERL=/usr/bin/perl}
ac_cv_path_RM=${ac_cv_path_RM=/bin/rm}
ac_cv_path_TAR=${ac_cv_path_TAR=/bin/tar}
ac_cv_path_install=${ac_cv_path_install='/usr/bin/ginstall -c'}
ac_cv_prog_CC=${ac_cv_prog_CC=gcc}
ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
ac_cv_prog_LN_S=${ac_cv_prog_LN_S='ln -s'}
ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=no}
ac_cv_prog_cc_g=${ac_cv_prog_cc_g=yes}
ac_cv_prog_cc_works=${ac_cv_prog_cc_works=yes}
ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional=no}
ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
-------------- next part --------------

I'm using Slackware Linux 2.2.16 (on both machines).

Thanks for any help you can offer.
-- 
Jesse Hughes

"It's a dangerous place.  It's a sacred place.  They're going to live
as the Aborigines did." -Survivor producer Mark Burnett on the Outback 
    
    


More information about the crossfire mailing list