Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355647 - sys-apps/groff-1.20.1-r3 uclibc/ppc/hardened - div.cpp:(.gnu.linkonce.t._ZN15extra_size_nodeD1Ev+0x3c): undefined reference to `node::~node()'
Summary: sys-apps/groff-1.20.1-r3 uclibc/ppc/hardened - div.cpp:(.gnu.linkonce.t._ZN15...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-20 02:01 UTC by Tom Lloyd
Modified: 2011-03-16 19:12 UTC (History)
1 user (show)

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


Attachments
Full build log (build.log,34.33 KB, text/plain)
2011-02-20 02:01 UTC, Tom Lloyd
Details
Modified version of groff-1.20.1-Thtml-mem-leak.patch that works with gcc-3.4.6 (groff-1.20.1-Thtml-mem-leak.patch,1.93 KB, patch)
2011-03-15 23:04 UTC, Mark Wagner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Lloyd 2011-02-20 02:01:16 UTC
groff-1.20.1-r3 fails to compile, whereas the slightly earlier groff-1.20.1-r1 compiles fine, on my uclibc/ppc/hardened machine.  Checking the diff between the two ebuilds, other than some Japanese language support there are only 3 patches in it, so the issue has to be there somewhere.  I'm aware of bug 351513 about groff not compiling on older gcc, but that bug's WONTFIX resolution shouldn't apply here: I have to use gcc-3.4.6 because 4x apparently doesn't support hardening on my platform.


Reproducible: Always

Steps to Reproduce:
emerge =sys-apps/groff-1.20.1-r3


Actual Results:  
<snip>

powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  pic.cpp
div.o: In function `extra_size_node::~extra_size_node()':
div.cpp:(.gnu.linkonce.t._ZN15extra_size_nodeD1Ev+0x3c): undefined reference to `node::~node()'
div.o: In function `extra_size_node::~extra_size_node()':
div.cpp:(.gnu.linkonce.t._ZN15extra_size_nodeD0Ev+0x44): undefined reference to `node::~node()'
div.o: In function `vertical_size_node::~vertical_size_node()':
div.cpp:(.gnu.linkonce.t._ZN18vertical_size_nodeD1Ev+0x3c): undefined reference to `node::~node()'
div.o: In function `vertical_size_node::~vertical_size_node()':
div.cpp:(.gnu.linkonce.t._ZN18vertical_size_nodeD0Ev+0x44): undefined reference to `node::~node()'
input.o: In function `non_interpreted_char_node::non_interpreted_char_node(unsigned char)':
input.cpp:(.text+0x1e28): undefined reference to `node::~node()'
input.o:input.cpp:(.text+0x1efc): more undefined references to `node::~node()' follow
collect2: ld returned 1 exit status
distcc[19156] ERROR: compile (null) on localhost failed
make[2]: *** [troff] Error 1
make[2]: Leaving directory `/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/roff/troff'
make[1]: *** [src/roff/troff] Error 2
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  lex.cpp
make[1]: *** Waiting for unfinished jobs....
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  main.cpp
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  object.cpp
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  common.cpp
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  troff.cpp
powerpc-gentoo-linux-uclibc-g++ -I. -I. -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -I/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/include -DHAVE_CONFIG_H -O2 -mcpu=603e -pipe  -c  tex.cpp
Making pic.n from pic.man
powerpc-gentoo-linux-uclibc-g++ -O2 -mcpu=603e -pipe -Wl,-z,relro -o pic pic.o lex.o main.o object.o common.o troff.o tex.o /mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/libs/libgroff/libgroff.a   -lm
make[2]: Leaving directory `/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1/src/preproc/pic'
make[1]: Leaving directory `/mnt/spare/portage/sys-apps/groff-1.20.1-r3/work/groff-1.20.1'
make: *** [all] Error 2
emake failed




Portage 2.1.9.25 (uclibc/ppc/hardened, gcc-3.4.6, uclibc-0.9.30.1-r1, 2.6.28-hardened-r9-muttley-3-wifi ppc)
=================================================================
System uname: Linux-2.6.28-hardened-r9-muttley-3-wifi-ppc-G2_LE-with-gentoo-1.12.14
Timestamp of tree: Fri, 18 Feb 2011 13:15:01 +0000
distcc 3.1 powerpc-gentoo-linux-uclibc [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-gentoo-linux-uclibc"
CFLAGS="-O2 -mcpu=603e -pipe"
CHOST="powerpc-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=603e -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-z,relro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/spare"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman"
SYNC="rsync://splig/gentoo-portage"
USE="alsa apache2 bzip2 cgi cli cracklib crypt cxx dri embedded fastcgi hardened ipv6 modules mudflap mysql ncurses offensive openmp pcre perl php pic ppc python quotas readline samba session sni sqlite ssl ssp suhosin syslog tcpd uclibc uclibc-compat unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_http dav dav_fs auth_digest" APACHE2_MPMS="prefork" CAMERAS="sq905" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tom Lloyd 2011-02-20 02:01:37 UTC
Created attachment 263113 [details]
Full build log
Comment 2 Mark Wagner 2011-03-15 23:04:29 UTC
Created attachment 266057 [details, diff]
Modified version of groff-1.20.1-Thtml-mem-leak.patch that works with gcc-3.4.6

The problem was introduced in 1.20.1-r3 with the patch groff-1.20.1-Thtml-mem-leak.patch.  Removing the "inline" keyword from node::~node() in that patch allows groff to compile.
Comment 3 SpanKY gentoo-dev 2011-03-15 23:36:54 UTC
so it's only a problem with gcc-3.4.x ?  sounds like this is a WONTFIX then.
Comment 4 Tom Lloyd 2011-03-16 15:49:43 UTC
Is the profile I'm on becoming unsupported for my platform then?  If so then I'll have to make arrangements to move away from it, but if not then this bug shouldn't be WONTFIX, because the profile itself masks off any newer versions of GCC.  Something about them not supporting Hardening on PPC?

The problem is the hardened uclibc profile on ppc appears to be in a sort of limbo - it's there, so it should be supported, but it looks increasingly like nobody wants to do the job.  Shouldn't it just be removed if nobody can/will maintain it?
Comment 5 SpanKY gentoo-dev 2011-03-16 19:12:11 UTC
i dont know why you think gcc-4.x isnt supported.  from your own output:
sys-devel/gcc:       3.4.6-r2, 4.3.4

you need to run `gcc-config` yourself to select a gcc version