[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: balsa build help



> -----Original Message-----
> From: Adam Majer [mailto:adamm@galacticasoftware.com]
> Sent: Wednesday, January 23, 2002 1:47 PM
> To: Domenico Andreoli
> Cc: Jules Bean; debian-devel@lists.debian.org
> Subject: Re: balsa build help
> 
> The problem is that this is a C++ file not a C file - the extention is
> screwed up...
> You can rename the file to .cpp or .cc or force C++ compilation for all
> files.
> 
> - Adam

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.

Something like:

LIBS="$LIBS -lstdc++"

before the test should help. Or you could change the language to
(AC_SET_LANG) to C++ and then the test should be compiled as C++.

YA

> PS. lstrc++ is missed because c programs don't use that...
> 
> 
> On Wed, Jan 23, 2002 at 05:12:42PM +0100, Domenico Andreoli wrote:
> > [ from config.log ]
> >
> > ...
> > configure:8727: checking for ldap_search in -lldap
> > configure:8746: gcc -o conftest -g -O2 -I/usr/include/glib-1.2 -
> I/usr/lib/glib/include -D_REENTRANT  -I/usr/include/gtk-1.2 -
> I/usr/include/
> > glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  conftest.c -lldap
> -llber -lpspell  -L/usr/lib -lgthread -lglib -lpthread 1>&5
> > /usr/lib/libpspell.so: undefined reference to `ios virtual table'
> > /usr/lib/libpspell.so: undefined reference to `ostream::flush(void)'
> > /usr/lib/libpspell.so: undefined reference to `istream::ios virtual
> table'
> > /usr/lib/libpspell.so: undefined reference to `ostream::operator<<(char
> const *)'
> > /usr/lib/libpspell.so: undefined reference to `ostream &
> operator<<<int>(ostream &, smanip<int> const &)'
> > /usr/lib/libpspell.so: undefined reference to
> `ifstream::~ifstream(void)'
> > /usr/lib/libpspell.so: undefined reference to `__iomanip_setw(ios &,
> int)'
> > /usr/lib/libpspell.so: undefined reference to
> `fstreambase::fstreambase(int, char const *, int, int)'
> > /usr/lib/libpspell.so: undefined reference to `ifstream::ios virtual
> table'
> > collect2: ld returned 1 exit status
> > configure: failed program was:
> > #line 8735 "configure"
> > #include "confdefs.h"
> > /* Override any gcc2 internal prototype to avoid an error.  */
> > /* We use char because int might match the return type of a gcc2
> >     builtin and then its argument prototype would still apply.  */
> > char ldap_search();
> >
> > int main() {
> > ldap_search()
> > ; return 0; }
> >
> > [ EOF ]
> >
> >
> > as you see, this seems to be a problem of libpspell... i already
> > suspected of it, but i waited to see some other failure. sorry...
> >
> > this problem is the same on suse 7.3, please see thread at
> > http://mail.gnome.org/archives/balsa-list/2001-December/msg00056.html.
> >
> > since i didn't change almost anything in between 0.12.2-2 and -3,
> > if not a run of libtoolize or the like, i think it is a problem of
> > libtool buried somewhere.
> >
> > it seems to be a missing "-lstdc++" somewhere...
> >
> > is it possible?
> >
> > hmm... so it would not really be a pspell failure...
> >
> > any new hint?
> >
> > making a search for "undefined reference to `ios virtual table'" with
> > google gives lots of matches...
> >
> > regards
> 5A
> 
> 
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org



Reply to: