Public bug reported:
Binary package hint: libstdc++6-4.1-dev
I have a problem compiling the last version of CrystalSpace using the
last version of Ubuntu (edgy, up to date)
The configure script fails. I extracted the source being tested by configure
and tried to compiled it, and I saw something strange.
The programme is linked against libstdc++ version 4.2.1 and it says :
/usr/lib/gcc/i486-linux-gnu/4.1.2/libstdc++.so: undefined reference to [EMAIL
PROTECTED]'
collect2: ld returned 1 exit status
Is that normal ?
I don't think it is normal that a program linked with the version 4.1 of the
library seek for a symbol of the version 4.2 .. is it ?
Here is the source file :
=======================================
/* end confdefs.h. */
/* Define fwide to an innocuous variant, in case <limits.h> declares fwide.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define fwide innocuous_fwide
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char fwide (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef fwide
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char fwide ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_fwide) || defined (__stub___fwide)
choke me
#else
char (*f) () = fwide;
#endif
#ifdef __cplusplus
}
#endif
int
main ()
{
return f != fwide;
;
return 0;
}
=======================================
compile using : g++ -o conftest conftest.cc -lnsl
** Affects: gcc-4.1 (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
libstdc++.so: undefined reference to [EMAIL PROTECTED]'
https://launchpad.net/bugs/63441
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs