Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229961 - media-libs/paragui-1.1.8 fails to build with gcc 4.3.1
Summary: media-libs/paragui-1.1.8 fails to build with gcc 4.3.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Blocks: gcc-4.3
  Show dependency tree
Reported: 2008-06-28 23:46 UTC by Petr Behan
Modified: 2008-06-29 09:39 UTC (History)
0 users

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

patch for gcc4.3 (paragui_gcc43.patch,752 bytes, patch)
2008-06-28 23:52 UTC, Petr Behan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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-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
CFLAGS="-O3 -fomit-frame-pointer -mtune=nocona -march=nocona -pipe"
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"
FEATURES="collision-protect distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/nouveau /usr/portage/local/manual"
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"
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 <>
+  +files/paragui-1.1.8-gcc43.patch, paragui-1.1.8.ebuild:
+  Fix for gcc-4.3, bug #229961. Thanks to Petr Behan <>.