Bug 107218 - kcheckpass-3.5_beta1 fails
|
Bug#:
107218
(enable-final-cflags)
|
Product: Gentoo Linux
|
Version: 2004.3
|
Platform: AMD64
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: kde@gentoo.org
|
Reported By: neil@digimed.co.uk
|
|
Component: KDE
|
|
|
URL:
http://bugs.kde.org/show_bug.cgi?id=114475
|
|
Summary: kcheckpass-3.5_beta1 fails
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-09-25 15:25 0000
|
kcheckpass will not emerge on my AMD64 box. This package is a dependency of
kdesktop. It is described as a 'KDE pam client' yet I have -pam in USE, so why
is it even required?
Reproducible: Always
Steps to Reproduce:
1. emerge kcheckpass
2.
3.
Actual Results:
make all-recursive
make[1]: Entering directory
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1'
Making all in kcheckpass
make[2]: Entering directory
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1/kcheckpass'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'kcheckpass.c' || echo './'`kcheckpass.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'checkpass_etcpasswd.c' || echo
'./'`checkpass_etcpasswd.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'checkpass_pam.c' || echo
'./'`checkpass_pam.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'checkpass_shadow.c' || echo
'./'`checkpass_shadow.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'checkpass_osfc2passwd.c' || echo
'./'`checkpass_osfc2passwd.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security
-Wmissing-format-attribute -c `test -f 'checkpass_aix.c' || echo
'./'`checkpass_aix.c
/bin/sh ../libtool --silent --mode=link x86_64-pc-linux-gnu-gcc
-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG
-O2 -march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time
-Wformat-security -Wmissing-format-attribute -Wl,-O1 -o kcheckpass -pie
-L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 kcheckpass.o
checkpass_etcpasswd.o checkpass_pam.o checkpass_shadow.o
checkpass_osfc2passwd.o checkpass_aix.o -lkdefakes -lcrypt
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
kcheckpass.o: relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC
kcheckpass.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [kcheckpass] Error 1
make[2]: Leaving directory
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1/kcheckpass'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1'
make: *** [all] Error 2
!!! ERROR: kde-base/kcheckpass-3.5_beta1 failed.
!!! Function kde_src_compile, Line 170, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.
Portage 2.0.52-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python: 2.4.1-r1
sys-apps/sandbox: 1.2.13
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
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time"
CHOST="x86_64-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/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks parallel-fetch sandbox sfperms
strict"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/mnt/portage/packages/hactar"
PORTAGE_TMPDIR="/mnt/scratch"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local"
SYNC="rsync://desiato/gentoo"
USE="amd64 X aalib alsa apache2 arts artswrappersuid avi berkdb bitmap-fonts
bonobo cddb cdr crypt cups curl directfb dv dvd dvdr dvdread emboss encode fam
flac foomaticdb fortran gd gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2
gtkhtml guile hal ieee1394 imagemagick imlib jabber java jbig jpeg jpeg2k kde
kdeenablefinal lesstif libwww lirc lm_sensors lzw lzw-tiff mad mailwrapper
mikmod mozilla mp3 mpeg mysql ncurses nptl nptlonly nsplugin offensive ogg
oggvorbis opengl oss pdflib perl pic png ppds python qt quicktime readline
samba scanner sdl slang spell sqlite ssl tcltk tcpd tetex theora tiff truetype
truetype-fonts type1-fonts usb userlocales vorbis xfs xml xml2 xmms xpm xprint
xv xvid zlib video_cards_nvidia linguas_en_GB userland_GNU kernel_linux
elibc_glibc"
Unset: ASFLAGS, CTARGET, LC_ALL
Confirmed.
Getting the exact same error:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/
usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -std=iso9899:1990 -W -
Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-
strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64 -O2 -
pipe -fomit-frame-pointer -msse3 -ffast-math -Wformat-security -Wmissing-format-
attribute -c `test -f 'checkpass_aix.c' || echo './'`checkpass_aix.c
/bin/sh ../libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -std=iso9899:
1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -
Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=athlon64 -
O2 -pipe -fomit-frame-pointer -msse3 -ffast-math -Wformat-security -Wmissing-
format-attribute -o kcheckpass -pie -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/
usr/lib64 kcheckpass.o checkpass_etcpasswd.o checkpass_pam.o checkpass_shadow.
o checkpass_osfc2passwd.o checkpass_aix.o -lkdefakes -lpam -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
kcheckpass.o: relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC
kcheckpass.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [kcheckpass] Error 1
make[2]: Leaving directory `/var/tmp/portage/kcheckpass-3.5_beta1/work/
kcheckpass-3.5_beta1/kcheckpass'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kcheckpass-3.5_beta1/work/
kcheckpass-3.5_beta1'
make: *** [all] Error 2
on this system:
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.
6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /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 /usr/share/texmf/dvipdfm/config/ /usr/share/
texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/
platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.no http://distfiles.gentoo.org http://www.
ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.no/gentoo-portage"
USE="amd64 X a52 aalib acpi alsa audiofile avi berkdb bitmap-fonts bzip2 cdr
crypt cups curl dbus dvd dvdr ecc eds emboss encode esd exif fam fbcon firefox
flac foomaticdb fortran gif glitz gnokii gnome gnutls gphoto2 gpm gstreamer gtk
gtk2 hal howl idea imlib ipv6 java jpeg jpeg2k junit kde kdeenablefinal libwww
logitech-mouse lzw lzw-tiff mad mikmod mp3 mpeg mpi ncurses new-login nls nptl
nptlonly offensive ogg oggvorbis openexr opengl pam pda pdflib perl pic png
povray ppds python qt quicktime rdesktop readline samba scanner sdl sndfile snmp
speex spell sqlite ssl tcpd tetex theora tidy tiff truetype truetype-fonts
type1-fonts unicode usb userlocales vorbis wifi xine xml2 xmms xpm xscreensaver
xv zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Can you try to downgrade binutils? This could be bug 106193.
*** Bug 107420 has been marked as a duplicate of this bug. ***
I downgraded binutils from 2.16.1 to 2.15.90.0.1.1-r5 and got exactly the same
error.
Why do I even need a PAM client on a system that does not use PAM. Shouldn't
the kdesktop ebuild be respecting the pam USE flag on this?
kcheckpass is used in both PAM and non-PAM systems, I just corrected the
description.
Then the problem is probably related to the fact that the KDE build system
adds -pie when linking kcheckpass. Probably toolchain people know more about
it...
Well since my bug was marked a duplicate of this one, I will post this here. I
worked around my problem by compling kde-base first with -fPIC infront of it,
then continueing the KDE meta emerge. Since this solved my problem (and KDE is
running quiet nicely ;) thought oyu might should know.
Something seems to have changed. I compiled kcheckpass on my new laptop a day
or so before the betas were committed to the tree and had no problems at all
(amd64 laptop). Today I was upgrading my desktop to the betas and I had this
exact same failure. Passing CFLAGS="-march=k8 -O2 -fPIC" when compiling
kcheckpass allowed it to compile successfully. Everything else was compiled
without any -fPIC in my CFLAGS (doing that globally is bad in general).
I don't get what has changed though - I will try to look into this further if I
get time tomorrow and compare versions of gcc, binutils etc and see if I can
spot anything. I am using pam on this system.
Same with kcheckpass-3.5.0_beta2 on my desktop system (emerge info included),
and my laptop (GCC 4.0.2-r1 and other p.masked stuff...)
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
3800+
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.13
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.15.92.0.2-r2, 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/mnt/gentoo/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect cvs digest
distlocks multilib-strict sandbox sfperms sign"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/gentoo/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib aim alsa apache2 arts audiofile avi bash-completion berkdb
bitmap-fonts blas bonobo bootsplash bzlib cdparanoia cdr crypt cscope cups curl
dbus directfb doc dvd dvdr dvdread eds emboss encode esd ethereal evo fam fbcon
fftw flac flash foomaticdb fortran gb gd gdbm ggi gif gimpprint ginac gmp gnome
gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal icq imagemagick imap
imlib innodb ipv6 jabber java jikes joystick jpeg jpeg2k junit kde
kdeenablefinal kerberos lcms ldap libg++ libwww lm_sensors lzw lzw-tiff mad
mcal motif mp3 mpeg mpi msn mysql ncurses netcdf nls nptl nvidia octave odbc
offensive ogg oggvorbis openexr opengl oscar pam pcre pdflib perl plotutils png
postgres povray ppds python qt quicktime readline rtc ruby samba sasl scanner
sdl snmp spell sqlite ssl svg tcltk tcpd tetex theora tiff truetype-fonts
type1-fonts unicode usb vhosts videos vorbis wmf wxwindows xine xinerama xml
xml2 xmms xpm xscreensaver xv xvid yahoo zeroconf zlib linguas_en_GB
userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
My emerge info follows... I can't reproduce the bug here
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-4.0.2,
glibc-2.3.5.20050722-r0, 2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.13
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
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ftracer -pipe
-ftree-vectorize -Wformat=2 -Wno-pointer-sign "
CHOST="x86_64-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/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ftracer -pipe
-ftree-vectorize -Wformat=2"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig collision-protect cvs digest distlocks noinfo
sandbox sfperms sign"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en it"
MAKEOPTS="-j2 -s"
PKGDIR="/var/portage/pkg-enterprise"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/cvs/gentoo-x86"
PORTDIR_OVERLAY="/var/portage/crossoverlay /var/portage/cvs/gentoo-alt/overlay /var/portage/cvs/flame-portage /var/portage/cvs/gentoo-java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3dnowex S3TC X a52 aac acpi4linux alsa apm avi bash-completion
berkdb bzip2 bzlib cdda cddb cdio cdr cjk crypt css cups curl dnd dpms dts dvd
dvdr dvdread eds emboss fam fame ffmpeg flac foomaticdb gd gdbm gif gnutls
gpgme gphoto2 gtk2 hal idn ieee1394 imagemagick imlib imlib2 ipv6 ithreads
joystick jpeg kde latex libwww lirc lm_sensors lzw lzw-tiff mad maildir
matroska mmap mng mozsvg mp3 mpeg mpeg4 mpm-threadpool native ncurses
no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm
nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan
noxerces nptl nvidia ogg oggvorbis opengl pam pdf pdflib pic png ppds python
qemu-fast qt rtc ruby samba scanner slang snmp speex spell sqlite ssl
stencil-buffer subversion svg svgz symlink sysfs syslog tetex theora threads
tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales utf8
v4l v4l2 vhosts vorbis wxwindows x11vnc xine xml2 xpm xv xvid xvmc zlib zvbi
linguas_en linguas_it userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LC_ALL
Here is my laptop emerge info - more like flameeye's, but kcheckpass still
fails here,
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-4.0.2,
glibc-2.3.5.20050722-r0, 2.6.13-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r4 x86_64 AMD Turion(tm) 64 Mobile Technology
ML-37
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.13
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
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg digest distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib aim alsa ati audiofile avi bash-completion berkdb
bitmap-fonts bootsplash bzlib cdparanoia cdr crypt cscope cups curl dbus
directfb doc dri dvd dvdr dvdread eds emboss encode esd ethereal fam fbcon
fftw foomaticdb fortran gd gdbm gif gimpprint gmp gphoto2 gpm gstreamer hal
icq ieee1394 imagemagick imap imlib ipv6 jabber java jikes jpeg jpeg2k kde
kdeenablefinal kerberos lcms libwww lm_sensors lzw lzw-tiff mad madwifi motif
mp3 mpeg ncurses netcdf nls nptl nptlonly odbc offensive ogg oggvorbis openexr
opengl pam pcre pdflib perl plotutils png povray python qt quicktime readline
rtc samba sasl scanner sdl speedo spell sqlite ssl subversion svg tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos
vorbis wmf xine xinerama xml2 xpm xv xvid zeroconf zlib linguas_en_GB
userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Thanks to a suggestion from flameeyes I tried emerging sys-apps/shadow-4.0.13,
with this installed kde-base/kcheckpass-3.5.0_beta2 emerges fine without any
-fPIC appended to its CFLAGS. Neither version has any lib files - I have left
my desktop "broken" for now in case more tests are required.
Sorry - still fails in both cases. Stale ebuild where I had added append-flags
-fPIC so of course it works :/
Ok the problem is that linkage is done with -pie but it's not compiled with
-fpie ... looking forward for this right now.
The problem is caused by kdeenablefinal.
When using final mode kde relies on internal make rules to build .o files,
instead of using the special automake rules, this way kcheckpass_CFLAGS
variable (that is set to KDE_USE_FPIE) is ignored.
As to link a PIE executable you need PIC on amd64, the sources have to be
built with -fpie, this leads to the failure.
Going to report this upstream.
removing toolchain since this appears to be a broken KDE issue and unrelated to
toolchain stability
Reproduced.
Still there in 3.4.0_beta2.
Diego, do you want to add a workaround to the ebuild until upstream decides
what the correct fix is? (Since you seem to already have one working.)
(In reply to comment #19)
> Reproduced.
> Still there in 3.4.0_beta2.
> Diego, do you want to add a workaround to the ebuild until upstream decides
> what the correct fix is? (Since you seem to already have one working.)
If by "3.4.0_beta2" you really mean 3.5.0_beta2, then the problem is the same
here (amd64).
Fixed (temporarily) by adding -fPIC to CFLAGS, emerging kcheckpass, then
resuming emerge of kdebase-meta
*** Bug 109826 has been marked as a duplicate of this bug. ***
I've applied Dirk's patch (that is basically the same as my workaround but
done on a different level) to 3.5.0_beta2 ebuilds for kdebase and kcheckpass,
this should fix it entirely.
Finally we can close this up..
Unfortunately the root problem (--enable-final ignoring CFLAGS set per-target)
is not even considered, this means we might encounter other similar problems
in the future with external apps. I've aliased the bug to find it quickly.