Hello, When attempting to emerge the lastest version of flightgear (0.9.10) I receive the following compile error: i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -fomit-frame-pointer -pipe -D_REENTRANT -L/usr/games/lib -L/usr/X11R6/lib -L/usr/local/lib -o gl-info gl-info.o -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -ldl -lm if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../src/Include -I/usr/X11R6/include -I/usr/local/include -O3 -march=athlon-xp -fomit-frame-pointer -pipe -D_REENTRANT -MT al-info.o -MD -MP -MF ".deps/al-info.Tpo" -c -o al-info.o al-info.c; \ then mv -f ".deps/al-info.Tpo" ".deps/al-info.Po"; else rm -f ".deps/al-info.Tpo"; exit 1; fi al-info.c: In function `main': al-info.c:29: error: `ALCint' undeclared (first use in this function) al-info.c:29: error: (Each undeclared identifier is reported only once al-info.c:29: error: for each function it appears in.) al-info.c:29: error: syntax error before "i" al-info.c:71: error: `data' undeclared (first use in this function) make[1]: *** [al-info.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/flightgear-0.9.10/work/FlightGear-0.9.10/tests' make: *** [all-recursive] Error 1 I poked around a little bit and found that in the file tests/al-info.c the code was attempting to declare several variables of type "ALCint". On closer examination I found that in the librarys that it includes, there was no such data type. However, by changing these types from ALCint to ALint, I was able to get the package to compile succefully and everything works. I will include a patch file after this that includes the change I made in order to make it compile cleanly. Below is the obligatory emerge --info and relevant package information: Portage 2203-svn (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.2 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd dvdr eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gphoto2 gpm gstreamer gtk2 idn imagemagick imlib ipv6 isdnlog jack java jpeg junit kde lcms ldap libcaca libg++ libwww lua mad matroska mikmod mmx mng motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis openal opengl oss pam pcre pdflib perl php plotutils png pppd python qt quicktime readline recode reflection scanner sdl session speex spell spl sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vhosts vorbis xine xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS Relevant package information: openal version: openal-20050504-r2
Created attachment 85892 [details, diff] Apply to fix al-info.c to use the correct data types. Apply this patch in the unpacked flightgear directory to fix tests/al-info.c
Would you mind resyncing portage, updating your system and retest flightgear without any patch. ALCint is defined in openal, current version, so you should get it.