<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>229961</bug_id>
          
          <creation_ts>2008-06-28 23:46 0000</creation_ts>
          <short_desc>media-libs/paragui-1.1.8 fails to build with gcc 4.3.1</short_desc>
          <delta_ts>2008-06-29 09:39:08 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>198121</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>petr.behan@seznam.cz</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>petr.behan@seznam.cz</who>
            <bug_when>2008-06-28 23:46:24 0000</bug_when>
            <thetext>paragui fails to compile, issues several errors about &quot;ISO C++ forbids declaration of ‘hash_map’ with no type&quot;, 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 ‘&lt;’ 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 ‘&lt;’ 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 ‘&lt;’ 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 ‘&lt;’ 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 ‘&lt;’ 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=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O3 -fomit-frame-pointer -mtune=nocona -march=nocona -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-O3 -fomit-frame-pointer -mtune=nocona -march=nocona -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;collision-protect distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo http://gentoo.mirror.web4u.cz http://gentoo.inode.at&quot;
LC_ALL=&quot;en_US.UTF8&quot;
LDFLAGS=&quot;&quot;
MAKEOPTS=&quot;-j9&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/tmp/portage&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/mozilla /usr/portage/local/layman/nouveau /usr/portage/local/manual&quot;
SYNC=&quot;rsync://krtek/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; APACHE2_MPMS=&quot;prefork&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vmware nvidia nouveau vesa fbdev&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petr.behan@seznam.cz</who>
            <bug_when>2008-06-28 23:52:43 0000</bug_when>
            <thetext>Created an attachment (id=158827)
patch for gcc4.3

proposed patch to fix compilation issues for gcc 4.3+. Verified that it doesn&apos;t break compilation on 3.4.6 and 4.1.2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-06-29 09:39:08 0000</bug_when>
            <thetext>+  29 Jun 2008; Peter Alfredsen &lt;loki_val@gentoo.org&gt;
+  +files/paragui-1.1.8-gcc43.patch, paragui-1.1.8.ebuild:
+  Fix for gcc-4.3, bug #229961. Thanks to Petr Behan &lt;petr.behan@seznam.cz&gt;.
+
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>158827</attachid>
            <date>2008-06-28 23:52 0000</date>
            <desc>patch for gcc4.3</desc>
            <filename>paragui_gcc43.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGluY2x1ZGUvcGFyYWd1aS5oLm9sZAkyMDA0LTA0LTE3IDIyOjM5OjA3LjAwMDAwMDAwMCAr
MDIwMAorKysgaW5jbHVkZS9wYXJhZ3VpLmgJMjAwOC0wNi0yOSAwMDo1ODo0NS4wMDAwMDAwMDAg
KzAyMDAKQEAgLTY1LDYgKzY1LDEzIEBACiAjaW5jbHVkZSAicGFyYWNvbmZpZ19nbnUuaCIKICNl
bmRpZgogCisjaWYgUEdfVkVSU0lPTk5VTShfX0dOVUNfXywgX19HTlVDX01JTk9SX18sIDApID49
IFBHX1ZFUlNJT05OVU0oNCwgMywgMCkKKyN1bmRlZiBIQVZFX0hBU0hfTUFQCisjaWZuZGVmIEhB
VkVfRVhUX0hBU0hfTUFQCisjZGVmaW5lIEhBVkVfRVhUX0hBU0hfTUFQCisjZW5kaWYKKyNlbmRp
ZgorCiAvLwogLy8gU1RMIG1hcCAvIGhhc2hfbWFwCiAvLwotLS0gc3JjL2NvcmUvcGdmaWxlYXJj
aGl2ZS5jcHAub2xkCTIwMDQtMDMtMTMgMTQ6NDU6NDQuMDAwMDAwMDAwICswMTAwCisrKyBzcmMv
Y29yZS9wZ2ZpbGVhcmNoaXZlLmNwcAkyMDA4LTA2LTI5IDAwOjU5OjI3LjAwMDAwMDAwMCArMDIw
MApAQCAtMTAwLDcgKzEwMSw3IEBACiAJY29uc3QgY2hhciogc2VwID0gR2V0RGlyU2VwYXJhdG9y
KCk7CiAJc3RkOjpzdHJpbmc6OnNpemVfdHlwZSBwb3MgPSAwLCBpbmNyOwogCW5ld3BhdGggPSBu
ZXcgc3RkOjpzdHJpbmcocGF0aCk7Ci0JaW5jciA9IHN0ZDo6c3RybGVuKHNlcCk7CisJaW5jciA9
IHN0cmxlbihzZXApOwogCWlmKGluY3IgPT0gMSAmJiBzZXBbMF0gPT0gJy8nKQogCQlyZXR1cm4g
bmV3cGF0aDsKIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>