I try to compile to install xorg-x11 but freeglut will not compile. And I've tried compiling against media-libs/mesa-6.5.2-r1 and 7.0.1 it didn't help Here are the logs: /bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -o libglut.la -rpath /usr/lib64 -version-info 11:0:8 libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo -lm -L/usr/lib64 -lGL -lGLU -lXext -lX11 -lXxf86vm rm -fr .libs/libglut.la .libs/libglut.* .libs/libglut.* x86_64-pc-linux-gnu-gcc -shared libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib -L/usr/lib -lm -L/usr/lib64 /usr/lib64/libGL.so /usr/lib/libGLU.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libXxf86vm.so -Wl,-soname -Wl,libglut.so.3 -o .libs/libglut.so.3.8.0 /usr/lib64/libGL.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[2]: *** [libglut.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/freeglut-2.4.0-r1/work/freeglut-2.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/freeglut-2.4.0-r1/work/freeglut-2.4.0' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge -1 freeglut Actual Results: it doesn't compile Expected Results: it should compile! Portage 2.1.3.9 (default-linux/amd64/2007.0, 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) Core(TM)2 CPU 6400 @ 2.13GHz Timestamp of tree: Thu, 04 Oct 2007 01:20:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 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.61-r1 sys-devel/automake: 1.6.3, 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 -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/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer paralell-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://ftp.du.se/pub/os/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en en_GB sv sv_SE" MAKEOPTS="-j4" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip X a52 aac aalib acl acpi aiglx alsa amd amd64 apache2 applet asf aspnet2 audiofile automount bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cardbus cdr chroot cli cpudetection cracklib crypt crypto_libgcrypt crypto_openssl css ctype cups curl curlwrappers dbus dlloader dri dts dvd dvdr dvdread eds effects emerald encode esd examples exif expat extras fastbuild fat fbcon ffmpeg firefox flac font-server fontconfig foomaticdb force-cgi-redirect fortran ftp fuse gatos gd gdbm gif gimp glitz glx gmedia gnome gnome-print gphoto2 gpm gstreamer gstreamer-010 gtk gtk2 gtkhtml gvim gzip hal hash ibam icms iconv ieee1394 imagemagick imap imlib ipod isdnlog java javascript john jpeg jpeg2k kdeenablefinal lame latin1 libg++ libnotify logrotate lzo mad midi mikmod mmx mmxext mng mono mozbranding mp3 mpeg mpeg2 mplayer msn mudflap musicbrainz mysql mysqli ncurses nls no-seamonkey nptl nptlonly nsplugin ntfs offensive ogg opengl openmp openssh openssl pam pcap pcre pdf perl php png pnp ppds pppd print python qt3 qt3support qt4 quicktime rar rdesktop readlin readline realmedia reflection rtc ruby samba scanner screen sdk sdl session slang sockets spell spl sqlite sqllite srt sse sse2 ssl suhosin svg sysfs tcltk tcpd tiff tokenizer truetype truetype-fonts type1 type1-fonts udev unicode urandom usb userlocales vim vim-with-x vnc vorbis wifi wma wmf wmp wxwindows x11vnc x264 x86 xcomposite xine xml xmlreader xmlwriter xorg xv xvid xvmc zip 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB sv sv_SE" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Can you run /usr/lib64/libGL.so: cannot open `/usr/lib64/libGL.so' (No such file or directory), and if it's a symlink, run on whatever it points to? I wonder whether it's trying to link a 64-bit freeglut build against a 32-bit libGL.
Can you run `file /usr/lib64/libGL.so`, and if it's a symlink, run `file` on whatever it points to? I wonder whether it's trying to link a 64-bit freeglut build against a 32-bit libGL.
chefen ~ # /usr/lib64/libGL.so Segmentation fault chefen ~ # ls -l /usr/lib64/libGL.so lrwxrwxrwx 1 root root 40 Oct 10 06:39 /usr/lib64/libGL.so -> //usr/lib64/opengl/xorg-x11/lib/libGL.so
Read my second comment, not my first.
/usr/lib64/opengl/xorg-x11/lib/libGL.so.1.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.20, stripped Strange that it is 32bit :S
Your USE flags include x86 on an amd64 system.
Thanks, It's confirmed.