Menu

#363 dosbox-0.74 fails to build with gcc-4.6

open
Qbix
None
5
2015-01-10
2011-05-27
heirecka
No

Patch from gentoo attached (http://bugs.gentoo.org/show_bug.cgi?id=364231)

Error:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -pipe -O2 -c -o paging.o paging.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

Discussion

  • heirecka

    heirecka - 2011-05-27
     
  • Qbix

    Qbix - 2011-05-27

    I recall this was fixed in the SVN a few weeks ago.

     

Log in to post a comment.