Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Can't compile revision 2032 in debian lenny

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Locked
horse
Average
Average
Posts: 15
Joined: Fri Feb 06, 2009 1:03 pm
Location: Edinburgh

Can't compile revision 2032 in debian lenny

Post by horse »

Hi,

I just had my first go at updating my executable from the SVN trunk.

So, I ran svn update and got revision 2032

then did a dpkg-buildpackage to recompile the code and I got these errors
Compiling file src/Core/Entities/ShipEntity.m ...
In file included from /usr/include/GNUstep/AppKit/AppKit.h:74,
from /usr/include/GNUstep/Cocoa/Cocoa.h:34,
from src/Core/OOExcludeObjectEnumerator.h:28,
from src/Core/Entities/ShipEntity.m:43:
/usr/include/GNUstep/AppKit/NSEvent.h:382: error: redeclaration of enumerator ‘NSUpArrowFunctionKey’
src/Core/OOCocoa.h:100: error: previous definition of ‘NSUpArrowFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:383: error: redeclaration of enumerator ‘NSDownArrowFunctionKey’
src/Core/OOCocoa.h:101: error: previous definition of ‘NSDownArrowFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:384: error: redeclaration of enumerator ‘NSLeftArrowFunctionKey’
src/Core/OOCocoa.h:102: error: previous definition of ‘NSLeftArrowFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:385: error: redeclaration of enumerator ‘NSRightArrowFunctionKey’
src/Core/OOCocoa.h:103: error: previous definition of ‘NSRightArrowFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:386: error: redeclaration of enumerator ‘NSF1FunctionKey’
src/Core/OOCocoa.h:104: error: previous definition of ‘NSF1FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:387: error: redeclaration of enumerator ‘NSF2FunctionKey’
src/Core/OOCocoa.h:105: error: previous definition of ‘NSF2FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:388: error: redeclaration of enumerator ‘NSF3FunctionKey’
src/Core/OOCocoa.h:106: error: previous definition of ‘NSF3FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:389: error: redeclaration of enumerator ‘NSF4FunctionKey’
src/Core/OOCocoa.h:107: error: previous definition of ‘NSF4FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:390: error: redeclaration of enumerator ‘NSF5FunctionKey’
src/Core/OOCocoa.h:108: error: previous definition of ‘NSF5FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:391: error: redeclaration of enumerator ‘NSF6FunctionKey’
src/Core/OOCocoa.h:109: error: previous definition of ‘NSF6FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:392: error: redeclaration of enumerator ‘NSF7FunctionKey’
src/Core/OOCocoa.h:110: error: previous definition of ‘NSF7FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:393: error: redeclaration of enumerator ‘NSF8FunctionKey’
src/Core/OOCocoa.h:111: error: previous definition of ‘NSF8FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:394: error: redeclaration of enumerator ‘NSF9FunctionKey’
src/Core/OOCocoa.h:112: error: previous definition of ‘NSF9FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:395: error: redeclaration of enumerator ‘NSF10FunctionKey’
src/Core/OOCocoa.h:113: error: previous definition of ‘NSF10FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:396: error: redeclaration of enumerator ‘NSF11FunctionKey’
src/Core/OOCocoa.h:114: error: previous definition of ‘NSF11FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:397: error: redeclaration of enumerator ‘NSF12FunctionKey’
src/Core/OOCocoa.h:115: error: previous definition of ‘NSF12FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:398: error: redeclaration of enumerator ‘NSF13FunctionKey’
src/Core/OOCocoa.h:116: error: previous definition of ‘NSF13FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:399: error: redeclaration of enumerator ‘NSF14FunctionKey’
src/Core/OOCocoa.h:117: error: previous definition of ‘NSF14FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:400: error: redeclaration of enumerator ‘NSF15FunctionKey’
src/Core/OOCocoa.h:118: error: previous definition of ‘NSF15FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:401: error: redeclaration of enumerator ‘NSF16FunctionKey’
src/Core/OOCocoa.h:119: error: previous definition of ‘NSF16FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:402: error: redeclaration of enumerator ‘NSF17FunctionKey’
src/Core/OOCocoa.h:120: error: previous definition of ‘NSF17FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:403: error: redeclaration of enumerator ‘NSF18FunctionKey’
src/Core/OOCocoa.h:121: error: previous definition of ‘NSF18FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:404: error: redeclaration of enumerator ‘NSF19FunctionKey’
src/Core/OOCocoa.h:122: error: previous definition of ‘NSF19FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:405: error: redeclaration of enumerator ‘NSF20FunctionKey’
src/Core/OOCocoa.h:123: error: previous definition of ‘NSF20FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:406: error: redeclaration of enumerator ‘NSF21FunctionKey’
src/Core/OOCocoa.h:124: error: previous definition of ‘NSF21FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:407: error: redeclaration of enumerator ‘NSF22FunctionKey’
src/Core/OOCocoa.h:125: error: previous definition of ‘NSF22FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:408: error: redeclaration of enumerator ‘NSF23FunctionKey’
src/Core/OOCocoa.h:126: error: previous definition of ‘NSF23FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:409: error: redeclaration of enumerator ‘NSF24FunctionKey’
src/Core/OOCocoa.h:127: error: previous definition of ‘NSF24FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:410: error: redeclaration of enumerator ‘NSF25FunctionKey’
src/Core/OOCocoa.h:128: error: previous definition of ‘NSF25FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:411: error: redeclaration of enumerator ‘NSF26FunctionKey’
src/Core/OOCocoa.h:129: error: previous definition of ‘NSF26FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:412: error: redeclaration of enumerator ‘NSF27FunctionKey’
src/Core/OOCocoa.h:130: error: previous definition of ‘NSF27FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:413: error: redeclaration of enumerator ‘NSF28FunctionKey’
src/Core/OOCocoa.h:131: error: previous definition of ‘NSF28FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:414: error: redeclaration of enumerator ‘NSF29FunctionKey’
src/Core/OOCocoa.h:132: error: previous definition of ‘NSF29FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:415: error: redeclaration of enumerator ‘NSF30FunctionKey’
src/Core/OOCocoa.h:133: error: previous definition of ‘NSF30FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:416: error: redeclaration of enumerator ‘NSF31FunctionKey’
src/Core/OOCocoa.h:134: error: previous definition of ‘NSF31FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:417: error: redeclaration of enumerator ‘NSF32FunctionKey’
src/Core/OOCocoa.h:135: error: previous definition of ‘NSF32FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:418: error: redeclaration of enumerator ‘NSF33FunctionKey’
src/Core/OOCocoa.h:136: error: previous definition of ‘NSF33FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:419: error: redeclaration of enumerator ‘NSF34FunctionKey’
src/Core/OOCocoa.h:137: error: previous definition of ‘NSF34FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:420: error: redeclaration of enumerator ‘NSF35FunctionKey’
src/Core/OOCocoa.h:138: error: previous definition of ‘NSF35FunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:421: error: redeclaration of enumerator ‘NSInsertFunctionKey’
src/Core/OOCocoa.h:139: error: previous definition of ‘NSInsertFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:422: error: redeclaration of enumerator ‘NSDeleteFunctionKey’
src/Core/OOCocoa.h:140: error: previous definition of ‘NSDeleteFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:423: error: redeclaration of enumerator ‘NSHomeFunctionKey’
src/Core/OOCocoa.h:141: error: previous definition of ‘NSHomeFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:424: error: redeclaration of enumerator ‘NSBeginFunctionKey’
src/Core/OOCocoa.h:142: error: previous definition of ‘NSBeginFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:425: error: redeclaration of enumerator ‘NSEndFunctionKey’
src/Core/OOCocoa.h:143: error: previous definition of ‘NSEndFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:426: error: redeclaration of enumerator ‘NSPageUpFunctionKey’
src/Core/OOCocoa.h:144: error: previous definition of ‘NSPageUpFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:427: error: redeclaration of enumerator ‘NSPageDownFunctionKey’
src/Core/OOCocoa.h:145: error: previous definition of ‘NSPageDownFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:428: error: redeclaration of enumerator ‘NSPrintScreenFunctionKey’
src/Core/OOCocoa.h:146: error: previous definition of ‘NSPrintScreenFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:429: error: redeclaration of enumerator ‘NSScrollLockFunctionKey’
src/Core/OOCocoa.h:147: error: previous definition of ‘NSScrollLockFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:430: error: redeclaration of enumerator ‘NSPauseFunctionKey’
src/Core/OOCocoa.h:148: error: previous definition of ‘NSPauseFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:431: error: redeclaration of enumerator ‘NSSysReqFunctionKey’
src/Core/OOCocoa.h:149: error: previous definition of ‘NSSysReqFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:432: error: redeclaration of enumerator ‘NSBreakFunctionKey’
src/Core/OOCocoa.h:150: error: previous definition of ‘NSBreakFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:433: error: redeclaration of enumerator ‘NSResetFunctionKey’
src/Core/OOCocoa.h:151: error: previous definition of ‘NSResetFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:434: error: redeclaration of enumerator ‘NSStopFunctionKey’
src/Core/OOCocoa.h:152: error: previous definition of ‘NSStopFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:435: error: redeclaration of enumerator ‘NSMenuFunctionKey’
src/Core/OOCocoa.h:153: error: previous definition of ‘NSMenuFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:436: error: redeclaration of enumerator ‘NSUserFunctionKey’
src/Core/OOCocoa.h:154: error: previous definition of ‘NSUserFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:437: error: redeclaration of enumerator ‘NSSystemFunctionKey’
src/Core/OOCocoa.h:155: error: previous definition of ‘NSSystemFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:438: error: redeclaration of enumerator ‘NSPrintFunctionKey’
src/Core/OOCocoa.h:156: error: previous definition of ‘NSPrintFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:439: error: redeclaration of enumerator ‘NSClearLineFunctionKey’
src/Core/OOCocoa.h:157: error: previous definition of ‘NSClearLineFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:440: error: redeclaration of enumerator ‘NSClearDisplayFunctionKey’
src/Core/OOCocoa.h:158: error: previous definition of ‘NSClearDisplayFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:441: error: redeclaration of enumerator ‘NSInsertLineFunctionKey’
src/Core/OOCocoa.h:159: error: previous definition of ‘NSInsertLineFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:442: error: redeclaration of enumerator ‘NSDeleteLineFunctionKey’
src/Core/OOCocoa.h:160: error: previous definition of ‘NSDeleteLineFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:443: error: redeclaration of enumerator ‘NSInsertCharFunctionKey’
src/Core/OOCocoa.h:161: error: previous definition of ‘NSInsertCharFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:444: error: redeclaration of enumerator ‘NSDeleteCharFunctionKey’
src/Core/OOCocoa.h:162: error: previous definition of ‘NSDeleteCharFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:445: error: redeclaration of enumerator ‘NSPrevFunctionKey’
src/Core/OOCocoa.h:163: error: previous definition of ‘NSPrevFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:446: error: redeclaration of enumerator ‘NSNextFunctionKey’
src/Core/OOCocoa.h:164: error: previous definition of ‘NSNextFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:447: error: redeclaration of enumerator ‘NSSelectFunctionKey’
src/Core/OOCocoa.h:165: error: previous definition of ‘NSSelectFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:448: error: redeclaration of enumerator ‘NSExecuteFunctionKey’
src/Core/OOCocoa.h:166: error: previous definition of ‘NSExecuteFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:449: error: redeclaration of enumerator ‘NSUndoFunctionKey’
src/Core/OOCocoa.h:167: error: previous definition of ‘NSUndoFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:450: error: redeclaration of enumerator ‘NSRedoFunctionKey’
src/Core/OOCocoa.h:168: error: previous definition of ‘NSRedoFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:451: error: redeclaration of enumerator ‘NSFindFunctionKey’
src/Core/OOCocoa.h:169: error: previous definition of ‘NSFindFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:452: error: redeclaration of enumerator ‘NSHelpFunctionKey’
src/Core/OOCocoa.h:170: error: previous definition of ‘NSHelpFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSEvent.h:454: error: redeclaration of enumerator ‘NSModeSwitchFunctionKey’
src/Core/OOCocoa.h:172: error: previous definition of ‘NSModeSwitchFunctionKey’ was here
/usr/include/GNUstep/AppKit/NSCell.h:500: warning: inline function ‘_sizeForBorderType’ declared but never defined
make[2]: *** [obj/ShipEntity.o] Error 1
make[1]: *** [oolite.all.objc-program.variables] Error 2
make[1]: Leaving directory `/home/topper/software/Oolite'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Can anyone help, please?

Mat
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Fixed in r2033. (OOExcludeObjectEnumerator.h should be including OOCocoa.h, not Cocoa/Cocoa.h.)
Locked