Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 90827

Summary: emerge system fails on ncurses-5.4-r6 when CXXFLAGS contains -fno-implicit-templates
Product: Gentoo Linux Reporter: Martin 'The Bishop' Scheffler <the_bishop>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin 'The Bishop' Scheffler 2005-04-29 00:47:38 UTC
The link process of the "demo" program seems to rely on symbol definitions which are left out when -fno-implicit-templates is set in CXXFLAGS.


Reproducible: Always
Steps to Reproduce:
1. put "-fno-implicit-templates" into CXXFLAGS at /etc/make.conf
2. USE="-nocxx" emerge ncurses

Actual Results:  
...

i686-pc-linux-gnu-g++  -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib -
lform -lmenu -lpanel -lncurses -ldl  -Wl,-rpath,/var/tmp/portage/ncurses-5.4.
20050319/work/narrowc/lib  -I../c++ -I../include -I/var/tmp/portage/ncurses-5.4.
20050319/work/ncurses-5.4/c++ -DHAVE_CONFIG_H -I/var/tmp/portage/ncurses-5.4.
20050319/work/ncurses-5.4/c++/../include -I. -I../include  -D_GNU_SOURCE -
DNDEBUG -march=pentium3 -mtune=pentium3 -mmmx -msse -mfpmath=sse,387 -g0 -O2 -
pipe -fomit-frame-pointer -fno-stack-protector -fprefetch-loop-arrays -ffast-
math -fno-rtti -fno-implicit-templates -fPIC
../obj_s/demo.o(.gnu.linkonce.t._ZN6MyMenuC1Ev+0x427): In function `MyMenu::
MyMenu()':
: undefined reference to `vtable for NCursesUserItem<UserData>'
../obj_s/demo.o(.gnu.linkonce.t._ZN6MyMenuC1Ev+0x451): In function `MyMenu::
MyMenu()':
: undefined reference to `vtable for MyAction<UserData>'
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4.20050319/work/narrowc/
c++'
make: *** [all] Error 2


Expected Results:  
compile without error


it seems the implicit templates carry some information, which is needed to 
succeed.
Comment 1 Martin 'The Bishop' Scheffler 2005-04-29 00:52:21 UTC

*** This bug has been marked as a duplicate of 90819 ***
Comment 2 Martin 'The Bishop' Scheffler 2005-04-29 01:00:01 UTC
sorry folks, my browser crashed.