Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118858 - rpm-4.2.r1 fails to emerge with gcc4
Summary: rpm-4.2.r1 fails to emerge with gcc4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 134953 135598 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-01-13 02:17 UTC by Jakub Argasinski
Modified: 2006-06-05 02:17 UTC (History)
2 users (show)

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


Attachments
rpm-4.2-gcc-4.patch (rpm-4.2-gcc-4.patch,1.26 KB, patch)
2006-01-15 21:04 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Argasinski 2006-01-13 02:17:03 UTC
Here's the error message generated. I guess it'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'
source='rpmmodule.c' object='rpmmodule.lo' libtool=yes \
depfile='.deps/rpmmodule.Plo' tmpdepfile='.deps/rpmmodule.TPlo' \
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 'rpmmodule.c' || echo './'`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: "_POSIX_C_SOURCE" 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 'initrpm':
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łąd 1
make[3]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2/python'
make[2]: *** [all-recursive] Błąd 1
make[2]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2/python'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/var/tmp/portage/rpm-4.2-r1/work/rpm-4.2'
make: *** [all] Błą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="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-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 "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-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"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.po.opole.pl"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Bdirect"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/src/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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"
Unset:  ASFLAGS, CTARGET
Comment 1 Simon Strandman 2006-01-13 04:31:10 UTC
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.
Comment 2 Simon Strandman 2006-01-13 04:32:43 UTC
Correction: 4.4.4 is the latest release.

ftp://wraptastic.org/pub/rpm-4.4.x/rpm-4.4.4.tar.gz
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2006-01-15 21:04:34 UTC
Created attachment 77228 [details, diff]
rpm-4.2-gcc-4.patch

here'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.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-01-28 17:50:57 UTC
Fixed.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 12:36:15 UTC
*** Bug 134953 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-05 02:17:23 UTC
*** Bug 135598 has been marked as a duplicate of this bug. ***