[Scummvm-tracker] [ScummVM :: Bugs] #12405: BUILD: Build failure on alpinelinux edge

ScummVM :: Bugs trac at scummvm.org
Sat Apr 10 20:13:26 UTC 2021


#12405: BUILD: Build failure on alpinelinux edge
-------------------+--------------------
Reporter:  kmmndr  |      Owner:  (none)
    Type:  defect  |     Status:  new
Priority:  normal  |  Component:  Common
 Version:          |   Keywords:
    Game:          |
-------------------+--------------------
 I'm trying to compile 2.2.0 release on alpinelinux.

 It compiles without error with SDL1, but with SDL2 I'm having issues with
 common/forbidden.h

 {{{
         C++      backends/platform/sdl/posix/posix-main.o
     In file included from ./common/scummsys.h:467,
                      from backends/platform/sdl/posix/posix-main.cpp:23:
     ./common/forbidden.h:57:89: error: expected initializer before
 'SYMBOL'
        57 | #define FORBIDDEN_SYMBOL_REPLACEMENT
 FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
           |
 ^~~~~~
     ./common/forbidden.h:57:89: error: expected initializer before
 'SYMBOL'
        57 | #define FORBIDDEN_SYMBOL_REPLACEMENT
 FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
           |
 ^~~~~~
     ./common/forbidden.h:57:89: error: expected initializer before
 'SYMBOL'
        57 | #define FORBIDDEN_SYMBOL_REPLACEMENT
 FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
           |
 ^~~~~~
         C++      backends/platform/sdl/posix/posix.o
     In file included from /usr/include/fortify/stdio.h:25,
                      from ./common/scummsys.h:118,
                      from backends/platform/sdl/posix/posix-main.cpp:23:
     /usr/include/fortify/unistd.h:53:1: error: 'getcwd' was not declared
 in this scope; did you mean 'getwd'?
        53 | _FORTIFY_FN(getcwd) char *getcwd(char *__s, size_t __l)
           | ^~~~~~~~~~~
     In file included from
 /usr/include/directfb/direct/os/linux/glibc/types.h:45,
                      from /usr/include/directfb/direct/os/types.h:47,
                      from /usr/include/directfb/direct/types.h:36,
                      from /usr/include/directfb/direct/Types++.h:38,
                      from /usr/include/directfb/directfb++.h:35,
                      from /usr/include/directfb/directfb.h:32,
                      from /usr/include/SDL2/SDL_syswm.h:80,
                      from ./backends/platform/sdl/sdl-sys.h:150,
                      from ./backends/platform/sdl/sdl.h:26,
                      from ./backends/platform/sdl/posix/posix.h:26,
                      from backends/platform/sdl/posix/posix-main.cpp:27:
     /usr/include/fortify/unistd.h: In function 'char* getcwd(char*,
 size_t)':
     /usr/include/fortify/unistd.h:59:31: error: '__orig_getcwd' cannot be
 used as a function
        59 |  return __orig_getcwd(__s, __l);
           |                               ^
 }}}

 Am I missing something ? Any idea ?
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12405>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list