I don't know if it is even supposed to compile on x86_64 but I gave it a shot and it don't so here is the bug report. /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: out/wxc/ewxw_main.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC out/wxc/ewxw_main.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [out/wxc/libwxc-gtk2.4.2-0.8.so] Error 1 !!! ERROR: dev-haskell/wxhaskell-0.8 failed. !!! Function src_compile, Line 57, Exitcode 2 !!! make failed I tried with and without -fPIC in make.conf. Reproducible: Always Steps to Reproduce: 1. emerge -v /usr/portage/dev-haskell/wxhaskell/wxhaskell-0.8.ebuild Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4) ================================================================= System uname: 2.6.8-gentoo-r4 x86_64 4 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -fPIC" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb bitmap-fonts cdr cjk crypt dvd encode esd faad foomaticdb gdbm gif gnome gpm gtk gtk2 imap imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg multilib ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby sdl slang spell ssl tcpd tetex truetype unicode xml2 xmms xprint xv zlib"
Yes, the wxhaskell Makefile seems to ignore CFLAGS/CXXFLAGS settings. A manually patched build (and adding -fPIC) runs through on my amd64 machine -- I will try to add the fix to the ebuild during the next days ... ks
Fixed in CVS. It builds for me on an amd64 machine. I haven't run any real test for wxhaskell, though, because I have remote login only and testing GUI programs would be relatively slow. Therefore, please complain if it segfaults on you immediately. Closing for now. ks