Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387203 - games-simulation/flightgear-2.0.0 fails to compile against dev-games/openscenegraph-3.0.1
Summary: games-simulation/flightgear-2.0.0 fails to compile against dev-games/openscen...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Lowest normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 12:13 UTC by Martin von Gagern
Modified: 2012-08-28 00:04 UTC (History)
2 users (show)

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


Attachments
build log (games-simulation:flightgear-2.0.0:20111015-100434.log,36.77 KB, text/plain)
2011-10-15 12:13 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-10-15 12:13:40 UTC
Created attachment 289871 [details]
build log

After updating openscenegraph from 2.8.3 to 3.0.1, flightgear fails to re-emerge for me, printing the following error message:

hud.cxx: In function ‘void fgUpdateHUDVirtual(osg::State*)’:
hud.cxx:350:74: error: ‘gluPerspective’ was not declared in this scope
hud.cxx:363:64: error: ‘gluLookAt’ was not declared in this scope
hud.cxx: In function ‘void fgUpdateHUD(osg::State*, GLfloat, GLfloat, GLfloat, GLfloat)’:
hud.cxx:399:46: error: ‘gluOrtho2D’ was not declared in this scope

Full build log attached.

Some extra infos, in case they are useful for you:
# qfile -v /usr/include/GL/glu.h
media-libs/mesa-7.11 (/usr/include/GL/glu.h)
# grep -r gluOrtho2D /usr/include/
/usr/include/GL/glu_mangle.h:#define gluOrtho2D mgluOrtho2D
/usr/include/GL/glu.h:GLAPI void GLAPIENTRY gluOrtho2D ([...]);
# cd /tmp/portage/games-simulation/flightgear-2.0.0/work/FlightGear-2.0.0
# cd src/Cockpit
# x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H \
  -I. -I../../src/Include -I../.. -I../../src  -I/usr/local/include \
  -march=amdfam10 -O2 -ggdb -pipe -D_REENTRANT -I/usr/include/SDL \
  -D_GNU_SOURCE=1 -D_REENTRANT -E hud.cxx \
  | grep '^#' | cut -d\" -f2 | sort -u | grep -i gl
../../src/Main/globals.hxx
/usr/include/GL/glext.h
/usr/include/GL/gl.h
/usr/include/osg/GL
/usr/include/osg/GL2Extensions
/usr/include/osg/GLBeginEndAdapter
/usr/include/osg/GLU
/usr/include/osgUtil/GLObjectsVisitor
/usr/include/simgear/math/SGLimits.hxx
/usr/include/simgear/math/SGLineSegment.hxx
/usr/include/simgear/math/SGTriangle.hxx

So the build does include gl.h but not glu.h. The GLU header from osg doesn't have those symbols.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2011-10-15 20:08:06 UTC
With what USE flags did you build openschenegraph?
Comment 2 Maciej Mrozowski gentoo-dev 2011-10-16 02:38:46 UTC
I observed it as well, but it was easier to bump newer flightgear (2.4.0) than try to find proper place to fix this one.
Comment 3 Torsten Kaiser 2011-10-16 06:50:37 UTC
I have seen this build failure too, trying to rebuild flightgear after upgrading to openscenegraph-3.0.1

Thanks to the bump to flightgear-2.4.0 the build now worked, but only after downgrading from subversion-1.7.0 to subversion-1.6.17-r7.
Comment 4 Martin von Gagern 2011-10-16 17:08:08 UTC
(In reply to comment #1)
> With what USE flags did you build openschenegraph?

[ebuild   R    ] dev-games/openscenegraph-3.0.1  USE="curl doc ffmpeg gif gtk jpeg jpeg2k openexr pdf png qt4 sdl svg tiff truetype xine zlib -debug -examples -fltk -fox -gdal -glut -itk -openinventor -osgapps -static-libs -vnc -wxwidgets -xrandr"
Comment 5 Maciej Mrozowski gentoo-dev 2011-10-17 16:28:32 UTC
(In reply to comment #3)
> I have seen this build failure too, trying to rebuild flightgear after
> upgrading to openscenegraph-3.0.1
> 
> Thanks to the bump to flightgear-2.4.0 the build now worked, but only after
> downgrading from subversion-1.7.0 to subversion-1.6.17-r7.

Maybe it's worth using command line svn over libsvn apr connector afterall...
Comment 6 Maciej Mrozowski gentoo-dev 2011-10-19 18:16:12 UTC
Hmm, can we forget about 2.0.0 and drop it in favour of 2.4?
Comment 7 Martin von Gagern 2011-10-20 06:02:13 UTC
(In reply to comment #6)
> Hmm, can we forget about 2.0.0 and drop it in favour of 2.4?

Fine with me. And as 2.0.0 wasn't stable on any arch either, there should be noone complaining about loss of a stable version either.
Comment 8 Maciej Mrozowski gentoo-dev 2012-08-28 00:04:53 UTC
2.0.0 now gone.