Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141661 - games-strategy/warzone2100-2.0.3 does not compile (problem with vorbis)
Summary: games-strategy/warzone2100-2.0.3 does not compile (problem with vorbis)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-24 20:57 UTC by Sascha G.
Modified: 2006-08-27 10:27 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,31.14 KB, text/plain)
2006-07-24 21:01 UTC, Sascha G.
Details
warzone-configure-enable.patch (warzone-configure-enable.patch,1.76 KB, patch)
2006-08-23 01:21 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha G. 2006-07-24 20:57:09 UTC
During the configure phase:
[...]
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking for main in -lopenal... yes
checking OpenAL... yes
checking for Ogg... yes
checking for Vorbis... no
*** Could not run Vorbis test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
./configure: line 7704: xyes: command not found
checking for mad_stream_init in -lmad... yes
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
[...]
Warzone will compile with the following components:

 OpenGL acceleration:   yes
 OpenAL sound system:   yes
 MP3 music support:     yes
 OGG music support:     no
[...]

Which leads to this error:
[...]
Making all in sound
make[3]: Entering directory `/var/tmp/portage/warzone2100-2.0.3/work/warzone-2.0.3/lib/sound'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -O2 -pipe -march=pentium4 -fomit-frame-pointer  -DDEFAULT_DATADIR=\"/usr/share/games/warzone\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -m32 -fno-strict-aliasing -c audio.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -O2 -pipe -march=pentium4 -fomit-frame-pointer  -DDEFAULT_DATADIR=\"/usr/share/games/warzone\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -m32 -fno-strict-aliasing -c cdaudio.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -O2 -pipe -march=pentium4 -fomit-frame-pointer  -DDEFAULT_DATADIR=\"/usr/share/games/warzone\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -m32 -fno-strict-aliasing -c mixer_stub.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -O2 -pipe -march=pentium4 -fomit-frame-pointer  -DDEFAULT_DATADIR=\"/usr/share/games/warzone\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -m32 -fno-strict-aliasing -c openal_track.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..   -O2 -pipe -march=pentium4 -fomit-frame-pointer  -DDEFAULT_DATADIR=\"/usr/share/games/warzone\" -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -m32 -fno-strict-aliasing -c playlist.c
openal_track.c:267: error: syntax error before "ogg_int64_t"
openal_track.c: In function `ovbuf_seek':
openal_track.c:268: error: `datasource' undeclared (first use in this function)
openal_track.c:268: error: (Each undeclared identifier is reported only once
openal_track.c:268: error: for each function it appears in.)
openal_track.c:271: error: `whence' undeclared (first use in this function)
openal_track.c:273: error: `offset' undeclared (first use in this function)
openal_track.c: At top level:
openal_track.c:301: error: syntax error before "ovbuf_callbacks"
openal_track.c:302: warning: initialization makes integer from pointer without a cast
openal_track.c:303: warning: excess elements in scalar initializer
openal_track.c:303: warning: (near initialization for `ovbuf_callbacks')
openal_track.c:304: warning: excess elements in scalar initializer
openal_track.c:304: warning: (near initialization for `ovbuf_callbacks')
openal_track.c:306: warning: excess elements in scalar initializer
openal_track.c:306: warning: (near initialization for `ovbuf_callbacks')
openal_track.c:306: warning: data definition has no type or storage class
openal_track.c: In function `sound_ReadTrackFromBuffer':
openal_track.c:311: error: `OggVorbis_File' undeclared (first use in this function)
openal_track.c:311: error: syntax error before "ogg_stream"
openal_track.c:312: error: `vorbis_info' undeclared (first use in this function)
openal_track.c:312: error: `ogg_info' undeclared (first use in this function)
openal_track.c:323: error: `ogg_stream' undeclared (first use in this function)
make[3]: *** [openal_track.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/warzone2100-2.0.3/work/warzone-2.0.3/lib/sound'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/warzone2100-2.0.3/work/warzone-2.0.3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/warzone2100-2.0.3/work/warzone-2.0.3'
make: *** [all] Error 2

I have openal-0.0.8 installed, vorbis files work fine, setting LDFLAGS="" does not help.
config.log will be attached.

Portage 2.1.1_pre3-r4 (selinux/2005.1/x86/hardened, gcc-3.4.6/hardened, glibc-2.3.6-r4, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig collision-protect distlocks loadpolicy parallel-fetch sandbox selinux sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from /etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa bzip2 caps cjk crypt cups curl dts dvd dvdread ffmpeg flac ftp gif gtk hardened idn ipv6 jpeg kdeenablefinal mad mikmod mmap mmx mp3 ncurses nptl offensive ogg opengl pam pdf pic png selinux sndfile sse sse2 ssl theora threads tiff truetype unicode vorbis win32codecs xinerama xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia"
Unset:  CTARGET, INSTALL_MASK, LC_ALL
Comment 1 Sascha G. 2006-07-24 21:01:03 UTC
Created attachment 92679 [details]
config.log

Oh, creating /usr/games/include (see config.log how I came to this idea) or downgrading to autoconf 2.59 did not help either.
Comment 2 Sascha G. 2006-07-24 21:25:31 UTC
I just noticed that compiling with FEATURES="-userpriv" works, no complaints about vorbis, the game itself works, too.

I'm curious, could someone explain to me why this has been reassigned to hardened? 
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2006-07-25 01:49:06 UTC
(In reply to comment #2)
> I'm curious, could someone explain to me why this has been reassigned to
> hardened? 

Because games@ like to bin any bug with the word hardened somewhere in emerge info, without bothering to even look at the data provided by the bug reporter.

Reassigning back to games; the fault is clearly nothing to do with hardened.

@games - this is clearly nothing to do with hardened, just look at the data the reporter provided; the error in the ebuild is glaringly obvious, and will trigger on non-hardened systems in exactly the same way.  Next time, please at least glance at the reported data before chucking it over the fence and wasting our time, and if you do ever feel you need to re-assign, at least keep yourselves on CC.
Comment 4 Andrei Slavoiu 2006-08-10 13:26:48 UTC
Can confirm that it has nothing to do with hardened. Here's my emerge --info:

Portage 2.1.1_pre4-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.4
Last Sync: Thu, 10 Aug 2006 15:20:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -ggdb -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org ftp://ftp.lug.ro/gentoo ftp://gentoo.romnet.org/gentoo ftp://mirrors.evolva.ro/gentoo http://distfiles.gentoo.org"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common,-z,combreloc"
LINGUAS="ro eo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"
USE="amd64 3ds 7zip X a52 aac aalib accessibility acl acpi akode alsa amr apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cddb cdparanoia clamav crypt css cups curl dba dbus dga dlloader dmi doc dpms dri dts dv dvd dvdr dvdread eds elibc_glibc emboss encode erandom examples exif expat fam fbcon ffmpeg flac foomaticdb ftp gcj gd gif glut gmp gnokii gnutls gphoto2 gpm graphviz hal hou iconv idn imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kerberos kernel_linux kig-scripting kipi kqemu lcms ldap libcaca libclamav linguas_eo linguas_ro lirc lirc_devices_kworld live lm_sensors lua lzo lzw lzw-tiff mad matroska mbrola mikmod mjpeg mmap mng mp3 mp4 mpeg mplayer mppe-mppc musepack musicbrainz mythtv ncurses network nls nodrm nowin nptl nptlonly offensive ofx ogg openal openexr opengl pam pcre pdf pdflib perl php physfs png posix povray pppd python qt3 qt4 rdesktop readline reflection reiserfs rtc ruby samba sasl sdl session sms snmp sockets sou speex spell spl sqlite ssl subversion svg symlink syslog sysvipc tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l v4l2 video_cards_radeon video_cards_v4l video_cards_vesa videos visualization voice vorbis wifi wmf x264 xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid xvmc zeroconf zip zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 solar (RETIRED) gentoo-dev 2006-08-10 13:49:44 UTC
(In reply to comment #4)
> Can confirm that it has nothing to do with hardened. Here's my emerge --info:

Thank you for the confirmation. Removing hardened@ from the CC: list.
Comment 6 Dennis Schridde 2006-08-22 04:25:17 UTC
Is probably a missing "test" (in the if) in our configure.ac
Fixed upstream r248.
Comment 7 Dennis Schridde 2006-08-22 04:46:47 UTC
Oups. Just saw that vorbis was entirely not detected.
I tested it here and can only confirm it.

configure:7572: i686-pc-linux-gnu-gcc -o conftest -march=athlon-xp -mfpmath=sse -O2 -pipe -fomit-frame-pointer -I/usr/games/include -Iyes/include conftest.c -lphysfs -lpng -ljpeg -lz -lm  -L/usr/games/lib -lvorbis -lm -lvorbisenc -Lyes/lib -logg >&5
cc1: error: /usr/games/include: Permission denied

Especially I wonder where that -Iyes/include comes from...
Comment 8 Andrei Slavoiu 2006-08-22 23:51:27 UTC
(In reply to comment #7)
> Especially I wonder where that -Iyes/include comes from...
Any chance you are using confcache? It's a common problem that a program uses a path for the output of a test while another uses just yes/no.
Comment 9 SpanKY gentoo-dev 2006-08-23 01:21:33 UTC
Created attachment 94916 [details, diff]
warzone-configure-enable.patch

this fixes configure.ac to not duplicate flags with ogg.m4/vorbis.m4

then the ebuild needs to be updated to do $(use_enable mp3) $(use_enable ogg) --with-ogg=/usr --with-vorbis=/usr

the second two flags are fine ... they just set the ogg/vorbis prefixes, they dont control support

the default is $oggprefix=$prefix and since we do $prefix=/usr/games, ogg.m4 adds -I/usr/games/include for us: -I$oggprefix/include ... that's when everything falls apart
Comment 10 Sascha G. 2006-08-27 10:27:55 UTC
This has been fixed in version 2.0.4.