First post, by muCkk
Hey,
I tried to compile DOSBox 0.73 (and 0.70) on Ubuntu but I get a lot of compiler errors:
dosbox-0.73$ makemake all-recursivemake[1]: Entering directory '/home/MyUser/Downloads/dosbox-0.73'Making all in srcmake[2]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src'Making all in cpumake[3]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'Making all in core_fullmake[4]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_full'make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_full'Making all in core_normalmake[4]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_normal'make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_normal'Making all in core_dyn_x86make[4]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_dyn_x86'make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_dyn_x86'Making all in core_dynrecmake[4]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_dynrec'make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu/core_dynrec'make[4]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o callback.o callback.cppcallback.cpp: In function »Bitu CALLBACK_SetupExtra(Bitu, Bitu, PhysPt, bool)«:callback.cpp:420:47: Warning: Format »%d« expected Argumenttyp »int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]mv -f .deps/callback.Tpo .deps/callback.Pog++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -MT cpu.o -MD -MP -MF .deps/cpu.Tpo -c -o cpu.o cpu.cppIn file included from ../../include/programs.h:28:0,from cpu.cpp:29:../../include/dos_inc.h: In element function »void DOS_MCB::SetFileName(const char*)«:../../include/dos_inc.h:543:78: ERROR: expected primary-expression before »,« token../../include/dos_inc.h:543:79: ERROR: »filename« was not defined in this scope../../include/dos_inc.h:543:87: ERROR: »offsetof« was not defined in this scope../../include/dos_inc.h: In element function »void DOS_MCB::GetFileName(char*)«:../../include/dos_inc.h:544:71: ERROR: expected primary-expression before »,« token../../include/dos_inc.h:544:72: ERROR: »filename« was not defined in this scope../../include/dos_inc.h:544:80: ERROR: »offsetof« was not defined in this scopecpu.cpp: In element function »void TaskStateSegment::Get_SSx_ESPx(Bitu, Bitu&, Bitu&)«:cpu.cpp:294:37: ERROR: expected primary-expression before »,« tokencpu.cpp:294:38: ERROR: »esp0« was not defined in this scopecpu.cpp:294:42: ERROR: »offsetof« was not defined in this scopecpu.cpp:298:37: ERROR: expected primary-expression before »,« tokencpu.cpp:298:38: ERROR: »sp0« was not defined in this scopecpu.cpp:298:41: ERROR: »offsetof« was not defined in this scopecpu.cpp: In function »bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)«:cpu.cpp:348:86: Warning: Format »%x« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp:362:49: ERROR: expected primary-expression before »,« tokencpu.cpp:362:50: ERROR: »cr3« was not defined in this scopecpu.cpp:362:53: ERROR: »offsetof« was not defined in this scopecpu.cpp:363:49: ERROR: expected primary-expression before »,« tokencpu.cpp:363:50: ERROR: »eip« was not defined in this scopecpu.cpp:364:52: ERROR: expected primary-expression before »,« tokencpu.cpp:364:53: ERROR: »eflags« was not defined in this scopecpu.cpp:365:49: ERROR: expected primary-expression before »,« tokencpu.cpp:365:50: ERROR: »eax« was not defined in this scopecpu.cpp:366:49: ERROR: expected primary-expression before »,« tokencpu.cpp:366:50: ERROR: »ecx« was not defined in this scopecpu.cpp:367:49: ERROR: expected primary-expression before »,« tokencpu.cpp:367:50: ERROR: »edx« was not defined in this scopecpu.cpp:368:49: ERROR: expected primary-expression before »,« tokencpu.cpp:368:50: ERROR: »ebx« was not defined in this scopecpu.cpp:369:49: ERROR: expected primary-expression before »,« token
cpu.cpp:369:50: ERROR: »esp« was not defined in this scopecpu.cpp:370:49: ERROR: expected primary-expression before »,« tokencpu.cpp:370:50: ERROR: »ebp« was not defined in this scopecpu.cpp:371:49: ERROR: expected primary-expression before »,« tokencpu.cpp:371:50: ERROR: »edi« was not defined in this scopecpu.cpp:372:49: ERROR: expected primary-expression before »,« tokencpu.cpp:372:50: ERROR: »esi« was not defined in this scopecpu.cpp:374:48: ERROR: expected primary-expression before »,« tokencpu.cpp:375:48: ERROR: expected primary-expression before »,« tokencpu.cpp:376:48: ERROR: expected primary-expression before »,« tokencpu.cpp:377:48: ERROR: expected primary-expression before »,« tokencpu.cpp:378:48: ERROR: expected primary-expression before »,« tokencpu.cpp:379:48: ERROR: expected primary-expression before »,« tokencpu.cpp:380:49: ERROR: expected primary-expression before »,« tokencpu.cpp:380:50: ERROR: »ldt« was not defined in this scopecpu.cpp:403:42: ERROR: expected primary-expression before »,« tokencpu.cpp:403:43: ERROR: »eflags« was not defined in this scopecpu.cpp:403:49: ERROR: »offsetof« was not defined in this scopecpu.cpp:404:42: ERROR: expected primary-expression before »,« tokencpu.cpp:404:43: ERROR: »eip« was not defined in this scopecpu.cpp:406:42: ERROR: expected primary-expression before »,« tokencpu.cpp:406:43: ERROR: »eax« was not defined in this scopecpu.cpp:407:42: ERROR: expected primary-expression before »,« tokencpu.cpp:407:43: ERROR: »ecx« was not defined in this scopecpu.cpp:408:42: ERROR: expected primary-expression before »,« tokencpu.cpp:408:43: ERROR: »edx« was not defined in this scopecpu.cpp:409:42: ERROR: expected primary-expression before »,« tokencpu.cpp:409:43: ERROR: »ebx« was not defined in this scopecpu.cpp:410:42: ERROR: expected primary-expression before »,« tokencpu.cpp:410:43: ERROR: »esp« was not defined in this scopecpu.cpp:411:42: ERROR: expected primary-expression before »,« tokencpu.cpp:411:43: ERROR: »ebp« was not defined in this scopecpu.cpp:412:42: ERROR: expected primary-expression before »,« tokencpu.cpp:412:43: ERROR: »esi« was not defined in this scopecpu.cpp:413:42: ERROR: expected primary-expression before »,« tokencpu.cpp:413:43: ERROR: »edi« was not defined in this scopecpu.cpp:415:42: ERROR: expected primary-expression before »,« tokencpu.cpp:416:42: ERROR: expected primary-expression before »,« tokencpu.cpp:417:42: ERROR: expected primary-expression before »,« tokencpu.cpp:418:42: ERROR: expected primary-expression before »,« tokencpu.cpp:419:42: ERROR: expected primary-expression before »,« tokencpu.cpp:420:42: ERROR: expected primary-expression before »,« tokencpu.cpp:428:43: ERROR: expected primary-expression before »,« tokencpu.cpp:428:44: ERROR: »back« was not defined in this scopecpu.cpp:428:48: ERROR: »offsetof« was not defined in this scopecpu.cpp:430:43: ERROR: expected primary-expression before »,« tokencpu.cpp:430:44: ERROR: »back« was not defined in this scopecpu.cpp:430:48: ERROR: »offsetof« was not defined in this scopecpu.cpp:502:50: Warning: Format »%d« expected Argumenttyp »int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »void CPU_Interrupt(Bitu, Bitu, Bitu)«:cpu.cpp:724:89: Warning: Format »%x« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp:754:66: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp:754:66: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 3 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »void CPU_IRET(bool, Bitu)«:cpu.cpp:901:61: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »void CPU_JMP(bool, Bitu, Bitu, Bitu)«:cpu.cpp:1058:55: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »void CPU_CALL(bool, Bitu, Bitu, Bitu)«:cpu.cpp:1294:60: Warning: Format »%x« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »void CPU_RET(bool, Bitu, Bitu)«:cpu.cpp:1352:61: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp:1397:61: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]cpu.cpp: In function »bool CPU_LTR(Bitu)«:cpu.cpp:1508:80: Warning: Format »%X« expected Argumenttyp »unsigned int«, but Argument 2 has type »Bitu {aka long unsigned int}« [-Wformat]make[4]: *** [cpu.o] ERROR 1make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'make[3]: *** [all-recursive] ERROR 1make[3]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'make[2]: *** [all-recursive] ERROR 1make[2]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src'make[1]: *** [all-recursive] ERROR 1make[1]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73'make: *** [all] ERROR 2
Any ideas what's wrong?