<?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>118858</bug_id>
          
          <creation_ts>2006-01-13 02:17 0000</creation_ts>
          <short_desc>rpm-4.2.r1 fails to emerge with gcc4</short_desc>
          <delta_ts>2006-06-05 02:17:23 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>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>117482</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>argasek@gmail.com</reporter>
          <assigned_to>maintainer-needed@gentoo.org</assigned_to>
          <cc>garen@wsu.edu</cc>
    
    <cc>mail@eliasprobst.eu</cc>

      

      
          <long_desc isprivate="0">
            <who>argasek@gmail.com</who>
            <bug_when>2006-01-13 02:17:03 0000</bug_when>
            <thetext>Here&apos;s the error message generated. I guess it&apos;s related with GCC 4.0.2 being used.

(...)
make[3]: Entering directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2/python&apos;
source=&apos;rpmmodule.c&apos; object=&apos;rpmmodule.lo&apos; libtool=yes \
depfile=&apos;.deps/rpmmodule.Plo&apos; tmpdepfile=&apos;.deps/rpmmodule.TPlo&apos; \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I../rpmdb -I../rpmio -I../beecrypt -I../popt -I/usr/include/python2.4 -I../zlib -O2 -march=athlon-4 -pipe -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c -o rpmmodule.lo `test -f &apos;rpmmodule.c&apos; || echo &apos;./&apos;`rpmmodule.c
mkdir .libs
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I../rpmdb -I../rpmio -I../beecrypt -I../popt -I/usr/include/python2.4 -I../zlib -O2 -march=athlon-4 -pipe -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmmodule.c -MT rpmmodule.lo -MD -MP -MF .deps/rpmmodule.TPlo -fPIC -DPIC -o .libs/rpmmodule.lo
In file included from /usr/include/python2.4/Python.h:8,
from rpmmodule.c:7:
/usr/include/python2.4/pyconfig.h:838:1: warning: &quot;_POSIX_C_SOURCE&quot; redefined
In file included from /usr/include/sys/types.h:27,
from ../system.h:12,
from rpmmodule.c:5:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
In file included from ../rpmio/rpmio_internal.h:9,
from rpmmodule.c:13:
../rpmio/rpmio.h:582: warning: type qualifiers ignored on function return type
In file included from ../lib/rpmlib.h:12,
from ../lib/rpmcli.h:8,
from rpmmodule.c:14:
../popt/popt.h:447: warning: type qualifiers ignored on function return type
In file included from ../lib/rpmcli.h:8,
from rpmmodule.c:14:
../lib/rpmlib.h:1024: warning: type qualifiers ignored on function return type
In file included from rpmmodule.c:15:
../rpmdb/rpmdb.h:481: warning: type qualifiers ignored on function return type
In file included from rpmfi-py.h:4,
from rpmmodule.c:27:
../lib/rpmfi.h:537: warning: type qualifiers ignored on function return type
rpmmodule.c: In function &apos;initrpm&apos;:
rpmmodule.c:210: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:213: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:216: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:219: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:225: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:228: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:231: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:234: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:237: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:240: warning: dereferencing type-punned pointer will break strict-aliasing rules
rpmmodule.c:266: error: invalid lvalue in assignment
make[3]: *** [rpmmodule.lo] B&amp;#322;&amp;#261;d 1
make[3]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2/python&apos;
make[2]: *** [all-recursive] B&amp;#322;&amp;#261;d 1
make[2]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2/python&apos;
make[1]: *** [all-recursive] B&amp;#322;&amp;#261;d 1
make[1]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2&apos;
make: *** [all] B&amp;#322;&amp;#261;d 2 


