View previous topic :: View next topic |
Author |
Message |
mouve n00b
Joined: 08 Feb 2005 Posts: 30
|
Posted: Tue Feb 08, 2005 10:33 am Post subject: emerge-Problem mit glxext.h [erledigt] |
|
|
Hallo.
Ich hab bei meinem Systemupdate heute (mal wieder) eine Fehlermeldung bekommen, diesmal von qt (audacity war auch schon mal so ein Kandidat):
[...]
g++ -c -pipe -fno-exceptions -Wall -W -march=athlon-xp -O2 -mcpu=athlon-xp -pipe -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.4-r1/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qglcolormap.o opengl/qglcolormap.cpp
In Datei, eingefügt von /usr/include/GL/glx.h:117,
von opengl/qgl.cpp:52:
/usr/include/GL/glxext.h:355:2: ungültige Präprozessordirektive #warn
/var/tmp/portage/qt-3.3.4-r1/work/qt-x11-free-3.3.4/bin/moc opengl/qgl_x11.cpp -o .moc/release-shared-mt/qgl_x11.moc
g++ -c -pipe -fno-exceptions -Wall -W -march=athlon-xp -O2 -mcpu=athlon-xp -pipe -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.4-r1/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qsqlquery.o sql/qsqlquery.cpp
make[1]: *** [.obj/release-shared-mt/qgl.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[1]: Leaving directory `/var/tmp/portage/qt-3.3.4-r1/work/qt-x11-free-3.3.4/src'
make: *** [sub-src] Fehler 2
!!! ERROR: x11-libs/qt-3.3.4-r1 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! (no error message)
Der eingegebene Text ist zwar etwas lang, aber meines Wissens passiert das Wesentliche bei
In Datei, eingefügt von /usr/include/GL/glx.h:117,
von opengl/qgl.cpp:52:
/usr/include/GL/glxext.h:355:2: ungültige Präprozessordirektive #warn
Wo genau liegt nun das Problem bzw. wie kann man es beheben? glxext.h scheint öfter benötigt zu sein, insofern ist möglicherweise mit Xorg was nicht in Ordnung.
Danke
Last edited by mouve on Thu Feb 10, 2005 3:23 pm; edited 2 times in total |
|
Back to top |
|
|
erikm l33t
Joined: 08 Feb 2005 Posts: 634
|
Posted: Tue Feb 08, 2005 4:08 pm Post subject: |
|
|
Hi.
I don't speak German, but from what I can tell I had the same problem. Looking at the error message, it is clear that the problem is the line "#warn" in the file /usr/include/GL/glxext.h. I had a look at this file, and it seems all it does is echo a warning if a condition in the previous statement isnt fulfilled. I am no programmer, but I think this echo line simply has bad cpp syntax.
I chose to simply comment this line and the above one out, to remove the error message:
...
/* #else */
/* #warn "..." */
#endif
This works for me, with my standard gcc and flags. Finally, I'd like to make a friendly suggestion: If you have a problem, post it (and more importantly, the solution) in English in the englishspeaking forums. That way much more people can benefit from your competence. Most here do not speak English as their mother tongue, but still try to use it for posts... |
|
Back to top |
|
|
mouve n00b
Joined: 08 Feb 2005 Posts: 30
|
Posted: Tue Feb 08, 2005 4:25 pm Post subject: |
|
|
OK, ich hab es mal mit /sbin/fix_libtool_files.sh versucht, vielleicht haut's jetzt hin.
Hi, Erik
Thanks for your reply. I'm not sure yet if I should edit the source code, simply because I'm no programmer either, and I'm also quite unsure about what might happen if I did. Maybe it's an important warning... (o:
But I'm gonna post this in the english-speaking forum, maybe I'm not the only one having this problem. |
|
Back to top |
|
|
erikm l33t
Joined: 08 Feb 2005 Posts: 634
|
Posted: Tue Feb 08, 2005 5:02 pm Post subject: |
|
|
Hi,
well, I agree. You shouldn't mess with code you dont understand (which is what I am doing ). My idea was, I can always recompile the libraries once I find a fix for glxext.h, and I am certain removing the else statement with the warning does not change how the code runs in any way. I need my Linux system up and working as soon as possible, I'm afraid... It would be great if you could post the bug... Thanks! |
|
Back to top |
|
|
mouve n00b
Joined: 08 Feb 2005 Posts: 30
|
Posted: Tue Feb 08, 2005 7:54 pm Post subject: |
|
|
So, wie man an der Überschrift sehen kann, hat sich das Problem nun von qt auf die Datei glxext.h verlagert... scheint ein Xorg-Problem zu sein. Wirft das evtl. ein neues Licht auf die Sache? Xorg ist bei mir in der Version 6.8.1.904 |
|
Back to top |
|
|
foobar_online n00b
Joined: 01 Mar 2004 Posts: 7
|
|
Back to top |
|
|
mouve n00b
Joined: 08 Feb 2005 Posts: 30
|
Posted: Thu Feb 10, 2005 3:25 pm Post subject: |
|
|
Ah, danke. Ich hab einfach eine neue Version von opengl-update installiert, so gehts auch (o:
Thx. I managed the problem by installing a new version of opengl-update. |
|
Back to top |
|
|
|