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

Bug 229961

Summary: media-libs/paragui-1.1.8 fails to build with gcc 4.3.1
Product: Gentoo Linux Reporter: Petr Behan <petr.behan>
Component: [OLD] GCC PortingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: patch for gcc4.3

Description Petr Behan 2008-06-28 23:46:24 UTC
paragui fails to compile, issues several errors about "ISO C++ forbids declaration of ‘hash_map’ with no type", and later (when worked around) about strlen not being part of std::

Patch to fix

Reproducible: Always

Steps to Reproduce:
1. select gcc-4.3.1 as system compiler
2. run emerge paragui

Actual Results:  
fails with:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from themeloader.cpp:32:
theme_priv.h:130: error: ISO C++ forbids declaration of ‘hash_map’ with no type
theme_priv.h:130: error: typedef name may not be a nested-name-specifier
theme_priv.h:130: error: expected ‘;’ before ‘<’ token
theme_priv.h:131: error: ISO C++ forbids declaration of ‘hash_map’ with no type
theme_priv.h:131: error: typedef name may not be a nested-name-specifier
theme_priv.h:131: error: expected ‘;’ before ‘<’ token
theme_priv.h:132: error: ISO C++ forbids declaration of ‘hash_map’ with no type
theme_priv.h:132: error: typedef name may not be a nested-name-specifier
theme_priv.h:132: error: expected ‘;’ before ‘<’ token
theme_priv.h:139: error: ‘MAP_FILENAME’ does not name a type
theme_priv.h:140: error: ‘MAP_GRADIENT’ does not name a type
theme_priv.h:141: error: ‘MAP_PROPERTY’ does not name a type
theme_priv.h:156: error: ISO C++ forbids declaration of ‘hash_map’ with no type
theme_priv.h:156: error: typedef name may not be a nested-name-specifier
theme_priv.h:156: error: expected ‘;’ before ‘<’ token
theme_priv.h:161: error: ‘MAP_OBJECT’ does not name a type
theme_priv.h:199: error: ISO C++ forbids declaration of ‘hash_map’ with no type
theme_priv.h:199: error: typedef name may not be a nested-name-specifier
theme_priv.h:199: error: expected ‘;’ before ‘<’ token
theme_priv.h:204: error: ‘MAP_WIDGET’ does not name a type
themeloader.cpp: In function ‘void parseWidgetProps(PARSE_INFO*, const XML_Char*, const XML_Char**)’:
themeloader.cpp:132: error: ‘class THEME_THEME’ has no member named ‘widget’

(more lines like that follow)

Expected Results:  
successfull emerge

Portage 2.2_rc1 (default-linux/x86/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r4-i686-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-glibc2.0
Timestamp of tree: Sat, 28 Jun 2008 17:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -fomit-frame-pointer -mtune=nocona -march=nocona -pipe"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -fomit-frame-pointer -mtune=nocona -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.mirror.web4u.cz http://gentoo.inode.at"
LC_ALL="en_US.UTF8"
LDFLAGS=""
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/nouveau /usr/portage/local/manual"
SYNC="rsync://krtek/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi alsa arts artswrappersuid asf berkdb bzip2 cairo cdr cli cracklib crypt cups cxx dbus devil divx dri dv dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg fftw firefox flac fontconfig fortran gdbm gif glitz glut gpm gstreamer gtk hal iconv imagemagick ipw3945 isdnlog java5 jpeg kde kdeenablefinal kdehiddenvisibility lame laptop libcaca libsamplerate lm_sensors lzo mad matroska midi mikmod mmap mmext mmx modplug mp3 mp4 mpeg mplayer mtrr mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl pmu png ppds pppd pyste python qt3 qt3support qt4 quicktime readline real realmedia reflection samba sdl session slang sndfile sox spell spl sqlite3 sse sse2 ssl ssse3 subversion svg taglib tcpd theora threads tiff truetype unicode vcd vim-syntax vorbis win32codecs wmf wmp wxwindows x264 x86 xcb xcomposite 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 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vmware nvidia nouveau vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petr Behan 2008-06-28 23:52:43 UTC
Created attachment 158827 [details, diff]
patch for gcc4.3

proposed patch to fix compilation issues for gcc 4.3+. Verified that it doesn't break compilation on 3.4.6 and 4.1.2
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-29 09:39:08 UTC
+  29 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/paragui-1.1.8-gcc43.patch, paragui-1.1.8.ebuild:
+  Fix for gcc-4.3, bug #229961. Thanks to Petr Behan <petr.behan@seznam.cz>.
+