dosbox debug compile on Ubuntu 13.04

General information and assistance with DOSBox.

dosbox debug compile on Ubuntu 13.04

Postby jefframble » 2013-6-22 @ 11:16

I'm trying to get dosbox-0.74 debug to compile but get these errors:

Ubuntu 13.04, 32bit

dosbox-0.74

./configure
errors:

checking for XKBlib support... yes
checking for main in -lGL... yes
checking for main in -lopengl32... no




make errors:

Entering directory `/home/jeff/dosbox-0.74/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
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 member 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 declared in this scope
../../include/dos_inc.h:543:87: error: ‘offsetof’ was not declared in this scope
../../include/dos_inc.h: In member 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 declared in this scope
../../include/dos_inc.h:544:80: error: ‘offsetof’ was not declared in this scope
cpu.cpp: In member 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 declared in this scope
cpu.cpp:294:42: error: ‘offsetof’ was not declared in this scope
cpu.cpp:298:37: error: expected primary-expression before ‘,’ token
cpu.cpp:298:38: error: ‘sp0’ was not declared in this scope
cpu.cpp:298:41: error: ‘offsetof’ was not declared in this scope
cpu.cpp: In function ‘bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)’:
cpu.cpp:362:49: error: expected primary-expression before ‘,’ token
cpu.cpp:362:50: error: ‘cr3’ was not declared in this scope
cpu.cpp:362:53: error: ‘offsetof’ was not declared in this scope
cpu.cpp:363:49: error: expected primary-expression before ‘,’ token
cpu.cpp:363:50: error: ‘eip’ was not declared in this scope
cpu.cpp:364:52: error: expected primary-expression before ‘,’ token
cpu.cpp:364:53: error: ‘eflags’ was not declared in this scope
cpu.cpp:365:49: error: expected primary-expression before ‘,’ token
cpu.cpp:365:50: error: ‘eax’ was not declared in this scope
cpu.cpp:366:49: error: expected primary-expression before ‘,’ token
cpu.cpp:366:50: error: ‘ecx’ was not declared in this scope
cpu.cpp:367:49: error: expected primary-expression before ‘,’ token
cpu.cpp:367:50: error: ‘edx’ was not declared in this scope
cpu.cpp:368:49: error: expected primary-expression before ‘,’ token
cpu.cpp:368:50: error: ‘ebx’ was not declared in this scope
cpu.cpp:369:49: error: expected primary-expression before ‘,’ token
cpu.cpp:369:50: error: ‘esp’ was not declared in this scope
cpu.cpp:370:49: error: expected primary-expression before ‘,’ token
cpu.cpp:370:50: error: ‘ebp’ was not declared in this scope
cpu.cpp:371:49: error: expected primary-expression before ‘,’ token
cpu.cpp:371:50: error: ‘edi’ was not declared in this scope
cpu.cpp:372:49: error: expected primary-expression before ‘,’ token
cpu.cpp:372:50: error: ‘esi’ was not declared 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 declared in this scope
cpu.cpp:403:42: error: expected primary-expression before ‘,’ token
cpu.cpp:403:43: error: ‘eflags’ was not declared in this scope
cpu.cpp:403:49: error: ‘offsetof’ was not declared in this scope
cpu.cpp:404:42: error: expected primary-expression before ‘,’ token
cpu.cpp:404:43: error: ‘eip’ was not declared in this scope
cpu.cpp:406:42: error: expected primary-expression before ‘,’ token
cpu.cpp:406:43: error: ‘eax’ was not declared in this scope
cpu.cpp:407:42: error: expected primary-expression before ‘,’ token
cpu.cpp:407:43: error: ‘ecx’ was not declared in this scope
cpu.cpp:408:42: error: expected primary-expression before ‘,’ token
cpu.cpp:408:43: error: ‘edx’ was not declared in this scope
cpu.cpp:409:42: error: expected primary-expression before ‘,’ token
cpu.cpp:409:43: error: ‘ebx’ was not declared in this scope
cpu.cpp:410:42: error: expected primary-expression before ‘,’ token
cpu.cpp:410:43: error: ‘esp’ was not declared in this scope
cpu.cpp:411:42: error: expected primary-expression before ‘,’ token
cpu.cpp:411:43: error: ‘ebp’ was not declared in this scope
cpu.cpp:412:42: error: expected primary-expression before ‘,’ token
cpu.cpp:412:43: error: ‘esi’ was not declared in this scope
cpu.cpp:413:42: error: expected primary-expression before ‘,’ token
cpu.cpp:413:43: error: ‘edi’ was not declared 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 declared in this scope
cpu.cpp:428:48: error: ‘offsetof’ was not declared in this scope
cpu.cpp:430:43: error: expected primary-expression before ‘,’ token
cpu.cpp:430:44: error: ‘back’ was not declared in this scope
cpu.cpp:430:48: error: ‘offsetof’ was not declared in this scope
make[4]: *** [cpu.o] Error 1
make[4]: Leaving directory `/home/jeff/dosbox-0.74/src/cpu'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jeff/dosbox-0.74/src/cpu'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jeff/dosbox-0.74/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jeff/dosbox-0.74'

I tried adding #include <stddef.h>, near the includes of cpu.cpp , dos.cpp and ems.cpp.

It seems to fix this part but gives errors later. Any tips?
jefframble
Newbie
 
Posts: 8
Joined: 2013-5-22 @ 11:49
Location: Oman

Re: dosbox debug compile on Ubuntu 13.04

Postby Qbix » 2013-6-22 @ 11:25

put it in dos_inc.h as well
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10707
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: dosbox debug compile on Ubuntu 13.04

Postby jefframble » 2013-6-22 @ 12:36

That fixed it? Thank you very much

As a help to anybody else

Add this line:

#include <stddef.h>

at the top near the other includes of cpu.cpp, dos.cpp and ems.cpp, dos_inc.h
jefframble
Newbie
 
Posts: 8
Joined: 2013-5-22 @ 11:49
Location: Oman

Re: dosbox debug compile on Ubuntu 13.04

Postby jefframble » 2013-6-23 @ 02:36

Works fine when I compile dosbox, when I compile a debug version of dosbox sometimes I get a segmentation fault and a core dump.

I'm fairly sure that it isn't installing properly. Help.
jefframble
Newbie
 
Posts: 8
Joined: 2013-5-22 @ 11:49
Location: Oman


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 1 guest