Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124222 - dictd-1.10.0 -fPIC
Summary: dictd-1.10.0 -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on: 137653
Blocks:
  Show dependency tree
 
Reported: 2006-02-26 19:09 UTC by Jose daLuz
Modified: 2007-08-18 12:24 UTC (History)
1 user (show)

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


Attachments
Output of emerge dictd (emerge.dictd,31.16 KB, text/plain)
2006-03-01 09:50 UTC, Jose daLuz
Details
config.log from dict emerge (config.log,35.53 KB, text/plain)
2006-03-01 10:13 UTC, Jose daLuz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose daLuz 2006-02-26 19:09:57 UTC
Emerging dictd-1.10.0 I get the following error:

x86_64-pc-linux-gnu-gcc heap.os dictdplugin_dbi.os str.os plugins_common.os strlcpy.os strlcat.os \
           -Llibmaa -lmaa  -ldl -lz -ldbi -ldl -shared -o dictdplugin_dbi.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: libmaa/libmaa.a(xmalloc.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
libmaa/libmaa.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [dictdplugin_dbi.so] Error 1

Since it's a new portage feature, I tried disabling confcache but that had no impact on the problem.

emerge --info
Portage 2.1_pre5 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-ck3-r1 x86_64)
=================================================================
System uname: 2.6.15-ck3-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
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, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LC_ALL="en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Patrick McLean gentoo-dev 2006-02-27 18:09:58 UTC
I can't seem to reproduce this here, maybe this isn't an issue with gcc 4. I will try again tomorrow on a gcc3 box.

Portage 2.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
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="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ffast-math -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks multilib-strict sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://gentoo.risq.qc.ca http://gentoo.oregonstate.edu http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/gnome /usr/local/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 c++ cairo caps cdparanoia cdr crypt cscope css cups curl dbus dri dts dv dvd dvdr dvdread dvi edl eds emboss encode evo exif expat fat ffmpeg fftw firefox flac foomaticdb gb gcj gdbm gif gimp gimpprint glibc-omitfp glitz glut gmail gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile gzip hal hfs idea ieee1394 imagemagick imap imlib imlib2 iproute2 jabber java jfs jpeg junit lcms libgda linuxkeys live lzo lzw lzw-tiff mad matroska mikmod mmap mng mod mono mozdevelop mozilla mozsvg mp3 mpeg mplayer msn mythtv native nautilus ncurses network nfs no-old-linux no_wxgtk1 noantlr nob nobcel nobeanutils nobsh nocommonsnet nojsch nomotif nonfsv4 noplugin norhino noxalan noxerces nptl nptlonly offensive ogg oggvorbis openal opengl pam pda pdflib perl plugin png ppds python quicktime radeon readline real reiserfs rtc ruby samba sdl slang sndfile speex spell sqlite ssl startup-notification stream subversion svg tcltk tcpd tga theora tiff transcode truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis wmf wxwindows xml2 xpm xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
Comment 2 Patrick McLean gentoo-dev 2006-03-01 09:38:19 UTC
I can't reproduce this on either gcc3 or gcc4, could you please attach the full output when you try to emerge the package?
Comment 3 Jose daLuz 2006-03-01 09:50:52 UTC
Created attachment 81046 [details]
Output of emerge dictd
Comment 4 Luis Medinas (RETIRED) gentoo-dev 2006-03-01 10:05:48 UTC
i also don't have this problem. I don't think its a good idea to build a patch for this case.
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-03-01 10:09:42 UTC
the output of /var/tmp/portage/dictd-1.10.0/work/dictd-1.10.0/config.log would be helpful, if you could attach that too... tia
Comment 6 Jose daLuz 2006-03-01 10:13:26 UTC
Created attachment 81048 [details]
config.log from dict emerge
Comment 7 Patrick McLean gentoo-dev 2006-03-01 11:12:39 UTC
maa:             local
zlib:            system
regex:           system
plugin support:  native
 judy plugin:    disabled
 dbi plugin:     enabled

looks like an automagic dependency, my system didn't have the dbi plugin enabled, and the package has no USE flags
Comment 8 Patrick McLean gentoo-dev 2006-03-01 11:16:34 UTC
app-dicts: please fix the automagic dep so we can properly fix the fPIC issues

http://www.gentoo.org/proj/en/qa/automagic.xml
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2006-06-22 13:49:40 UTC
one man one word: one bug one issue

(bug 137653 handles the automagic deps now)
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2006-08-25 08:07:29 UTC
in case bug 137653 ever gets fixed, please reopen this one
Comment 11 Wulf Krueger (RETIRED) gentoo-dev 2007-08-18 01:22:24 UTC
 (In reply to comment #10)
> in case bug 137653 ever gets fixed, please reopen this one

As requested. The automagic stuff is fixed in dictd-1.10.9.
Comment 12 Wulf Krueger (RETIRED) gentoo-dev 2007-08-18 12:24:01 UTC
As the fPIC issue was fixed as well by my commit yesterday, I'm resolving this as fixed.