Package: knights Severity: normal Tags: patch When building 'knights' on amd64 with gcc-4.0, I get the following error:
core.cpp: In member function 'void core::createNewIO(int, int, int, int)': core.cpp:93: error: invalid lvalue in assignment core.cpp:117: error: invalid lvalue in assignment core.cpp:122: error: invalid lvalue in assignment make[3]: *** [core.o] Error 1 make[3]: Leaving directory `/knights-0.6/knights' With the attached patch 'knights' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/knights-0.6/knights/core.cpp ./knights/core.cpp --- ../tmp-orig/knights-0.6/knights/core.cpp 2003-03-02 11:34:04.000000000 +0100 +++ ./knights/core.cpp 2005-03-19 09:35:36.364598743 +0100 @@ -90,7 +90,7 @@ else { /* Use an existing internetIO */ - (io_base*)internetioPtr = myIOMap.find(Null); + internetioPtr = (io_internet*) myIOMap.find(Null); if( internetioPtr == NULL ) { kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; @@ -114,12 +114,12 @@ } else { - (io_base*)internetioPtr = myIOMap.find(ID); + internetioPtr = (io_internet*) myIOMap.find(ID); if( internetioPtr == NULL ) { /* no io mapped to the ID yet, use the internetio */ /* Use an existing internetIO */ - (io_base*)internetioPtr = myIOMap.find(Null); + internetioPtr = (io_internet*) myIOMap.find(Null); if( internetioPtr == NULL ) { kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]