Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE 3.5 compile issue another -fPIC error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Lin-Darian
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2005
Posts: 84

PostPosted: Tue Sep 27, 2005 8:03 am    Post subject: KDE 3.5 compile issue another -fPIC error [SOLVED] Reply with quote

Code:
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=k8 -pipe -O3 -ffast-math -Wformat-security -Wmissing-format-attribute -D_GNU_SOURCE   -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/kdebase-3.5_beta1/work/kdebase-3.4.91/kcheckpass'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.5_beta1/work/kdebase-3.4.91'
make: *** [all] Error 2


I'd be very grateful for any help

Code:
Portage 2.0.52-r1 (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 X2 Dual Core Processor 4600+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 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=k8 -pipe -O3 -ffast-math"
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/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O3 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.scphost.com/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X a52 acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr clearcase cpudetection crypt cups curl dv dvb dvd dvdr dvdread dxr3 eds emboss encode fam ffmpeg foomaticdb fortran gd gif gnome gpm gstreamer gtk gtk2 haskell howl imagemagick imlib ipv6 jpeg jpeg2k kde kdeenablefinal kerberos krb4 libwww lm_sensors logrotate lzw lzw-tiff mad mapeditor mikmod mmap mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis on-the-fly-crypt opengl oss pam parse-clocks pascal pdflib perl php png python qmail qt quicktime readline samba sdl sensord spell sql ssl subversion syslog tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xinerama xml xml2 xmms xpm xscreensaver xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


Last edited by Lin-Darian on Fri Sep 30, 2005 12:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Lin-Darian
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2005
Posts: 84

PostPosted: Tue Sep 27, 2005 6:03 pm    Post subject: Reply with quote

I tried various shared libs recompiling with -fPIC but it doesn't fix the problem...

I have submitted it as a bug report to BugZilla, https://bugs.gentoo.org/show_bug.cgi?id=107420
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Sep 28, 2005 7:59 pm    Post subject: Reply with quote

Have you tried with the stable binutils?
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Thu Sep 29, 2005 6:24 am    Post subject: Reply with quote

Have you tried to emerge kcheckpass with -fPIC in your CFLAGS ? if it builds, then you just have to report a bug.
Back to top
View user's profile Send private message
bbkr
n00b
n00b


Joined: 04 Jul 2005
Posts: 22

PostPosted: Thu Sep 29, 2005 9:47 am    Post subject: Reply with quote

stable ain't working.

downgrade to sys-devel/binutils-2.15.90.0.1.1-r5.
Back to top
View user's profile Send private message
Lin-Darian
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2005
Posts: 84

PostPosted: Fri Sep 30, 2005 12:37 am    Post subject: Reply with quote

Acutally all I did to make to work, was add CFLAGS=-fPIC infront of KDE-BASE, it emerges perfectly, then remerge the kde meta build
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum