Package: nethack Severity: normal Tags: patch When building 'nethack' on amd64 with gcc-4.0, I get the following error:
cc -O2 -I../include -g -Wall -DGCC_WARN -DQT_GRAPHICS -c ../win/tty/wintty.c /usr/bin/moc -o qt_win.moc ../include/qt_win.h /usr/bin/moc -o qt_kde0.moc ../include/qt_kde0.h /usr/bin/moc -o qttableview.moc ../include/qttableview.h g++ -O2 -I../include -g -Wall -DGCC_WARN -DQT_GRAPHICS -I. -I/usr/include/qt3 -c ../win/Qt/qt_win.cpp ../win/Qt/qt_win.cpp:4444: error: non-local variable '<anonymous struct> key_macro []' uses anonymous type make[2]: *** [qt_win.o] Error 1 make[2]: Leaving directory `/nethack-3.4.3/src' With the attached patch 'nethack' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/nethack-3.4.3/win/Qt/qt_win.cpp ./win/Qt/qt_win.cpp --- ../tmp-orig/nethack-3.4.3/win/Qt/qt_win.cpp 2003-12-08 00:39:13.000000000 +0100 +++ ./win/Qt/qt_win.cpp 2005-03-01 22:01:06.206733243 +0100 @@ -4436,7 +4436,7 @@ // XXX define "-" to do "E-yyyyyyyy\r", but would still need "-" for // XXX other purposes. Maybe just too bad. // -struct { +static struct { int key; int state; const char* macro; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]