Re: balsa build help
On Wed, Jan 23, 2002 at 01:57:15PM -0800, Yves Arrouye wrote:
> It is a C file. But one of the libraries it links against depends on the C++
> runtime, which is usually added by the C++ driver.
libpspell is a C++ library, and needs to be linked against libc++.
06:52pm email@example.com/2 [~] ldd /usr/lib/libpspell.so
libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4002b000)
libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 (0x40031000)
libc.so.6 => /lib/libc.so.6 (0x40033000)
libdl.so.2 => /lib/libdl.so.2 (0x40157000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
This should list libstdc++; this is a bug. (Filed.)
Since this test doesn't seem to have anything to do with pspell, it
doesn't need to link against it. If this doesn't get fixed soon in
pspell, the best fix you could make is to not link this test against
pspell. I'm not sure why autoconf does this. (I'd think this would
cause problems; the test is merely to find if a library is available,
and linking against other tested libraries could make it fail if they
conflicted in some way.)
If that's unavoidable, change the compiler to C++ for the duration of
the test, but since you're testing a C library this would be a hack.
Don't add -lstdc++ to the library list. Let g++ deal with that.