=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for mpg321-0.3.2nb2
/opt/pkg/bin/bmake  all-recursive
clang -DHAVE_CONFIG_H -I.    -I/opt/pkg/include  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include -MT mpg321.o -MD -MP -MF .deps/mpg321.Tpo -c -o mpg321.o mpg321.c
In file included from mpg321.c:53:
./mpg321.h:296:7: error: redefinition of 'semun'
union semun {
      ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/sem.h:177:7: note: previous definition is here
union semun {
      ^
mpg321.c:102:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
extern http_file_length;
~~~~~~ ^
mpg321.c:186:46: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
                                                fprintf(stderr,"Volume: %ld%%      \r",volume);
                                                                        ~~~            ^~~~~~
                                                                        %d
mpg321.c:236:46: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
                                                fprintf(stderr,"Volume: %ld%%      \r",volume);
                                                                        ~~~            ^~~~~~
                                                                        %d
mpg321.c:450:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                printf(emptystring);
                       ^~~~~~~~~~~
mpg321.c:450:24: note: treat the string as an argument to avoid this
                printf(emptystring);
                       ^
                       "%s", 
mpg321.c:468:34: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                fprintf (stderr, emptystring);
                                 ^~~~~~~~~~~
mpg321.c:468:34: note: treat the string as an argument to avoid this
                fprintf (stderr, emptystring);
                                 ^
                                 "%s", 
mpg321.c:732:5: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
    sem_init(&main_lock,0,0);
    ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/semaphore.h:55:42: note: 'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
                                         ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:204:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
mpg321.c:884:6: warning: implicit declaration of function 'calc_http_length' is invalid in C99 [-Wimplicit-function-declaration]
            calc_http_length(&playbuf);
            ^
mpg321.c:1239:31: warning: passing 'id3_latin1_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        if (!latin1 || strlen(latin1) == 0) return (NULL);
                              ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                            ^
mpg321.c:1240:22: warning: passing 'id3_latin1_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        len = strlen(latin1);
                     ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                            ^
mpg321.c:1247:29: warning: passing 'id3_latin1_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        strncat (printable, latin1, tocopy);
                            ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:143:34: note: expanded from macro 'strncat'
                __builtin___strncat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                               ^~~~~~~~~~~
mpg321.c:1265:26: warning: passing 'id3_latin1_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            len = strlen(latin1);
                         ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t   strlen(const char *__s);
                            ^
mpg321.c:1272:33: warning: passing 'id3_latin1_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            strncat (printable, latin1, tocopy);
                                ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:143:34: note: expanded from macro 'strncat'
                __builtin___strncat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                               ^~~~~~~~~~~
12 warnings and 1 error generated.
*** [mpg321.o] Error code 1

bmake[2]: stopped making "all-am" in /Users/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
bmake[2]: 1 error

bmake[2]: stopped making "all-am" in /Users/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig

bmake[1]: stopped making "all-recursive" in /Users/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig

bmake: stopped making "all" in /Users/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
*** Error code 2

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

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