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

Bug 195664

Summary: openoffice-2.3.0 -finline-functions optimization
Product: Gentoo Linux Reporter: Keef Aragon <keef>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic-t-586427.html?sid=09253151185e6f990980367e69597c0a
Whiteboard:
Package list:
Runtime testing required: ---

Description Keef Aragon 2007-10-12 22:23:14 UTC
compiling on amd64 building of OO.o fails if the -finline-functions CFLAG (probably CXXFLAGS as the undefined references are to C++ templates) is specified.  The link is from the German Gentoo forums.


Reproducible: Always

Steps to Reproduce:
1. add -finline-functions to /etc/make.conf CXXFLAGS
2. emerge openoffice

Actual Results:  
../unxlngx6.pro/slo/image.o: In function `SbiImage::Load(SvStream&, unsigned int&)':
image.cxx:(.text+0x7b9): undefined reference to `PCodeBuffConvertor<unsigned short, unsigned int>::convert()'
image.cxx:(.text+0x7c3): undefined reference to `PCodeBuffConvertor<unsigned short, unsigned int>::convert()'
../unxlngx6.pro/slo/image.o: In function `SbiImage::Save(SvStream&, unsigned int)':
image.cxx:(.text+0x1554): undefined reference to `PCodeBuffConvertor<unsigned int, unsigned short>::convert()'
image.cxx:(.text+0x155e): undefined reference to `PCodeBuffConvertor<unsigned int, unsigned short>::convert()'
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngx6.pro/lib/libsb680lx.so'
---* tg_merge.mk *--- 

Expected Results:  
successful compile

Fixed by adding 

    filter-flags "-finline-functions"

among the other filters in the ebuild... to state the obvious.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-13 07:37:45 UTC

*** This bug has been marked as a duplicate of bug 151869 ***