===> Building for xclannad-0.07hcnb2
cd scn2k && /opt/pkg/bin/bmake libscn2k.a
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o scn2k_cmd.o scn2k_cmd.cc
scn2k_cmd.cc:672:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
        ^
scn2k_cmd.cc:672:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
               ^
scn2k_cmd.cc:672:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                      ^
scn2k_cmd.cc:672:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                             ^
scn2k_cmd.cc:672:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                    ^
scn2k_cmd.cc:672:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                           ^
scn2k_cmd.cc:672:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                                  ^
scn2k_cmd.cc:672:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                                         ^
scn2k_cmd.cc:672:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                                                ^
scn2k_cmd.cc:672:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+",   "-",   "*",   "/",   "%",   "&",   "|",   "^",   "<<",  ">>",    // +00
                                                                       ^
scn2k_cmd.cc:673:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
        ^
scn2k_cmd.cc:673:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
               ^
scn2k_cmd.cc:673:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                      ^
scn2k_cmd.cc:673:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                             ^
scn2k_cmd.cc:673:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                    ^
scn2k_cmd.cc:673:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                           ^
scn2k_cmd.cc:673:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                                  ^
scn2k_cmd.cc:673:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                                         ^
scn2k_cmd.cc:673:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                                                ^
scn2k_cmd.cc:673:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +10
                                                                       ^
scn2k_cmd.cc:674:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
        ^
scn2k_cmd.cc:674:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
               ^
scn2k_cmd.cc:674:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                      ^
scn2k_cmd.cc:674:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                             ^
scn2k_cmd.cc:674:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                    ^
scn2k_cmd.cc:674:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                           ^
scn2k_cmd.cc:674:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                                  ^
scn2k_cmd.cc:674:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                                         ^
scn2k_cmd.cc:674:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                                                ^
scn2k_cmd.cc:674:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "+=",  "-=",  "*=",  "/=",  "%=",  "&=",  "|=",  "^=",  "<<=", ">>=",   // +20
                                                                       ^
scn2k_cmd.cc:675:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
        ^
scn2k_cmd.cc:675:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
               ^
scn2k_cmd.cc:675:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                      ^
scn2k_cmd.cc:675:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                             ^
scn2k_cmd.cc:675:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                    ^
scn2k_cmd.cc:675:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                           ^
scn2k_cmd.cc:675:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                                  ^
scn2k_cmd.cc:675:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                                         ^
scn2k_cmd.cc:675:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                                                ^
scn2k_cmd.cc:675:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "=",   "err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +30
                                                                       ^
scn2k_cmd.cc:676:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
        ^
scn2k_cmd.cc:676:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
               ^
scn2k_cmd.cc:676:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                      ^
scn2k_cmd.cc:676:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                             ^
scn2k_cmd.cc:676:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                    ^
scn2k_cmd.cc:676:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                           ^
scn2k_cmd.cc:676:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                                  ^
scn2k_cmd.cc:676:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                                         ^
scn2k_cmd.cc:676:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                                                ^
scn2k_cmd.cc:676:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "==",  "!=",  "<=",  "<",   ">=",  ">",   "err.","err.","err.","err.",  // +40
                                                                       ^
scn2k_cmd.cc:677:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
        ^
scn2k_cmd.cc:677:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
               ^
scn2k_cmd.cc:677:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                      ^
scn2k_cmd.cc:677:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                             ^
scn2k_cmd.cc:677:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                    ^
scn2k_cmd.cc:677:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                           ^
scn2k_cmd.cc:677:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                                  ^
scn2k_cmd.cc:677:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                                         ^
scn2k_cmd.cc:677:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                                                ^
scn2k_cmd.cc:677:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "err.","err.","err.","err.","err.","err.","err.","err.","err.","err.",  // +50
                                                                       ^
scn2k_cmd.cc:678:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
        ^
scn2k_cmd.cc:678:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
               ^
scn2k_cmd.cc:678:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                      ^
scn2k_cmd.cc:678:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                             ^
scn2k_cmd.cc:678:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                    ^
scn2k_cmd.cc:678:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                           ^
scn2k_cmd.cc:678:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                                  ^
scn2k_cmd.cc:678:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                                         ^
scn2k_cmd.cc:678:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                                                ^
scn2k_cmd.cc:678:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "&&",  "||",  "err.","err.","err.","err.","err.","err.","err.","err.",  // +60
                                                                       ^
