This bug appears when trying to compile XFree (all versions in 1.4rc1) and concerns libGLU.so. The build error I speak of has been reported here: 1) http://forums.gentoo.org/viewtopic.php?t=11028&highlight=libglu+error 2) http://forums.gentoo.org/viewtopic.php?t=14811&highlight=x11+emerge+error 3) http://lists.gentoo.org/pipermail/gentoo-user/2002-August/029655.html And also, by me, in another separate post located here: http://forums.gentoo.org/viewtopic.php?p=99489#99489 When compiling Xfree86 (emerge xfree) 4.2.0-r12 (as well as all other versions of xfree included in 1.4rc1), I (and a few others) get the following error: ../../exports/lib/libGLU.so: undefined reference to '__cxa_pure_virtual@CXXABI_1.2' ../../exports/lib/libGLU.so: undefined reference to 'operator new[] (unsigned)@GLIBCPP_3.2' ../../exports/lib/libGLU.so: undefined reference to 'operator delete(void*)@GLIBCPP_3.2 ... !!! ERROR: The ebuild did not complete successfully. !!! Function src_install, Line 7, Exitcode 2 !!! (no error message) The error message varies slightly with each version of Xfree trying to be compiled (such as error on line 8 instead of line 7) but all have a problem with libGLU. URL #2 up there has my exact error; I've achieved this error every single time, and I've done a lot of things beforehand to try and correct it so as to not bother anyone, but so far I haven't been able to fix it =( I've installed my gentoo system from the 1.4rc1 boot CD (this is my first gentoo system) and I need this build to set up a gnome desktop. I emerged xfree a few times to no avail, and thought it might be my compiler settings. I modified them to very conservative (the defaults; "-march=athlon- tbird - O3 -pipe", which didn't help. I also added "-acl" (removing ACL support) to my USE variable, and emerged fileUtils, as suggested in url #2 up there, but that unfortunatley didn't help. I emerged glibc on it's own, and it installed fine. In the error message output by xfree (above), it say's its missing things in glibcpp_3.2 I've heard talk that libGLU might be using C++ headers or something, even though it is C, but I don't know much about that library or what's going on with its compilation. I've emerged xfree numerous times, each taking quite a long time, and am now willing to take apart an ebuild and patch it if neccessary; anything to get it up and running really. I've also emerge sync 'ed, which gives me ebuilds from Oct5 (today I tried to compile on Oct6, to no avail) so I'm assuming this bug isn't well known, as the newer builds are released and this issue isn't mentioned/resolved. Thanks for reading, thanks even more if you have help; any help would be appreciated.
I have discovered a solution thanks to the help of rac in the gentoo/portage forum. THe problem was that my default GCC 3.2 install (and other's as well) was missing libstdc++.so.5, which was causing the undefined references when compiling xfree. Remerging GCC fixed it. This install (installed from the 1.4rc1 CD's, after emerge syncing) apparently installed successfully, but left out that important library. The man command did not function correctly because of the absence of this library, which led me to ask about it and reemerge gcc. Remerging gcc fixed the problem. Perhaps my original install was a gcc3.2_pre* version; whatever it was, the newest gcc from the portage tree fixed the above problem.