Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53501 - bzflag-1.10.6.20040515(-r1) fails to build
Summary: bzflag-1.10.6.20040515(-r1) fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-10 03:22 UTC by Joerg Schaible
Modified: 2004-06-10 14:46 UTC (History)
0 users

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


Attachments
bzflag-1.10.6.20040515-r1.ebuild.diff (bzflag-1.10.6.20040515-r1.ebuild.diff,351 bytes, patch)
2004-06-10 03:23 UTC, Joerg Schaible
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2004-06-10 03:22:18 UTC
C++ code seems not properly separated and relies on exported inline functions causing unreferenced symbols.
Build bzflag filtering -fno-default-inline-flag works fine. Apply attached patch.

g++ -DBUILDING_BZADMIN -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer -foptimize-sibling-calls -fprefetch-loop-arrays -falign-functions=32 -fno-default-inline -O2 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions  -L/usr/X11R6/lib -o bzadmin ../date/buildDate.o AutoCompleter.o BZAdminClient.o CursesUI.o CursesMenu.o OptionParser.o ServerLink.o StdBothUI.o StdInUI.o StdOutUI.o UIMap.o bzadmin.o -lncurses ../net/libNet.a ../common/libCommon.a -lm
ServerLink.o(.gnu.linkonce.t._ZN9SceneNode9glColor3fEfff+0x1c): In function `SceneNode::glColor3f(float, float, float)':
: undefined reference to `SceneNode::color3f'
ServerLink.o(.gnu.linkonce.t._ZN9SceneNode9glColor4fEffff+0x24): In function `SceneNode::glColor4f(float, float, float, float)':
: undefined reference to `SceneNode::color4f'
ServerLink.o(.gnu.linkonce.t._ZN9SceneNode10glColor3fvEPKf+0xc): In function `SceneNode::glColor3fv(float const*)':
: undefined reference to `SceneNode::color3fv'
ServerLink.o(.gnu.linkonce.t._ZN9SceneNode10glColor4fvEPKf+0xc): In function `SceneNode::glColor4fv(float const*)':
: undefined reference to `SceneNode::color4fv'
ServerLink.o(.gnu.linkonce.t._ZN9SceneNode10setStippleEf+0xc): In function `SceneNode::setStipple(float)':
: undefined reference to `SceneNode::stipple'
ServerLink.o(.gnu.linkonce.t._ZN13FlagSceneNode14FlagRenderNode11getPositionEv+0xc): In function `FlagSceneNode::FlagRenderNode::getPosition()':
: undefined reference to `SceneNode::getSphere() const'
ServerLink.o(.gnu.linkonce.t._ZN18EighthDimSceneNode19EighthDimRenderNode11getPositionEv+0xc): In function `EighthDimSceneNode::EighthDimRenderNode::getPosition()':
: undefined reference to `SceneNode::getSphere() const'
collect2: ld returned 1 exit status
make[2]: *** [bzadmin] Error 1
make[2]: Leaving directory `/volatile/portage/bzflag-1.10.6.20040515-r1/work/bzflag-1.10.6.20040515/src/bzadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/volatile/portage/bzflag-1.10.6.20040515-r1/work/bzflag-1.10.6.20040515/src'
make: *** [all-recursive] Error 1

!!! ERROR: games-action/bzflag-1.10.6.20040515-r1 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1. CXXFLAGS=-fno-default-inline emerge bzflag
Comment 1 Joerg Schaible 2004-06-10 03:23:06 UTC
Created attachment 33020 [details, diff]
bzflag-1.10.6.20040515-r1.ebuild.diff

patch for ebuild
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-06-10 14:46:35 UTC
Ok.  Fixed in CVS.  Thanks for the patch and bug report.