Click to See Complete Forum and Search --> : C++ Build Environment Problems...


farrow
02-23-2001, 10:32 AM
Hey guys, I'm having a little build environment problem when building from source for some tarballs of C++ source. I keep getting these undefined reference errors and oddball library warnings, and I'm not sure how to squash them.

For example, when I try and build on of the kde tarballs, I get:
libtool: link: warning: library `/usr/lib/libstdc++.la' was moved.
libtool: link: warning: library `/usr/lib/libstdc++.la' was moved.

<a linker step--snipped for brevity>


/usr/bin/ld: warning: libgcc_s.so.0, needed by /usr/lib/libstdc++.so, not found (try using -rpath or -rpath-link)
/usr/lib/libstdc++.so: undefined reference to `__eh_alloc@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__eh_free@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__throw@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__get_eh_info@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__terminate@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__terminate_set_func@GCC_3.0'
/usr/lib/libstdc++.so: undefined reference to `__rethrow@GCC_3.0'


First, let me say that I can compile and link, regular, ANSI, C++ applications just fine...no strange errors or anything. Second, let me say, that I *used* to be able to build this package from scratch...and I really don't know what's changed. I'm baffled by the gcc3.0 snapshot errors, because there are no gcc3.0 snapshots installed on my system. I did install snapshots a while ago, but have since removed them....but I think this may be the problem. The gcc version on my system is 2.95.2, and I've tried reinstalling the gcc and libstdc++ packages from the CD of my distro(Mandrake), and reran ldconfig and everything...but I still get the same errors. (Let me also say, I've never done anything silly like run MandrakeUpdate or anything like that ;) ).

Can anybody help me get this system back to being a sane build environment? I'm more interested in where to look, so if somebody could just point me in the right direction, I'd greatly appreciate it.

Thanks in advance!