emerge --info:
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-ck1 i686)
=================================================================
System uname: 2.6.15-ck1 i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.0_pre13
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-4 -momit-leaf-frame-pointer -mfpmath=sse,387 -pipe -fomit-frame-pointer -fno-ident -fweb -ftracer -fforce-addr -ffast-math -DNDEBUG -DG_DISABLE_ASSERT &quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon-4 -momit-leaf-frame-pointer -mfpmath=sse,387 -pipe -fomit-frame-pointer -fno-ident -fweb -ftracer -fforce-addr -ffast-math -DNDEBUG -DG_DISABLE_ASSERT  -fvisibility-inlines-hidden&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks fixpackages sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.po.opole.pl&quot;
LANG=&quot;pl_PL&quot;
LC_ALL=&quot;pl_PL&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Bdirect&quot;
LINGUAS=&quot;pl&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/src/ebuilds&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 16bit 3dnow 3dnowext 7zip X a52 aac acpi alsa arts artswrappersuid audiofile avi bash-completion bdf berkdb bluetooth bmp bzip2 c++ cairo cddb cdparanoia cdr crypt cups dbus dbx dga dio djvu dri dts dv dvd dvdr dvdread encode exif expat extraicons extramodules extras fam fbcon ffmpeg fftw firefox flac font-server fontconfig foomaticdb fortran ftp fuse gd gdbm gif gimp glitz glut glx gmp gnutls gphoto2 gstreamer gtk gtk2 hal hpn iconv idea idn imlib inkjar insecure-savers irda jabber jack jack-tmpfs java jbig jp2 jpeg jpeg2k justify kde kdeenablefinal kdexdeltas lapack lcms lesstif libg++ live lm_sensors lzo lzw mad matroska mikmod mime mjpeg mmap mmx mmxext mng motif moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer musepack musicbrainz nas ncurses network nfs nls no-old-linux nptl nsplugin ntfs ntlm ogg oggvorbis openal openexr opengl openssl pcre pdflib perl perlsuid pic plugin png posix python qt quicktime readline real reiserfs rtc samba sblive scanner sdl sensord sharedmem shorten slang speex sse sse-filters ssl svg svga svgz sysvipc tetex tga theora threads tiff tlen truetype truetype-fonts type1 type1-fonts udev unicode usb utf8 vcd vidix vim-with-x vorbis win32codecs wma wma123 wmf xanim xinerama xml2 xprint xrandr xv xvid xvmc yv12 zlib elibc_glibc kernel_linux linguas_pl userland_GNU&quot;
Unset:  ASFLAGS, CTARGET</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>simon.strandman@telia.com</who>
            <bug_when>2006-01-13 04:31:10 0000</bug_when>
            <thetext>Importing the latest rpm release, 4.4.2, will probably fix it. Fedora had a gcc4 patch for 4.4.1 but it was probably merged.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>simon.strandman@telia.com</who>
            <bug_when>2006-01-13 04:32:43 0000</bug_when>
            <thetext>Correction: 4.4.4 is the latest release.

ftp://wraptastic.org/pub/rpm-4.4.x/rpm-4.4.4.tar.gz</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2006-01-15 21:04:34 0000</bug_when>
            <thetext>Created an attachment (id=77228)
rpm-4.2-gcc-4.patch

here&apos;s a patch to fix compilation of rpm-4.2 with gcc 4.0 and 4.1.  i backported some fixes from the 4.4.4 release and from the 4.4.1 gcc patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-01-28 17:50:57 0000</bug_when>
            <thetext>Fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-05-30 12:36:15 0000</bug_when>
            <thetext>*** Bug 134953 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-05 02:17:23 0000</bug_when>
            <thetext>*** Bug 135598 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77228</attachid>
            <date>2006-01-15 21:04 0000</date>
            <desc>rpm-4.2-gcc-4.patch</desc>
            <filename>rpm-4.2-gcc-4.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHJwbS00LjItb3JpZy9weXRob24vaGVhZGVyLXB5LmMJMjAwNi0wMS0xNSAyMjoxMjo0NS4w
MDAwMDAwMDAgLTA2MDAKKysrIHJwbS00LjIvcHl0aG9uL2hlYWRlci1weS5jCTIwMDYtMDEtMTUg
MjI6MTM6NDQuMDAwMDAwMDAwIC0wNjAwCkBAIC00MzQsNyArNDM0LDcgQEAKIAl3aGlsZSAoZXh0
ZW5zaW9ucy0+bmFtZSkgewogCSAgICBpZiAoZXh0ZW5zaW9ucy0+dHlwZSA9PSBIRUFERVJfRVhU
X1RBRwogCQkmJiAheHN0cmNhc2VjbXAoZXh0ZW5zaW9ucy0+bmFtZSArIDcsIHN0cikpIHsKLQkJ
KGNvbnN0IHN0cnVjdCBoZWFkZXJTcHJpbnRmRXh0ZW5zaW9uICopIGV4dCA9IGV4dGVuc2lvbnM7
CisJCWV4dCA9IGV4dGVuc2lvbnM7CiAJICAgIH0KIAkgICAgZXh0ZW5zaW9ucysrOwogCX0KZGlm
ZiAtTmF1ciBycG0tNC4yLW9yaWcvcHl0aG9uL3JwbW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fcnBtdHNfZGVidWc7CiAvKkA9
c2hhZG93QCovCiAKIC8qQGFjY2VzcyBhbEtleSBAKi8KCg==
</data>        

          </attachment>
    </bug>

</bugzilla>