Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398297 - games-simulation/flightgear-2.4.0 --as-needed problem
Summary: games-simulation/flightgear-2.4.0 --as-needed problem
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2012-01-09 21:17 UTC by Maciej Mrozowski
Modified: 2014-12-01 10:44 UTC (History)
4 users (show)

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 Maciej Mrozowski gentoo-dev 2012-01-09 21:17:55 UTC
As reported by Mark Elkins

"flightgear-2.4.0 which was building just fine now dies with...


x86_64-pc-linux-gnu-g++ -DPKGDATADIR=\"/usr/share/games/flightgear\"
-march=native -O2 -pipe -fomit-frame-pointer -msse4 -msse4.1 -msse4.2
-mmmx -mfpmath=sse -mno-avx -Wall -D_REENTRANT    -Wl,-O1
-Wl,--as-needed -L/usr/local/lib -o fgviewer fgviewer.o -lsgtgdb
-lsgmaterial -lsgmodel -lsgbvh -lsgutil -lsgio -lsgbucket -lsgmath
-lsgprops -lsgdebug -lsgmisc -lsgxml -lsgstructure -lplibul  -lglut
-lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lrt -ldl -lm
-lpthread  -lz -losgFX -losgParticle -losgSim -losgViewer -losgGA
-losgText -losgDB -losgUtil -losg -lOpenThreads -ljpeg 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libosg.a(Timer.o): In function `osg::Timer::tick() const':
(.text+0xd): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [fgviewer] Error 1



 I assume that the library order needs to be changed - as
`clock_gettime' is in '-lrt' ???

Adding it (-lrt) again at the end (of the command to compile) compiles
this just fine!


Just don't have the savvy to actually modify code."
Comment 1 Maciej Mrozowski gentoo-dev 2014-08-13 00:28:33 UTC
@mje
Can you reproduce with flighgear-3.0.0?
Comment 2 Pacho Ramos gentoo-dev 2014-12-01 10:44:23 UTC
(I cannot reproduce)