Linker Problem mit glibc++

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
the_moon
Einsteiger
Einsteiger
Beiträge: 223
Registriert: Samstag 25. Januar 2003, 11:18

Linker Problem mit glibc++

Beitrag von the_moon »

HI,

heute habe ich, wie es ist, CDK von CVS Repository geholt und wie im INSTALL Doku beschriben wurde konfiguriert und kompilieren lassen.

Beim SDL stoppts es bim konfiguruieren.
Und zwar beim kompilieren eines c++ test Programmchen.

mit dem Befehl:
../../../installation/cdk/bin/powerpc-tuxbox-linux-gnu-g++ -o conftest -mcpu=823 -mmultiple -mstring -meabi -pipe -O2 -g3 -gdwarf-2 test.c
Und die Fehlermeldung
/root/dbox/installation/cdk/bin/../lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/../../../../powerpc-tuxbox-linux-gnu/lib/nof/libstdc++.so: undefined reference to `bool std::has_facet<std::num_get<wchar_t, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> > > >(std::locale const&)'
collect2: ld returned 1 exit status
Es ist gleich was in test.c steht, Hauptsache - kompilierbar muss sein. Das Problem liegt aufensichtlich an der c++ Bibliothek.
the_moon
Einsteiger
Einsteiger
Beiträge: 223
Registriert: Samstag 25. Januar 2003, 11:18

Beitrag von the_moon »

Was the question stupid or my german or something else? :)

It seems that half of foreign applications were compiled, including glibc and so on. And just as soon as the c++ compiler was needed, cams the problem.

Maybe version of glibc and SDL are incompatible?

Did someone compile the CDK on suse 9.2 last time? Can you tell me please the day on which you have extracted CDK and how are you configured it.

Thanks
Npq
Senior Member
Beiträge: 1339
Registriert: Donnerstag 24. April 2003, 12:12

Beitrag von Npq »

It's probably because only very few people actually know how the CDK and its components work (most just use scripts).

But back to your problem.

This seems to stem from the AC_PROG_CXX-test which just compiles a totally unimportant test program to find out if g++ works. Then again it's called "conftest.c" in my setup, I don't know why it's called "test.c" for you.

"has_facet" is part of the locale interface of the libstdc++-library. I doubt it is directly related to the problem but rather might be just a sign that there is something wrong with the libstdc++.so and/or the g++ compiler.

But I never had that problem, so you're on your own if you want to find out what's causing the problems.

Personally, I would not use Suse, I don't like it, it doesn't like me and seems to always present strange errors in places where you don't expect them.

I use Debian/Gentoo and have no problems with either distribution.
the_moon
Einsteiger
Einsteiger
Beiträge: 223
Registriert: Samstag 25. Januar 2003, 11:18

Beitrag von the_moon »

Yes, you are right, the test program is conftest.c, but i just created my own for tests - test.c.

I tried to link all libraries from installation directory but without success. I did hope that in some one library is the missing definition.

I hate STL, because of these very complexe definitions. It's very difficult to find problem source. :)