Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72969 - libidn-0.5.11-r1 fails to compile
Summary: libidn-0.5.11-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL: http://www.gentoo.org/proj/en/devrel/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 14:39 UTC by Adam Bowers
Modified: 2004-12-03 00:05 UTC (History)
4 users (show)

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


Attachments
Patch against the ebuild for pic problem (ebuild.patch,410 bytes, patch)
2004-12-02 13:44 UTC, Daniel Karlsson
Details | Diff
Patch against the ebuild for pic problem (ebuild.patch,408 bytes, patch)
2004-12-02 13:51 UTC, Daniel Karlsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Bowers 2004-11-30 14:39:52 UTC
Here is the last bit of error message:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nfkc.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/nfkc.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libidn.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/libidn-0.5.11-r1/work/libidn-0.5.11/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/libidn-0.5.11-r1/work/libidn-0.5.11/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libidn-0.5.11-r1/work/libidn-0.5.11'
make: *** [all] Error 2


Here is emerge info:
Portage 2.0.51-r3 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.6
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.10
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
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="X alsa amd64 apm avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 fam foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2 gtkhtml imlib jpeg libg++ libwww mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd truetype usb xml2 xmms xprint xv zlib"

Reproducible: Always
Steps to Reproduce:
1.emerge -auvD world
2.
3.

Actual Results:  
Failed to compile.

Expected Results:  
To compile sucessfully.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-12-01 00:02:41 UTC
does libidn-0.5.11 fail?
Comment 2 Jonathan Briggs 2004-12-01 09:42:02 UTC
I have the same problem, also on amd64.

I tested compiling libidn-0.5.11 and it compiled fine.  So the problem is with some change in 0.5.11-r1.
Comment 3 Adam Bowers 2004-12-01 09:56:41 UTC
I second Jonathan's comments.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-12-01 12:09:13 UTC
those who echo comments please state your system type and which use flags (out of java doc pic nls are being used).

Please play around with the use flags and identifiy which one is causing the problem.
Comment 5 Jonathan Briggs 2004-12-01 12:41:31 UTC
# emerge info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc2-mm4 x86_64)
=================================================================
System uname: 2.6.10-rc2-mm4 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.10
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -funit-at-a-time -ffast-math -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -funit-at-a-time -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.ccccom.com http://128.213.5.34/gentoo/ http://gentoo.osuosl.org/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa avi berkdb bonobo cdr crypt cups dmx dv dvd dvdr edl eds encode esd evo f77 faac faad fam flac fortran gcj gdbm gif gnome gpm gstreamer gtk gtk2 guile hal imagemagick imap imlib ipv6 java jp2 jpeg junit kde libgda lzw lzw-tiff mad mikmod mozdevelop mozilla mozsvg mpeg ncurses nls nomultilib nptl nptlonly nvidia offensive oggvorbis openal opengl pam pcmcia perl png python qt quicktime readline rtc samba sdl slang ssl svg tcpd theora tiff truetype unicode usb userlocales wmf xml2 xmms xpm xprint xrandr xscreensaver xv xvid xvmc yv12 zlib"

Fiddling with the USE flags did it.  I made it work by doing this:
# USE="pic" emerge libidn
Comment 6 Daniel Karlsson 2004-12-02 13:44:20 UTC
Created attachment 45169 [details, diff]
Patch against the ebuild for pic problem

Fixes it in the .ebuild, assuming this only occurs on amd64
Comment 7 Daniel Karlsson 2004-12-02 13:51:25 UTC
Created attachment 45170 [details, diff]
Patch against the ebuild for pic problem

Hrm, a small mistake in the patch
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-12-03 00:05:06 UTC
fixed (hopefully) - thanks Daniel.