I've tried with and without -fPIC, same result. . . x86_64-pc-linux-gnu-gcc -shared .libs/adjustablearrowcap.o .libs/bitmap.o .libs/brush.o .libs/customlinecap.o .libs/dstream.o .libs/font.o .libs/general.o .libs/graphics.o .libs/graphics-cairo.o .libs/graphics-metafile.o .libs/graphics-path.o .libs/graphics-pathiterator.o .libs/hatchbrush.o .libs/icocodec.o .libs/image.o .libs/imageattributes.o .libs/lineargradientbrush.o .libs/matrix.o .libs/metafile.o .libs/pathgradientbrush.o .libs/pen.o .libs/print.o .libs/region.o .libs/region-bitmap.o .libs/region-path-tree.o .libs/solidbrush.o .libs/stringformat.o .libs/text.o .libs/text-cairo.o .libs/text-metafile.o .libs/texturebrush.o .libs/bmpcodec.o .libs/emfcodec.o .libs/emfplus.o .libs/gifcodec.o .libs/jpegcodec.o .libs/pngcodec.o .libs/tiffcodec.o .libs/wmfcodec.o -Wl,--whole-archive ../cairo/src/.libs/libcairo.a -Wl,--no-whole-archive /usr/lib64/libxml2.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl -lm /usr/lib64/libglib-2.0.so /usr/lib64/libfreetype.so -lz /usr/lib64/libXrender.so -L/usr/lib64 /usr/lib64/libX11.so /usr/lib64/libjpeg.so /usr/lib64/libgif.so /usr/lib64/libpng12.so -lpthread /usr/lib64/libfontconfig.so -pthread -Wl,-soname -Wl,libgdiplus.so.0 -o .libs/libgdiplus.so.0.0.0 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/image.o: relocation R_X86_64_PC32 against `gdip_load_tiff_image_from_file' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libgdiplus.la] Error 1 make[2]: Leaving directory `/tmp/portage/dev-dotnet/libgdiplus-1.2.5/work/libgdiplus-1.2.5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/dev-dotnet/libgdiplus-1.2.5/work/libgdiplus-1.2.5' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge libgdiplus 2. Error on linking.. emerge --info and build log will be attached.
Created attachment 130563 [details] Emerge info
Created attachment 130564 [details] Build log of libgdiplus-1.2.5
Can you try w/ gcc-4.1.x?
Created attachment 130567 [details] Build log of libgdiplus-1.2.5_w_gcc-4.1.2.log Same emerge --info as above, except gcc version. Now: Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r6 x86_64) Fails in the same way. Anything more I can test?
Nah, thanks.
Ok, compiling with tiff enabled makes the build complete. (USE="gif jpeg -exif -tiff" failed, USE="gif jpeg tiff -exif" compiled fine) I guess that's a bug in upstream that building without tiff is broken. Disable the tiff flag in the ebuild or report upstream? Sorry for not thinking about trying this right away. Regards, Claes
Compiling with USE="-tiff -exif" doesn't work, USE="tiff -exif" doesn't work, USE="gif jpeg tiff -exif" does work and USE="gif jpeg tiff exif" does work!
Filed an upstream bug: http://bugs.ximian.com/show_bug.cgi?id=82844 and waiting for response
The issue is that 1.2.5 doesn't build properly with -gif in the current release. Emerging with +gif caused it to build fine.. 10:16 <@latexer> steev64: do you have USE=static at all? 10:17 < steev64> anywhere? 10:19 <@latexer> steev64: either in make.conf, or selectively? 10:19 < steev64> equilibrium ~ # grep static /etc/make.conf 10:19 < steev64> equilibrium ~ # grep -r static /etc/portage/ 10:19 < steev64> equilibrium ~ # grep -r static /etc/portage/* 10:19 < steev64> equilibrium ~ # 10:20 <@latexer> steev64: oh, do you have USE="gif" ? 10:21 < steev64> [ebuild U ] dev-dotnet/libgdiplus-1.2.5 [1.2.4] USE="jpeg tiff -exif -gif" 0 kB 10:21 < steev64> and its not in make.conf nor /etc/portage/ 10:21 < steev64> guess i should turn it on? 10:22 <@latexer> steev64: i bet libgdiplus isn't behaving properly when it's disabled in the latest release. 10:22 <@latexer> try with it enabled, see what happens. 10:22 < steev64> will do 10:27 < steev64> latexer: yep, that was it 10:27 <@latexer> steev64: can you comment on the bug, and leave it open. 10:27 <@latexer> steev64: it should really work with -gif. So, the issue is that it tries to compile gif support even though we don't have giflib (or equiv) emerged.
Check out comment #6, the gif USE flag is enabled and it still fails to build though. I suspect you're experiencing another bug, unrelated to this one.
Shouldn't this be assigned to the package maintainers? I have the same issue.
We know about it and we're trying to resolve it. See comment #8. Moreover, all who suffer from this bug could post their emerge --info's so that it's easier for us to narrow down possible causes. Right now it looks like x86_64 specific issue.
BTW. The upstream bug has changed location - it's now being hosted by novell: https://bugzilla.novell.com/show_bug.cgi?id=325511
I am bitten by this bug. Here is my emerge --info System uname: 2.6.22-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Timestamp of tree: Wed, 19 Sep 2007 20:20:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.5.1-r2 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" 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/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LINGUAS="en de" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/m/tmp/freddy/var/tmp/portage" PORTDIR="/usr/portage" SYNC="rsync://www.lanfear.net/gentoo-portage" USE="X Xaw3d a52 aac aalib acl acpi adns alsa amd64 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups curl dbus dga divx4linux dpms dri dts dv dvb dvd dvdr dvdread dynagraph edl emacs emboss encode evo exif faac faad fame fb ffmpeg firefox flac fltk font-server fontconfig foomaticdb fpx freetype gd gdbm geoip gif gimpprint glibc-omitfp glut gmp gnutls gpgme gphoto2 graphviz gs gstreamer gtk gtk2 hal iconv idea imagemagick imap ipod isdnlog jack java javascript jbig jikes jpeg jpeg2k ladcca ladspa lash lcms libcaca libnotify libsamplerate live lm_sensors logitech-mouse logrotate lzo mad mailwrapper matroska mbox midi mikmod milter mjpeg mmap mmx mng modplug mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nethack network nls nptl nptlonly nsplugin nvidia offensive ofx ogg openal opengl openmp oss pam pam_chroot pam_console pam_timestamp pcre pdf pdflib perl perlsuid pic plotutils png portaudio ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection rtc sdl sensord session sid silc slp smime smp sndfile snmp speex spell spl sqlite sse sse2 ssl subtitles svg tagwriting tcltk tcpd tga theora timidity truetype truetype-fonts type1-fonts unicode vcd visualization vorbis vorbis-psy wma wmf wxgtk1 x264 xanim xml xorg xprint xrandr xv xvid yv12 zlib" ALSA_CARDS="emu10k1" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Portage 2.1.3.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64) ================================================================= System uname: 2.6.22-gentoo-r5 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz Timestamp of tree: Thu, 20 Sep 2007 17:20:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O3 -pipe" 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/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=nocona -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ " LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j3" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acpi aim alsa amd64 apm audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 caps cdinstall cdparanoia cdr cgi cli cracklib crypt ctype cups curl curlwrappers dbus dio dri dvd dvdr dvdread dvi eds encode evo exiff faad fam ffmpeg firefox flac flash fortran ftp gb gcj gd gdbm gif gpm gtk2 gtkhtml hal iconv icq imagemagick imlib ipv6 isdnlog jabber jack java javascript jpeg jpeg2k ladspa ldap libgda libwww lm_sensors logitech-mouse mad matroska midi mikmod mime ming mng mono motif mp3 mpeg mplayer msn mudflap musepack ncurses nocd nptl nptlonly nsplugin odbc offensive ogg openmp osc pam pcre pdf perl png posix postgres ppds pppd python qt4 quicktime readline recode reflection ruby samba sdl session snmp soap sockets spl ssl svg symlink tcl tcpd tetex theora threads tidy tk truetype truetype-fonts type1-fonts unicode usb vcd videos vorbis wxwindows xml xorg xosd xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Sorry the top got chopped of my info. Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r6 x86_64) =================================================================
I am seeing the same bug. Here is my info: Portage 2.1.3.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.18-gentoo-r3 x86_64) ================================================================= System uname: 2.6.18-gentoo-r3 x86_64 AMD Opteron(tm) Processor 246 Timestamp of tree: Sun, 23 Sep 2007 06:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.5-r3, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 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-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/resin/conf /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2" DISTDIR="/opt/no_archive/portage/distfiles" FEATURES="buildpkg ccache distlocks metadata-transfer sandbox sfperms unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.ccccom.com http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/opt/no_archive/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde ldap libg++ log4cpp mad midi mikmod mono mozilla mp3 mp4live mpeg mudflap nas ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl plotutils png postgres ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl stream svg tcltk tcpd truetype truetype-fonts type1-fonts unicode usb vorbis wxwindows xinerama xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Piotr Miedzik <miedzik_piotr@o2.pl> has proposed a patch that seems to fix the compilation issues. Try it out and report back whether the bug goes away :)
Created attachment 131722 [details, diff] patch fixing the issue
Well, I just learned how to patch ebuilds. Is my google-fu too weak, or is there really no document saying "If you want to apply a custom patch to an ebuild, look here"? I found the solution in the Gentoo-Wiki, "HOWTO Create an Updated Ebuild". (which is NOT about patching, but rather about overlaying newer versions of a software) Anyway, seems like it works. No error messages.
Fixed in -r1