Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271229 - =dev-util/cppunit-1.12.0 (and =dev-util/cppunit-1.12.1) configure misreports that sys-devel/gcc:4.3 is unable to demangle c++ symbols
Summary: =dev-util/cppunit-1.12.0 (and =dev-util/cppunit-1.12.1) configure misreports ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-25 18:42 UTC by Duncan Exon Smith
Modified: 2010-01-02 21:58 UTC (History)
0 users

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


Attachments
adds <malloc.h> to config/ax_cxx_gcc_abi_demangle.m4 (cppunit-1.12.0-add_configure_missing_include.patch,312 bytes, patch)
2009-05-25 18:46 UTC, Duncan Exon Smith
Details | Diff
adds <malloc.h> not only to the autoconf test but also to the source file that uses <cxxabi.h> (cppunit-1.12.0-add_configure_missing_include.patch,578 bytes, patch)
2009-05-25 20:07 UTC, Duncan Exon Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Exon Smith 2009-05-25 18:42:18 UTC
After upgrading to sys-devel/gcc:4.3 and rebuilding =dev-util/cppunit-1.12.0, cppunit is unable to demangle the source symbols.  This is because the configure macro 'config/ax_cxx_gcc_abi_demangle.m4' fails to include malloc.h.

Reproducible: Always

Steps to Reproduce:
1. ebuild /usr/portage/dev-util/cppunit-1.12.0.ebuild unpack
2. cd /var/tmp/portage/dev-util/cppunit-1.12.0-r1/work/cppunit-1.12.0
3. ./configure 2>/dev/null | grep demangling

Actual Results:  
checking whether the compiler supports GCC C++ ABI name demangling... no


Expected Results:  
checking whether the compiler supports GCC C++ ABI name demangling... yes


<malloc.h> is missing from config/ax_cxx_gcc_abi_demangle.m4.  This wasn't required in sys-devel/gcc:4.1, so the configure script used to work.  I'll attach a patch that fixes it.

I have not (yet) filed a bug upstream.
Comment 1 Duncan Exon Smith 2009-05-25 18:46:13 UTC
Created attachment 192433 [details, diff]
adds <malloc.h> to config/ax_cxx_gcc_abi_demangle.m4

Here's a patch to fix ./configure, adding a missing include to the test macro.
Comment 2 Duncan Exon Smith 2009-05-25 19:02:37 UTC
I added it upstream:
 https://sourceforge.net/tracker/?func=detail&aid=2796543&group_id=11795&atid=111795
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-05-25 19:05:42 UTC
please always include emerge --info and top most build error.
Comment 4 Duncan Exon Smith 2009-05-25 19:39:29 UTC
(In reply to comment #3)
> please always include emerge --info and top most build error.
> 

I'll add my emerge --info below, although I suspect that it's irrelevant.

There is no build error.  Perhaps I was unclear... the package installs, but is misconfigured by autoconf because of a bug in an autoconf script.

Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5-vennsa-dev-em64t x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-vennsa-dev-em64t-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.66GHz-with-gentoo-2.0.0
Timestamp of tree: Thu, 21 May 2009 16:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/opt/gentoo-portage/distfiles"
FEATURES="autoaddcvs buildpkg distlocks fixpackages multilib parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/source/ http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en_CA en_GB en zh zh_TW zh_CN"
MAKEOPTS="-j5"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/local/vennsa/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo calendar cdr cli cracklib crypt cscope cups curl curlwrappers dbus dga directfb doc dri dvd dvdr dvdread eds emacs emboss encode esd evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif gmp gnutls gpm graphviz gstreamer gtk gtk2 hal iconv idn ieee1394 imagemagick imap imlib ipod ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdexdeltas kerberos latex ldap leim libnotify m17n-lib mad midi mikmod mime mmx mng motif mp3 mpeg mpg mpi mplayer msn mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ofx ogg openexr opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts unicode usb vhosts vim-syntax vorbis wmf x264 xcomposite xface xine xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en_GB en zh zh_TW zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia radeon vesa vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Duncan Exon Smith 2009-05-25 20:07:19 UTC
Created attachment 192437 [details, diff]
adds <malloc.h> not only to the autoconf test but also to the source file that uses <cxxabi.h> 

Oops... the previous patch caused a compile error.  This one fixes the autoconf script and also the source.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-01-02 21:58:52 UTC
+  02 Jan 2010; Samuli Suominen <ssuominen@gentoo.org> cppunit-1.12.1.ebuild,
+  +files/cppunit-1.12.1-add_missing_include.patch:
+  Fix missing include with GCC 4.3+ wrt #271229 by Duncan Smith. Remove
+  deprecated USE="qt3".