GCC im Eimer
-
hallo,
es war jetzt an der zeit, mein Qt upzudaten.
Ich hatte die Version 3.0.5 und habe mir dann die Version 3.1.1 runtergeladen.
Ich ging ganz normal vor:
tarball entpacken,
in das verzeichnis wechseln und habe dann erstmal ./configure gestartet.
Alles lied problemlos.
dann kam die meldung:
"Qt is now configured. run gmake now"
ok, also habe ich gmake gestartet.
Auch dies lief ohne fehler ab.So, nur jetzt gehts leider los:
ich wollte natuerlich ausprobieren wie das neue denn so ist, und habe deswegen probiert einen ( fehlerfreien ) code zu kompilieren.hm, scheisse, fehler dacht ich mir und wollte dann mal sehen ab wo die fehler anfangen.
also nahm ich mir das simpelste von der welt:
ein hello world, was ja ausser iostream nichts inkludiert.
Aber wieder die gleichen fehler. Hier mal die Fehlermeldung:[tuxipuxi@linux tuxipuxi]$ g++ test.cpp In file included from /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:37, from /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr.h:98, from /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/c++io.h:37, from /usr/include/c++/3.2/bits/fpos.h:44, from /usr/include/c++/3.2/iosfwd:46, from /usr/include/c++/3.2/ios:44, from /usr/include/c++/3.2/ostream:45, from /usr/include/c++/3.2/iostream:45, from test.cpp:1: /usr/include/pthread.h:163: `pthread_t' was not declared in this scope /usr/include/pthread.h:163: parse error before `,' token /usr/include/pthread.h:165: `pthread_create' declared as function returning a function /usr/include/pthread.h:166: parse error before `void' /usr/include/pthread.h:169: syntax error before `(' token /usr/include/pthread.h:172: `pthread_t' was not declared in this scope /usr/include/pthread.h:172: parse error before `,' token /usr/include/pthread.h:181: `pthread_t' was not declared in this scope /usr/include/pthread.h:181: parse error before `,' token /usr/include/pthread.h:187: `pthread_t' was not declared in this scope /usr/include/pthread.h:187: parse error before `)' token /usr/include/pthread.h:195: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:195: `__attr' was not declared in this scope /usr/include/pthread.h:198: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:198: `__attr' was not declared in this scope /usr/include/pthread.h:201: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:201: `__attr' was not declared in this scope /usr/include/pthread.h:202: parse error before `)' token /usr/include/pthread.h:205: parse error before `*' token /usr/include/pthread.h:209: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:209: parse error before `,' token /usr/include/pthread.h:214: parse error before `*' token /usr/include/pthread.h:220: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:220: `__attr' was not declared in this scope /usr/include/pthread.h:220: parse error before `)' token /usr/include/pthread.h:224: parse error before `*' token /usr/include/pthread.h:229: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:229: `__attr' was not declared in this scope /usr/include/pthread.h:230: parse error before `)' token /usr/include/pthread.h:233: parse error before `*' token /usr/include/pthread.h:238: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:238: `__attr' was not declared in this scope /usr/include/pthread.h:238: parse error before `)' token /usr/include/pthread.h:242: parse error before `*' token /usr/include/pthread.h:247: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:247: `__attr' was not declared in this scope /usr/include/pthread.h:248: parse error before `)' token /usr/include/pthread.h:251: parse error before `*' token /usr/include/pthread.h:260: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:260: `__attr' was not declared in this scope /usr/include/pthread.h:261: parse error before `*' token /usr/include/pthread.h:264: parse error before `*' token /usr/include/pthread.h:272: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:272: `__attr' was not declared in this scope /usr/include/pthread.h:272: parse error before `*' token /usr/include/pthread.h:276: parse error before `*' token /usr/include/pthread.h:284: `pthread_attr_t' was not declared in this scope /usr/include/pthread.h:284: `__attr' was not declared in this scope /usr/include/pthread.h:285: parse error before `)' token /usr/include/pthread.h:288: parse error before `*' token /usr/include/pthread.h:294: `pthread_t' was not declared in this scope /usr/include/pthread.h:294: parse error before `,' token /usr/include/pthread.h:301: `pthread_t' was not declared in this scope /usr/include/pthread.h:301: parse error before `,' token /usr/include/pthread.h:306: `pthread_t' was not declared in this scope /usr/include/pthread.h:306: parse error before `,' token /usr/include/pthread.h:331: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:331: parse error before `,' token /usr/include/pthread.h:336: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:336: `__mutex' was not declared in this scope /usr/include/pthread.h:339: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:339: `__mutex' was not declared in this scope /usr/include/pthread.h:342: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:342: `__mutex' was not declared in this scope /usr/include/pthread.h:346: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:346: parse error before `,' token /usr/include/pthread.h:352: `pthread_mutex_t' was not declared in this scope /usr/include/pthread.h:352: `__mutex' was not declared in this scope /usr/include/pthread.h:359: `pthread_mutexattr_t' was not declared in this scope /usr/include/pthread.h:359: `__attr' was not declared in this scope /usr/include/pthread.h:362: `pthread_mutexattr_t' was not declared in this scope /usr/include/pthread.h:362: `__attr' was not declared in this scope /usr/include/pthread.h:365: parse error before `*' token /usr/include/pthread.h:370: `pthread_mutexattr_t' was not declared in this scope /usr/include/pthread.h:370: `__attr' was not declared in this scope /usr/include/pthread.h:371: parse error before `)' token /usr/include/pthread.h:377: `pthread_mutexattr_t' was not declared in this scope /usr/include/pthread.h:377: `__attr' was not declared in this scope /usr/include/pthread.h:377: parse error before `)' token /usr/include/pthread.h:381: parse error before `*' token /usr/include/pthread.h:390: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:390: parse error before `,' token /usr/include/pthread.h:395: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:395: `__cond' was not declared in this scope /usr/include/pthread.h:398: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:398: `__cond' was not declared in this scope /usr/include/pthread.h:401: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:401: `__cond' was not declared in this scope /usr/include/pthread.h:405: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:405: parse error before `,' token /usr/include/pthread.h:412: `pthread_cond_t' was not declared in this scope /usr/include/pthread.h:412: parse error before `,' token /usr/include/pthread.h:420: `pthread_condattr_t' was not declared in this scope /usr/include/pthread.h:420: `__attr' was not declared in this scope /usr/include/pthread.h:423: `pthread_condattr_t' was not declared in this scope /usr/include/pthread.h:423: `__attr' was not declared in this scope /usr/include/pthread.h:426: parse error before `*' token /usr/include/pthread.h:431: `pthread_condattr_t' was not declared in this scope /usr/include/pthread.h:431: `__attr' was not declared in this scope /usr/include/pthread.h:432: parse error before `)' token /usr/include/pthread.h:440: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:440: parse error before `,' token /usr/include/pthread.h:445: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:445: `__rwlock' was not declared in this scope /usr/include/pthread.h:448: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:448: `__rwlock' was not declared in this scope /usr/include/pthread.h:451: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:451: `__rwlock' was not declared in this scope /usr/include/pthread.h:455: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:455: parse error before `,' token /usr/include/pthread.h:461: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:461: `__rwlock' was not declared in this scope /usr/include/pthread.h:464: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:464: `__rwlock' was not declared in this scope /usr/include/pthread.h:468: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:468: parse error before `,' token /usr/include/pthread.h:474: `pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:474: `__rwlock' was not declared in this scope /usr/include/pthread.h:480: `pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:480: `__attr' was not declared in this scope /usr/include/pthread.h:483: `pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:483: `__attr' was not declared in this scope /usr/include/pthread.h:486: parse error before `*' token /usr/include/pthread.h:491: `pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:491: `__attr' was not declared in this scope /usr/include/pthread.h:492: parse error before `)' token /usr/include/pthread.h:495: parse error before `*' token /usr/include/pthread.h:499: `pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:499: `__attr' was not declared in this scope /usr/include/pthread.h:500: parse error before `)' token /usr/include/pthread.h:509: `pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:509: `__lock' was not declared in this scope /usr/include/pthread.h:509: parse error before `)' token /usr/include/pthread.h:513: `pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:513: `__lock' was not declared in this scope /usr/include/pthread.h:516: `pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:516: `__lock' was not declared in this scope /usr/include/pthread.h:519: `pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:519: `__lock' was not declared in this scope /usr/include/pthread.h:522: `pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:522: `__lock' was not declared in this scope /usr/include/pthread.h:527: `pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:527: parse error before `,' token /usr/include/pthread.h:531: `pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:531: `__barrier' was not declared in this scope /usr/include/pthread.h:533: `pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:533: `__attr' was not declared in this scope /usr/include/pthread.h:535: `pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:535: `__attr' was not declared in this scope /usr/include/pthread.h:537: parse error before `*' token /usr/include/pthread.h:541: `pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:541: `__attr' was not declared in this scope /usr/include/pthread.h:542: parse error before `)' token /usr/include/pthread.h:544: `pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:544: `__barrier' was not declared in this scope /usr/include/pthread.h:556: `pthread_key_t' was not declared in this scope /usr/include/pthread.h:556: `__key' was not declared in this scope /usr/include/pthread.h:557: `__destr_function' was not declared in this scope /usr/include/pthread.h:557: parse error before `*' token /usr/include/pthread.h: In function `int pthread_key_create(...)': /usr/include/pthread.h:560: `pthread_key_t' undeclared (first use this function) /usr/include/pthread.h:560: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/pthread.h:560: parse error before `)' token /usr/include/pthread.h:563: parse error before `,' token /usr/include/pthread.h:567: parse error before `)' token /usr/include/pthread.h:576: `pthread_once_t' undeclared (first use this function) /usr/include/pthread.h:576: `__once_control' undeclared (first use this function) /usr/include/pthread.h:577: `__init_routine' undeclared (first use this function) /usr/include/pthread.h:577: parse error before `)' token /usr/include/pthread.h:577: initializer list being treated as compound expression /usr/include/pthread.h:577: syntax error before `)' token /usr/include/pthread.h:591: `pthread_t' undeclared (first use this function) /usr/include/pthread.h:591: parse error before `)' token /usr/include/pthread.h:649: parse error before `,' token In file included from /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr.h:98, from /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/c++io.h:37, from /usr/include/c++/3.2/bits/fpos.h:44, from /usr/include/c++/3.2/iosfwd:46, from /usr/include/c++/3.2/ios:44, from /usr/include/c++/3.2/ostream:45, from /usr/include/c++/3.2/iostream:45, from test.cpp:1: /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:39: syntax error before `;' token /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:40: syntax error before `;' token /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:41: syntax error before `;' token /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:82: cannot declare static function inside another function /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h: In function `int __gthread_active_p()': /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: `__gthread_once_t' undeclared (first use this function) /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: `once' undeclared (first use this function) /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: `func' undeclared (first use this function) /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: parse error before `)' token /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: `__gthread_once' declared as an `inline' variable /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: initializer list being treated as compound expression /usr/include/c++/3.2/i586-mandrake-linux-gnu/bits/gthr-default.h:438: confused by earlier errors, bailing out [tuxipuxi@linux tuxipuxi]$
bisherige versuche:
-gcc ueber rpm neuinstallieren -- hat nichts verbesssert.
-Qt neuinstallieren -- auch nicht.
-pthread.h durch funktionierende ersetzen -- auch nicht.
-ganz toll fluchen-- auch nicht.
Es handelt sich um Mandrake 9 mit bisherig GCC 2.95-3 und jetzt 3.21.
Waere sehr froh ueber vorschlaege wie ich das wieder hinbekomme.
Gruss Michael
-
Ich hatte mal ähnliche Probleme. Man muss auf dem System immer eine zum Compiler kompatible glibc(keine Ahnung wie jetzt das cpp-Pendant heisst) haben. Lad dir einfach die neueste glibc runter und installier diese. Vielleicht klappts ja?
-
Nach den Fehlern zu urteilen sieht es so aus, als wenn du C Code mit einem C++ Compiler compilierst. Compilier mal mit dem gcc und nicht mit dem g++.
-
Ach doch nicht. cu.
-
update mal die libstdc++, wahrscheinlich hat QT die ein wenig zerschossen
-
Genau, die war's!
-
Original erstellt von <tuxipuxi>:
**```
[tuxipuxi@linux tuxipuxi]$Wie süß ...
-
soooo,
hab jetzt gcc und so plattgemacht und neuinstalliert.
fehler haben sich schon auf 1/3 verkleinert.
problem jetzt:code:
[tuxipuxi@linux tuxipuxi]$ g++ test.cpp
/lib/libc.so.6: undefined reference to\_dl\_lazy@GLIBC_2.1.1' /lib/libc.so.6: undefined reference to
_dl_dst_substitute@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to\_dl\_out\_of\_memory@GLIBC_2.2' /lib/libc.so.6: undefined reference to
_dl_relocate_object@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_clktck@GLIBC_2.2' /lib/libc.so.6: undefined reference to
__libc_enable_secure@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_catch\_error@GLIBC\_2.0' /lib/libc.so.6: undefined reference to
_dl_platformlen@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to\_dl\_lookup\_versioned\_symbol\_skip@GLIBC\_2.0' /lib/libc.so.6: undefined reference to
_dl_lookup_versioned_symbol@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_dst\_count@GLIBC\_2.1.1' /lib/libc.so.6: undefined reference to
_dl_initial_searchlist@GLIBC_2.1'
/lib/libc.so.6: undefined reference to\_dl\_start\_profile@GLIBC\_2.1' /lib/libc.so.6: undefined reference to
_dl_lookup_symbol@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_\_libc\_stack\_end@GLIBC\_2.1' /lib/libc.so.6: undefined reference to
_dl_argv@GLIBC_2.2'
/lib/libc.so.6: undefined reference to\_dl\_loaded@GLIBC_2.1' /lib/libc.so.6: undefined reference to
_dl_origin_path@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to\_dl\_check\_map\_versions@GLIBC_2.2' /lib/libc.so.6: undefined reference to
_dl_map_object@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_main\_searchlist@GLIBC\_2.1' /lib/libc.so.6: undefined reference to
_dl_debug_mask@GLIBC_2.2.3'
/lib/libc.so.6: undefined reference to\_dl\_load\_lock@GLIBC\_2.2' /lib/libc.so.6: undefined reference to
_dl_profile@GLIBC_2.1'
/lib/libc.so.6: undefined reference to\_dl\_debug\_state@GLIBC\_2.0' /lib/libc.so.6: undefined reference to
_dl_init_all_dirs@GLIBC_2.2'
/lib/libc.so.6: undefined reference to\_dl\_unload\_cache@GLIBC\_2.1' /lib/libc.so.6: undefined reference to
_dl_signal_error@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_debug\_printf@GLIBC\_2.2.3' /lib/libc.so.6: undefined reference to
_dl_init@GLIBC_2.2'
/lib/libc.so.6: undefined reference to\_dl\_all\_dirs@GLIBC\_2.2' /lib/libc.so.6: undefined reference to
_dl_map_object_deps@GLIBC_2.0'
/lib/libc.so.6: undefined reference to\_dl\_nloaded@GLIBC_2.2' /lib/libc.so.6: undefined reference to
_dl_profile_map@GLIBC_2.1'
/lib/libc.so.6: undefined reference to\_dl\_profile\_output@GLIBC\_2.1' /lib/libc.so.6: undefined reference to
_dl_pagesize@GLIBC_2.2'
/lib/libc.so.6: undefined reference to\_dl\_lookup\_symbol\_skip@GLIBC_2.0' /lib/libc.so.6: undefined reference to
_dl_fpu_control@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc@GLIBC_2.1'
collect2: ld returned 1 exit status
[tuxipuxi@linux tuxipuxi]$nun hab ich versucht die pakete wo libc drin enthalten ist zu entfernen.
aber das waere nicht von vorteil, weil durch die abhaengigkeiten dann sogar XFree entfernt werden muesste.jemand ne idee?
schon mal danke.
gruss michael