Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25743 - crossfire-client ebuild fails to compile
Summary: crossfire-client ebuild fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-01 22:00 UTC by Gene Ruebsamen
Modified: 2005-03-10 00:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gene Ruebsamen 2003-08-01 22:00:37 UTC
* note: am using latest alsa-driver-0.9.6 from ~x86

emerging crossfire-client causes the following error:

>>> emerge (1 of 1) app-games/crossfire-client-1.5.0 to /
>>> md5 src_uri ;-) crossfire-client-1.5.0.tar.gz
>>> Unpacking source...
>>> Unpacking crossfire-client-1.5.0.tar.gz to
/home/gene/temp/portage/crossfire-client-1.5.0/work
 * Applying 1.5.0-errno.patch...                                          [ ok
]>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... 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... /bin/mkdir
checking for tar... /bin/tar
checking for makedepend... /usr/X11R6/bin/makedepend
checking for cp... /bin/cp
checking for rm... /bin/rm
checking for perl... /usr/bin/perl
checking for ar... /usr/bin/ar
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.0.0... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
GTK found - building both gtk and x11 client
Xlibs: -L/usr/X11R6/lib -lX11
Extras:
Xpre: -lSM -lICE
checking for main in -lasound... yes
checking for alNewConfig in -laudio... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
Using ALSA sound system
checking for gnome-config... /usr/bin/gnome-config
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.1.3... yes
checking for IMG_LoadPNG_RW in -lSDL_image... yes
checking for main in -lXext... yes
checking for sqrt in -lm... yes
checking for main in -lz... yes
checking for main in -lpng... yes
checking for main in -ldmalloc... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for vprintf... yes
checking for _doprnt... no
checking for mkdir... yes
checking for socket... yes
checking for strcspn... yes
checking for sysconf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gtk/Makefile
config.status: creating x11/Makefile
config.status: creating common/Makefile
config.status: creating sound-src/Makefile
config.status: creating gnome/Makefile
config.status: creating common/config.h
making all in common...
make[1]: Entering directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/common'
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c client.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c commands.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c image.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c init.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c item.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c metaserver.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c misc.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c newsocket.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I.  -c player.c
player.c: In function `extended_command':
player.c:372: warning: implicit declaration of function `menu_clear'
/bin/rm -f libcfclient.a
/usr/bin/ar rv libcfclient.a client.o commands.o image.o init.o item.o
metaserver.o misc.o newsocket.o player.o
a - client.o
a - commands.o
a - image.o
a - init.o
a - item.o
a - metaserver.o
a - misc.o
a - newsocket.o
a - player.o
ranlib libcfclient.a
make[1]: Leaving directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/common'
making all in x11...
make[1]: Entering directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/x11'
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall    -I/usr/X11R6/include -I.. -I../common -I. -c
png.c
png.c: In function `rgba_to_xpixmap':
png.c:785: warning: `cmask' might be used uninitialized in this function
png.c:785: warning: `lastcolor' might be used uninitialized in this function
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall    -I/usr/X11R6/include -I.. -I../common -I. -c
sound.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall    -I/usr/X11R6/include -I.. -I../common -I. -c
x11.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall    -I/usr/X11R6/include -I.. -I../common -I. -c
xutil.c
gcc -o cfclient png.o sound.o x11.o xutil.o  -lpng -lz -lm   -L/usr/X11R6/lib
-lX11 -lXext  ../common/libcfclient.a
make[1]: Leaving directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/x11'
making all in gtk...
make[1]: Entering directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/gtk'
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c config.c
config.c: In function `configdialog':
config.c:468: warning: `adj' might be used uninitialized in this function
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c gx11.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c image.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c keys.c
keys.c: In function `parse_keybind_line':
keys.c:148: warning: `cp' might be used uninitialized in this function
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c map.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c png.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c sdl.c
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I/usr/include/SDL -D_REENTRANT
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/include -I.. -I../common -I../pixmaps -c sound.c
gcc -o gcfclient config.o gx11.o image.o keys.o map.o png.o sdl.o sound.o  -lpng
-lz -lm  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_image
 ../common/libcfclient.a
make[1]: Leaving directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/gtk'
making all in sound-src...
make[1]: Entering directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/sound-src'
/usr/bin/perl -p -e
s#/usr/local/lib/sounds#/usr/share/games/crossfire-client/sounds# sounds.dist >
sounds
/usr/bin/perl ../utils/deftoheader.pl sounds soundsdef.h def_sounds
199 lines processed
gcc -march=athlon-xp -O3 -pipe -fstrict-aliasing -fomit-frame-pointer -mmmx
-msse -m3dnow -DALSA_SOUND -Wall   -I. -I.. -I../common -I. -c cfsndserv.c
In file included from cfsndserv.c:87:
/usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated,
use <alsa/asoundlib.h> instead.
cfsndserv.c: In function `init_audio':
cfsndserv.c:283: `snd_pcm_channel_params_t' undeclared (first use in this function)
cfsndserv.c:283: (Each undeclared identifier is reported only once
cfsndserv.c:283: for each function it appears in.)
cfsndserv.c:283: parse error before "params"
cfsndserv.c:285: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this
function)cfsndserv.c:285: warning: passing arg 2 of `snd_pcm_open' makes pointer
from integer without a cast
cfsndserv.c:290: `params' undeclared (first use in this function)
cfsndserv.c:290: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
cfsndserv.c:291: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
cfsndserv.c:294: `SND_PCM_SFMT_S8' undeclared (first use in this function)
cfsndserv.c:294: `SND_PCM_SFMT_U8' undeclared (first use in this function)
cfsndserv.c:296: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
cfsndserv.c:296: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
cfsndserv.c:304: warning: implicit declaration of function `snd_pcm_channel_params'
cfsndserv.c:342: warning: implicit declaration of function `snd_pcm_file_descriptor'
cfsndserv.c:343: warning: implicit declaration of function `snd_pcm_nonblock_mode'
cfsndserv.c: In function `audio_play':
cfsndserv.c:350: warning: implicit declaration of function `snd_pcm_write'
make[1]: *** [cfsndserv.o] Error 1
make[1]: Leaving directory
`/home/gene/temp/portage/crossfire-client-1.5.0/work/crossfire-client-1.5.0/sound-src'
make: *** [all] Error 2
 
!!! ERROR: app-games/crossfire-client-1.5.0 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)
Comment 1 SpanKY gentoo-dev 2003-08-03 01:21:59 UTC
you seem to have forgotten `emerge info` :)
Comment 2 SpanKY gentoo-dev 2003-08-03 01:54:47 UTC
ok, crossfire-client depends on alsa-0.5 ... problem is latest version we've got is 0.9 ...

0.5 and 0.9 are not compatible interfaces ;(
see Bug 2423 for more info ...

ive added this to the ebuild:
has_version '>=media-libs/alsa-lib-0.9' && myconf="${myconf} --disable-alsa"
Comment 3 2gwhou802 2005-03-10 00:17:12 UTC
I am getting a very similar error while trying to compile version 1.7.1. (I have alsa-lib-1.0.8)

make: Entering directory `/var/tmp/portage/crossfire-client-1.7.1/work/crossfire-client-1.7.1/sound-src'
/usr/bin/perl -p -e s#/usr/local/lib/sounds#/usr/share/games/crossfire-client/sounds# sounds.dist > sounds
/usr/bin/perl ../utils/deftoheader.pl sounds soundsdef.h def_sounds
199 lines processed
i686-pc-linux-gnu-gcc -O2 -march=athlon -fomit-frame-pointer -pipe -DALSA_SOUND -Wall   -I. -I.. -I../common -I. -c cfsndserv.c
In file included from cfsndserv.c:87:
/usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.
cfsndserv.c: In function `init_audio':
cfsndserv.c:283: error: `snd_pcm_channel_params_t' undeclared (first use in this function)
cfsndserv.c:283: error: (Each undeclared identifier is reported only once
cfsndserv.c:283: error: for each function it appears in.)
cfsndserv.c:283: error: parse error before "params"
cfsndserv.c:288: error: `SND_PCM_OPEN_PLAYBACK' undeclared (first use in this function)
cfsndserv.c:288: warning: passing arg 2 of `snd_pcm_open' makes pointer from integer without a cast
cfsndserv.c:293: error: `params' undeclared (first use in this function)
cfsndserv.c:293: error: `SND_PCM_CHANNEL_PLAYBACK' undeclared (first use in this function)
cfsndserv.c:294: error: `SND_PCM_MODE_BLOCK' undeclared (first use in this function)
cfsndserv.c:297: error: `SND_PCM_SFMT_S8' undeclared (first use in this function)
cfsndserv.c:297: error: `SND_PCM_SFMT_U8' undeclared (first use in this function)
cfsndserv.c:299: error: `SND_PCM_SFMT_S16_LE' undeclared (first use in this function)
cfsndserv.c:299: error: `SND_PCM_SFMT_U16_LE' undeclared (first use in this function)
cfsndserv.c:307: warning: implicit declaration of function `snd_pcm_channel_params'
cfsndserv.c:345: warning: implicit declaration of function `snd_pcm_file_descriptor'
cfsndserv.c:346: warning: implicit declaration of function `snd_pcm_nonblock_mode'
cfsndserv.c: In function `audio_play':
cfsndserv.c:353: warning: implicit declaration of function `snd_pcm_write'
make: *** [cfsndserv.o] Error 1
make: Leaving directory `/var/tmp/portage/crossfire-client-1.7.1/work/crossfire-client-1.7.1/sound-src'

!!! ERROR: games-roguelike/crossfire-client-1.7.1 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! sound building failed

$ emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 18:46:01)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://cudlug.cudenver.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acpi apm arts avi bash-completion berkdb bitmap-fonts bzlib canna cdr cjk crypt cups curl directfb divx4linux dvd dvdr emacs emboss encode esd exif fam fbcon flac flash font-server foomaticdb fortran gdbm ggi gif gnome gpm graphviz gtk gtk2 imagemagick imlib java jbig jpeg leim libg++ libwww mad mikmod mmx mng motif mozilla mp3 mpeg mule ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline real ruby scanner sdl snmp speex spell ssl svga tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts unicode usb wmf xface xine xml2 xmms xpm xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY