#18030: ScummVM fails to build on nightly
-----------------------+--------------------------
Reporter: begasus | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/beta3
Keywords: | Blocked By:
Blocking: | Platform: All
-----------------------+--------------------------
Trying a build on nightly resulted in a failure with:
In file included from /boot/system/develop/headers/posix/wchar.h:10,
from engines/ags/lib/alfont/alfont.cpp:27:
./engines/ags/lib/allegro/unicode.h:75:8: error: expected identifier
before numeric constant
75 | enum { LC_CTYPE };
| ^~~~~~~~
./engines/ags/lib/allegro/unicode.h:75:8: error: expected '}' before
numeric constant
In file included from engines/ags/lib/alfont/alfont.cpp:32:
./engines/ags/lib/allegro/unicode.h:75:6: note: to match this '{'
75 | enum { LC_CTYPE };
| ^
In file included from /boot/system/develop/headers/posix/wchar.h:10,
from engines/ags/lib/alfont/alfont.cpp:27:
./engines/ags/lib/allegro/unicode.h:75:8: error: expected unqualified-id
before numeric constant
75 | enum { LC_CTYPE };
| ^~~~~~~~
In file included from engines/ags/lib/alfont/alfont.cpp:32:
./engines/ags/lib/allegro/unicode.h:76:13: error: ambiguating new
declaration of 'void setlocale(int, const char*)'
76 | extern void setlocale(int type, const char *language);
| ^~~~~~~~~
In file included from /boot/system/develop/headers/posix/wchar.h:10,
from engines/ags/lib/alfont/alfont.cpp:27:
/boot/system/develop/headers/posix/locale.h:70:14: note: old declaration
'char* setlocale(int, const char*)'
70 | extern char *setlocale(int category, const char *locale);
| ^~~~~~~~~
In file included from engines/ags/lib/alfont/alfont.cpp:32:
./engines/ags/lib/allegro/unicode.h:149:1: error: expected declaration
before '}' token
149 | } // namespace AGS3
| ^
C++ engines/ags/lib/allegro/draw.o
C++ engines/ags/lib/allegro/fixed.o
C++ engines/ags/lib/allegro/file.o
Makefile.common:170: recipe for target 'engines/ags/lib/alfont/alfont.o'
failed
make: *** [engines/ags/lib/alfont/alfont.o] Error 1
make: *** Waiting for unfinished jobs....
Probably related to the changes done in:
https://github.com/haiku/haiku/commit/d338200e2b7c03c7aa392598b8612d4e9afa1841
Talked to some guy at the scummvm channel on IRC, log can be found here:
https://logs.scummvm.org/log.php?log=scummvm.log.01Nov2022&format=text
--
Ticket URL: <https://dev.haiku-os.org/ticket/18030>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.