Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143134 - KWlanInfo needs -fPIC
Summary: KWlanInfo needs -fPIC
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-07 13:30 UTC by Martin Sandsmark
Modified: 2007-02-11 07:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Sandsmark 2006-08-07 13:30:12 UTC
/bin/sh ../libtool --silent --mode=link --tag=CXX x86_64-pc-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -march=athlon64 -fno-ident -frename-registers -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common   -Wl,-O1 -Wl,--hash-style=both -o libkwlaninfo.la -rpath /usr/lib64 -module -avoid-version -L/usr/lib64 -L/usr/qt/3/lib64 -L/usr/kde/3.5/lib64  -L/usr/kde/3.5/lib64 kwlaninfo.lo qmeterbar.lo kwprefs.lo about.lo kwinfo.lo kwbarview.lo kwprofile.lo kwlaninfo.moc.lo kwprefs.moc.lo about.moc.lo qmeterbar.moc.lo  -lkdeui
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/kwlaninfo.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/kwlaninfo.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libkwlaninfo.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/kwlaninfo-0.9.4/work/kwlaninfo-0.9.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kwlaninfo-0.9.4/work/kwlaninfo-0.9.4'
make: *** [all] Error 2

!!! ERROR: net-wireless/kwlaninfo-0.9.4 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  kwlaninfo-0.9.4.ebuild, line 23:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 323:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 319:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------------------
emerge --info:
Portage 2.1.1_pre4-r4 (default-linux/amd64/2006.0, gcc-3.4.6/amd64-vanilla, glibc-2.4.90.20060716-r1, 2.6.17-beyond3-tripleseven x86_64)
=================================================================
System uname: 2.6.17-beyond3-tripleseven x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
Last Sync: Sun, 06 Aug 2006 16:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -fno-ident -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=athlon64 -fno-ident -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.romnet.org/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://mirror.gentoo.no/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
LINGUAS="nb"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/mine /usr/local/overlays/mesa-cvs /usr/local/overlays/initng-portage /usr/portage/local/layman/toolchain_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa arts asf avi bash-completition berkdb bitmap-fonts bzip2 cdparanoia cdr clamav cli crypt cups dlloader dri dv dvd dvdr eds elibc_glibc emboss emul-linux-x86 encode exif ffmpeg foomaticdb fortran ftp gd gif glibc-omitfp glut gphoto2 gpm gtk2 hal hashstyle ieee1394 imlib initng_plugins_alsa initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_provide initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg jpeg2k kde kernel_linux libcaca libvisual linguas_nb lirc lirc_devices_atiusb lzw lzw-tiff mad matroska mmap mng mp3 mpeg msn ncurses nls nptl nptlonly offensive ogg oggvorbis openal opengl pam pcre pda pdf pdflib perl png posix pppd python qt qt3 qt4 quicktime readline reflection samba sdl session speex spell spl ssl tcpd theora tiff truetype-fonts type1-fonts usb userland_GNU v4l vcd video_cards_ati video_cards_radeon videos vorbis xcomposite xine xorg xpm xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lukasz Milkowski 2007-02-10 22:05:10 UTC
It works for me. No errors.
----------------------------
emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.19-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r3 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 10 Feb 2007 13:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -funroll-loops -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xeffects/trunk /usr/local/portage/xeffects/experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib ac52 aiglx alsa amd64 apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bitmapfonts bluetooth bootsplash browserplugin bzip2 canna cdb cdda cddb cdio cdparanoia cdr chroot cjk cli cpudetection cracklib crosscompile crypt ctype cups curl dba directfb dlloader dri dts dv dvb dvd dvdr dvdread dxr3 eds effects emacs emboss emul-linux-x86 encode esd ethreal exif expat extensions extraengine extras fan fbcon ffmpeg flac foomaticdb fortran ftp gd gdbm gif gimp gimpprint glut glx gnokii gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hpm httpd iconv imagemagick imlib innodb ipv6 isdnlog ithreads jabber java javascript joystick jpeg justify kde kdegraphics lame lcd lcms ldap libcaca libg++ libwww logitech-mouse lzw lzw-tiff mad mad3 midi mime ming mng modperl modplug motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer mysql mysqli mythtv nas ncurses netboot network nforce2 nls nptl nptlonly nsplugin ntfs nvidia nvram ocaml ogg opengl openntpd openssh osc oss pam pcre pda pdf pear perl php png portaudio posix postgres pppd python qt qt3 qt4 quicktime rar readline reflection ruby scanner screen sdl sendfile serial session simplexml slang sockets speex spell spl ssl stream subtitles subversion svg syslog tcltk tcpd theora threads tidy tiff timidity tokenizer truetype truetype-fonts type1-fonts usb utf8 v4l v4l2 vcd vfat videos vorbis web wma wma123 xerces-c xine xinerama xml xml2 xorg xpm xprint xsl xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia fbdev vesa vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Charlie Shepherd (RETIRED) gentoo-dev 2007-02-10 23:56:33 UTC
Both of you have unstable CFLAGs.

Martin: -fvisibility-inlines-hidden should not be used globally, only on specific applications

Lukanus: -funroll-loops isn't safe either.

This bug needs to be reproduced by someone with some sane CFLAGS (-O2 -pipe -fomit-frame-pointer is a good start.)
Comment 3 Lukasz Milkowski 2007-02-11 01:12:54 UTC
(In reply to comment #2)
> Both of you have unstable CFLAGs.
> 
> Martin: -fvisibility-inlines-hidden should not be used globally, only on
> specific applications
> 
> Lukanus: -funroll-loops isn't safe either.
> 
I'm trying to have the best CFLAGS supported for my CPU.  
I have found it at arch page in gentoo.org, and I don't have any serious problems with compiler.

> This bug needs to be reproduced by someone with some sane CFLAGS (-O2 -pipe
> -fomit-frame-pointer is a good start.)
> 

Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2007-02-11 07:26:51 UTC
(In reply to comment #3)
> I have found it at arch page in gentoo.org, and I don't have any serious
> problems with compiler.

Could you point me to the page? I'm pretty sure it's wrong.