scn2k_cmd.cc:1363:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                } else if (stype = StrType(d)) {
                           ~~~~~~^~~~~~~~~~~~
scn2k_cmd.cc:1363:20: note: place parentheses around the assignment to silence this warning
                } else if (stype = StrType(d)) {
                                 ^
                           (                 )
scn2k_cmd.cc:1363:20: note: use '==' to turn this assignment into an equality comparison
                } else if (stype = StrType(d)) {
                                 ^
                                 ==
71 warnings generated.
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o scn2k_text.o scn2k_text.cc
scn2k_text.cc:1542:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "MOVE",
        ^
scn2k_text.cc:1543:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "CLEAR",
        ^
scn2k_text.cc:1544:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "READJUMP",
        ^
scn2k_text.cc:1545:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "AUTOMODE",
        ^
scn2k_text.cc:1546:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "MSGBK",
        ^
scn2k_text.cc:1547:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "MSGBKLEFT",
        ^
scn2k_text.cc:1548:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "MSGBKRIGHT",
        ^
scn2k_text.cc:1549:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "EXBTN_000",
        ^
scn2k_text.cc:1550:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "EXBTN_001",
        ^
scn2k_text.cc:1551:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        "EXBTN_002"
        ^
scn2k_text.cc:1783:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
11 warnings generated.
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o scn2k_grp.o scn2k_grp.cc
scn2k_grp.cc:1385:48: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
                fprintf(stderr,"front %08x(%d) / %08x(%d)\n",screen,screen->IsHidden(),screen_front,screen_front->IsHidden());
                                      ~~~~                   ^~~~~~
scn2k_grp.cc:1385:74: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
                fprintf(stderr,"front %08x(%d) / %08x(%d)\n",screen,screen->IsHidden(),screen_front,screen_front->IsHidden());
                                                 ~~~~                                  ^~~~~~~~~~~~
scn2k_grp.cc:1392:16: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
                                        it->first,obj.picture,obj.name.c_str(),
                                                  ^~~~~~~~~~~
scn2k_grp.cc:1396:16: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
                                        it->first,obj.picture,obj.print_moji.c_str(),
                                                  ^~~~~~~~~~~
scn2k_grp.cc:1400:16: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
                                        it->first,obj.picture,"<EMPTY>",
                                                  ^~~~~~~~~~~
scn2k_grp.cc:1407:32: warning: format specifies type 'unsigned int' but the argument has type 'std::__list_iterator<PicBase *, void *>::value_type' (aka 'PicBase *') [-Wformat]
                        fprintf(stderr,"%08x(%d)\n",*it2,(*it2)->IsHidden());
                                        ~~~~        ^~~~
6 warnings generated.
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o scn2k_impl.o scn2k_impl.cc
scn2k_impl.cc:276:16: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                                scn_point, script_end-script_start,
                                           ^~~~~~~~~~~~~~~~~~~~~~~
scn2k_impl.cc:314:52: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
                                        fprintf(stderr,"scn %d pt %d: Cannot jump to %d; fall back to the top\n",scn_number, cmd.args[0].value);
                                                                                     ~^
scn2k_impl.cc:324:80: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
fprintf(stderr,"cmd error occured: scn %d pt %d / cur %d",scn_number,scn_point,script-script_start);
                                                      ~~                       ^~~~~~~~~~~~~~~~~~~
                                                      %ld
scn2k_impl.cc:330:40: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
fprintf(stderr," -> fall back to %d\n",script-script_start);
                                 ~~    ^~~~~~~~~~~~~~~~~~~
                                 %ld
scn2k_impl.cc:336:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                                fprintf(stderr, "%6d: ",dprev-script_start);
                                                 ~~~    ^~~~~~~~~~~~~~~~~~
                                                 %6ld
scn2k_impl.cc:529:94: warning: format specifies type 'int' but the argument has type 'std::vector<CmdSimplified>::size_type' (aka 'unsigned long') [-Wformat]
                        fprintf(stderr,"Error in Scn2k::SysExec: too long cmdstack (%d): stack string overflow\n",cmd_stack.size());
                                                                                    ~~                            ^~~~~~~~~~~~~~~~
                                                                                    %lu
scn2k_impl.cc:946:79: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
                        fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n",buf);
                                                                                                  ~^
scn2k_impl.cc:1188:78: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
                fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n",buf);
                                                                                          ~^
scn2k_impl.cc:1718:46: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                awk_dialog = new Dialog(*pevent, pparent, "<A5>ե<A1><A5><A4><A5><EB><A4><F2><A5><ED><A1><BC><A5>ɤ<B7><A4>ޤ<B9><A4><AB><A1><A9>", true);
                                                           ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
scn2k_impl.cc:1727:47: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
                        awk_dialog = new Dialog(*pevent, pparent, "<A5>Ç¡<BC><A5><BF><A4><F2><BE><E5><BD><U+64B64><B7><A4>Þ¤<B9><A4><AB><A1><A9>", true);
                                                                   ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
scn2k_impl.cc:1877:9: warning: enumeration values 'MENU_CONFIG' and 'MENU_BACKLOG2' not handled in switch [-Wswitch]
        switch(type) {
               ^
scn2k_impl.cc:1877:9: note: add missing switch cases
        switch(type) {
               ^
11 warnings generated.
rm -f libscn2k.a
ar clq libscn2k.a scn2k_cmd.o scn2k_text.o scn2k_grp.o scn2k_impl.o
ranlib libscn2k.a
cd window && /opt/pkg/bin/bmake libwindow.a
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o render.o render.cc
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o event.o event.cc
event.cc:38:13: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool save_req = false, load_req = false, grpdump_req = false; //  scn2k/scn2k_impl.cc: <A5><AD><A1><BC><A5>ܡ<BC><A5>ɤ<AB><A4>饻<A1><BC><A5>֡<A6><A5><ED><A1><BC><A5>ɤǤ<AD><A4><EB><A4>褦<A4><CB>
            ^
event.cc:38:31: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool save_req = false, load_req = false, grpdump_req = false; //  scn2k/scn2k_impl.cc: <A5><AD><A1><BC><A5>ܡ<BC><A5>ɤ<AB><A4>饻<A1><BC><A5>֡<A6><A5><ED><A1><BC><A5>ɤǤ<AD><A4><EB><A4>褦<A4><CB>
                              ^
event.cc:38:49: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool save_req = false, load_req = false, grpdump_req = false; //  scn2k/scn2k_impl.cc: <A5><AD><A1><BC><A5>ܡ<BC><A5>ɤ<AB><A4>饻<A1><BC><A5>֡<A6><A5><ED><A1><BC><A5>ɤǤ<AD><A4><EB><A4>褦<A4><CB>
                                                ^
event.cc:39:13: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool pressAreq=false,pressFreq=false,pressDreq=false;
            ^
event.cc:39:29: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool pressAreq=false,pressFreq=false,pressDreq=false;
                            ^
event.cc:39:45: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern bool pressAreq=false,pressFreq=false,pressDreq=false;
                                            ^
event.cc:257:67: warning: format specifies type 'unsigned int' but the argument has type 'Event::Video *' [-Wformat]
                fprintf(stderr,"X  ContainerImplVideo: Cannot delete node %x\n",delete_event);
                                                                          ~~    ^~~~~~~~~~~~
event.cc:261:26: warning: format specifies type 'unsigned int' but the argument has type 'Event::Video *' [-Wformat]
                        fprintf(stderr,"%x, ",*it);
                                        ~~    ^~~
event.cc:389:11: warning: 215 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_CLEAR'... [-Wswitch]
                        switch(event.key.keysym.sym) {
                               ^
event.cc:389:11: note: add missing switch cases
                        switch(event.key.keysym.sym) {
                               ^
event.cc:432:11: warning: 228 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch]
                        switch(event.key.keysym.sym) {
                               ^
event.cc:432:11: note: add missing switch cases
                        switch(event.key.keysym.sym) {
                               ^
10 warnings generated.
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o system.o system.cc
clang++ -c -I..  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -I/opt/pkg/include/freetype2 -DHAVE_CONFIG_H -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pthread -O2 -o picture.o picture.cc
picture.cc:544:70: warning: format specifies type 'unsigned int' but the argument has type 'std::__list_iterator<PicBase *, void *>::value_type' (aka 'PicBase *') [-Wformat]
if ( (*it)->is_hidden_now) if(print_blit) fprintf(stderr,"bch %08x;",*it);
                                                              ~~~~   ^~~
picture.cc:890:50: warning: format specifies type 'unsigned int' but the argument has type 'PicBase *' [-Wformat]
if(print_blit)fprintf(stderr,"%08x: %d,%d,%d,%d",item.pic, item.apos.lx, item.apos.ty, item.apos.rx, item.apos.by);
                              ~~~~               ^~~~~~~~
picture.cc:959:55: warning: format specifies type 'unsigned int' but the argument has type 'Surface *' [-Wformat]
if (print_blit) fprintf(stderr," s %08x %d:%d:%d:%d;",src, dest_r.lx, dest_r.ty, dest_r.rx, dest_r.by);
                                   ~~~~               ^~~
picture.cc:1007:9: fatal error: 'X11/Xlib.h' file not found
#include<X11/Xlib.h>
        ^~~~~~~~~~~~
3 warnings and 1 error generated.
*** [picture.o] Error code 1

bmake[1]: stopped making "libwindow.a" in /Users/pbulk/build/games/xclannad/work/xclannad-0.07h/window
bmake[1]: 1 error

bmake[1]: stopped making "libwindow.a" in /Users/pbulk/build/games/xclannad/work/xclannad-0.07h/window
*** [window/libwindow.a] Error code 2

bmake: stopped making "all" in /Users/pbulk/build/games/xclannad/work/xclannad-0.07h
bmake: 1 error

bmake: stopped making "all" in /Users/pbulk/build/games/xclannad/work/xclannad-0.07h
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/xclannad
*** Error code 1

Stop.
bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/xclannad