VOGONS


First post, by muCkk

User metadata
Rank Newbie
Rank
Newbie

Hey,

I tried to compile DOSBox 0.73 (and 0.70) on Ubuntu but I get a lot of compiler errors:

dosbox-0.73$ make
make all-recursive
make[1]: Entering directory '/home/MyUser/Downloads/dosbox-0.73'
Making all in src
make[2]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src'
Making all in cpu
make[3]: Entering directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'
Making all in core_full
make[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_normal
make[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_x86
make[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_dynrec
make[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.cpp
callback.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.Po
g++ -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.cpp
In 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 scope
cpu.cpp: In element function »void TaskStateSegment::Get_SSx_ESPx(Bitu, Bitu&, Bitu&)«:
cpu.cpp:294:37: ERROR: expected primary-expression before »,« token
cpu.cpp:294:38: ERROR: »esp0« was not defined in this scope
cpu.cpp:294:42: ERROR: »offsetof« was not defined in this scope
cpu.cpp:298:37: ERROR: expected primary-expression before »,« token
cpu.cpp:298:38: ERROR: »sp0« was not defined in this scope
cpu.cpp:298:41: ERROR: »offsetof« was not defined in this scope
cpu.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 »,« token
cpu.cpp:362:50: ERROR: »cr3« was not defined in this scope
cpu.cpp:362:53: ERROR: »offsetof« was not defined in this scope
cpu.cpp:363:49: ERROR: expected primary-expression before »,« token
cpu.cpp:363:50: ERROR: »eip« was not defined in this scope
cpu.cpp:364:52: ERROR: expected primary-expression before »,« token
cpu.cpp:364:53: ERROR: »eflags« was not defined in this scope
cpu.cpp:365:49: ERROR: expected primary-expression before »,« token
cpu.cpp:365:50: ERROR: »eax« was not defined in this scope
cpu.cpp:366:49: ERROR: expected primary-expression before »,« token
cpu.cpp:366:50: ERROR: »ecx« was not defined in this scope
cpu.cpp:367:49: ERROR: expected primary-expression before »,« token
cpu.cpp:367:50: ERROR: »edx« was not defined in this scope
cpu.cpp:368:49: ERROR: expected primary-expression before »,« token
cpu.cpp:368:50: ERROR: »ebx« was not defined in this scope
cpu.cpp:369:49: ERROR: expected primary-expression before »,« token
Show last 74 lines
cpu.cpp:369:50: ERROR: »esp« was not defined in this scope
cpu.cpp:370:49: ERROR: expected primary-expression before »,« token
cpu.cpp:370:50: ERROR: »ebp« was not defined in this scope
cpu.cpp:371:49: ERROR: expected primary-expression before »,« token
cpu.cpp:371:50: ERROR: »edi« was not defined in this scope
cpu.cpp:372:49: ERROR: expected primary-expression before »,« token
cpu.cpp:372:50: ERROR: »esi« was not defined in this scope
cpu.cpp:374:48: ERROR: expected primary-expression before »,« token
cpu.cpp:375:48: ERROR: expected primary-expression before »,« token
cpu.cpp:376:48: ERROR: expected primary-expression before »,« token
cpu.cpp:377:48: ERROR: expected primary-expression before »,« token
cpu.cpp:378:48: ERROR: expected primary-expression before »,« token
cpu.cpp:379:48: ERROR: expected primary-expression before »,« token
cpu.cpp:380:49: ERROR: expected primary-expression before »,« token
cpu.cpp:380:50: ERROR: »ldt« was not defined in this scope
cpu.cpp:403:42: ERROR: expected primary-expression before »,« token
cpu.cpp:403:43: ERROR: »eflags« was not defined in this scope
cpu.cpp:403:49: ERROR: »offsetof« was not defined in this scope
cpu.cpp:404:42: ERROR: expected primary-expression before »,« token
cpu.cpp:404:43: ERROR: »eip« was not defined in this scope
cpu.cpp:406:42: ERROR: expected primary-expression before »,« token
cpu.cpp:406:43: ERROR: »eax« was not defined in this scope
cpu.cpp:407:42: ERROR: expected primary-expression before »,« token
cpu.cpp:407:43: ERROR: »ecx« was not defined in this scope
cpu.cpp:408:42: ERROR: expected primary-expression before »,« token
cpu.cpp:408:43: ERROR: »edx« was not defined in this scope
cpu.cpp:409:42: ERROR: expected primary-expression before »,« token
cpu.cpp:409:43: ERROR: »ebx« was not defined in this scope
cpu.cpp:410:42: ERROR: expected primary-expression before »,« token
cpu.cpp:410:43: ERROR: »esp« was not defined in this scope
cpu.cpp:411:42: ERROR: expected primary-expression before »,« token
cpu.cpp:411:43: ERROR: »ebp« was not defined in this scope
cpu.cpp:412:42: ERROR: expected primary-expression before »,« token
cpu.cpp:412:43: ERROR: »esi« was not defined in this scope
cpu.cpp:413:42: ERROR: expected primary-expression before »,« token
cpu.cpp:413:43: ERROR: »edi« was not defined in this scope
cpu.cpp:415:42: ERROR: expected primary-expression before »,« token
cpu.cpp:416:42: ERROR: expected primary-expression before »,« token
cpu.cpp:417:42: ERROR: expected primary-expression before »,« token
cpu.cpp:418:42: ERROR: expected primary-expression before »,« token
cpu.cpp:419:42: ERROR: expected primary-expression before »,« token
cpu.cpp:420:42: ERROR: expected primary-expression before »,« token
cpu.cpp:428:43: ERROR: expected primary-expression before »,« token
cpu.cpp:428:44: ERROR: »back« was not defined in this scope
cpu.cpp:428:48: ERROR: »offsetof« was not defined in this scope
cpu.cpp:430:43: ERROR: expected primary-expression before »,« token
cpu.cpp:430:44: ERROR: »back« was not defined in this scope
cpu.cpp:430:48: ERROR: »offsetof« was not defined in this scope
cpu.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 1
make[4]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'
make[3]: *** [all-recursive] ERROR 1
make[3]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src/cpu'
make[2]: *** [all-recursive] ERROR 1
make[2]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73/src'
make[1]: *** [all-recursive] ERROR 1
make[1]: Leaving directory '/home/MyUser/Downloads/dosbox-0.73'
make: *** [all] ERROR 2

Any ideas what's wrong?

Reply 1 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

apply this
http://patch-tracker.debian.org/patch/series/ … m_svn3691.patch

it's for 0.74, but the problem is the same.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Compiler problems? Why are you trying to compile ancient versions? I'd advise to try your hands on SVN

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 5 of 13, by collector

User metadata
Rank l33t
Rank
l33t
muCkk wrote:

0.74 does not support the game I want to play, but 0.73 and 0.70 do 😀.

And where did you hear that? Did you even bother to try your game on 0.74? While it is possible for regressions to occasionally occur, you should generally expect that anything that worked in DOSBox will work in later version. Any regressions that you find should be reported.

Reply 6 of 13, by muCkk

User metadata
Rank Newbie
Rank
Newbie

Yes I tried it with 0.74, but it didn't work. While looking for a solution I saw this page which says it's broken on that version, so I thought I try an older one. It works on 0.73 but I realized I did something wrong and just tried 0.74 again, it's working too. Thanks again.

Reply 8 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I removed the non-working entry, as there are multiple reports that it works. Still, as wd pointed out, it are user entries and should be treated as such.

Water flows down the stream
How to ask questions the smart way!

Reply 13 of 13, by muCkk

User metadata
Rank Newbie
Rank
Newbie
HunterZ wrote:

Would be interesting to know what is preventing the OP from running in 0.74.

I tried installing it but it's possible to just play it without installation. And yes, 0.74 is working fine 😀.