Ghostscript fails to compile on my machine I have an i686 CPU but I compiled everything as i586 because I run an openmosix cluster with i586 processors Reproducible: Always Steps to Reproduce: 1. emerge ghostscript Actual Results: ./obj/echogs -a ./obj/ldt.tr -s - -lm -L/usr/lib -rdynamic -lgmodule -lglib -ldl -lstdc++ -lm if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \ XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \ FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \ DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \ DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \ DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \ DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \ /bin/sh <./obj/ldt.tr ./obj/imain.o(.text+0x2223): In function `gs_main_tempnames': : undefined reference to `rpl_malloc' ./obj/icc.o(.text+0x1a89): In function `icmAllocStd_malloc': : undefined reference to `rpl_malloc' ./obj/gdevifno.o(.text+0x6a2): In function `initwriteimage': : undefined reference to `rpl_malloc' ./obj/dscparse.o(.text+0xf): In function `dsc_init': : undefined reference to `rpl_malloc' ./obj/dscparse.o(.text+0xbb8c): In function `dsc_parse_process_colours': : undefined reference to `rpl_malloc' ./obj/dscparse.o(.text+0xbeac): more undefined references to `rpl_malloc' follow /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3' collect2: ld returned 1 exit status distcc[22642] ERROR: compile on localhost failed make: *** [bin/gs] Error 1 Expected Results: Should finish compiling Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-openmosix-r3) ================================================================= System uname: 2.4.22-openmosix-r3 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.13 distcc 2.11.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i586 -O3 -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=i586 -O3 -pipe -fomit-frame-pointer" DISTDIR="/mnt/disk2/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://mirror.internode.on.net/gentoo-portage" USE="X apm avi crypt encode gdbm gif gtk gtk2 imlib java jpeg lesstif libg++ libwww mad mikmod mpeg ncurses nls opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcltk tcpd truetype x86 xml2 xmms xv zlib"
I found the problem somthing along the lines of having to change /etc/ld.so.conf From: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2 /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2 To: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2 /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2 I also ran the fix_libtool_files.sh script
*** Bug 43400 has been marked as a duplicate of this bug. ***