+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mpg321-0.3.2nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mpg321-0.3.2nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for mpg321-0.3.2nb2
/opt/pkg/bin/bmake  all-recursive
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT mpg321.o -MD -MP -MF .deps/mpg321.Tpo -c -o mpg321.o mpg321.c
mpg321.c:102:8: warning: type defaults to 'int' in declaration of 'http_file_length' [-Wimplicit-int]
  102 | extern http_file_length;
      |        ^~~~~~~~~~~~~~~~
mpg321.c: In function 'main':
mpg321.c:884:6: warning: implicit declaration of function 'calc_http_length'; did you mean 'calc_length'? [-Wimplicit-function-declaration]
  884 |      calc_http_length(&playbuf);
      |      ^~~~~~~~~~~~~~~~
      |      calc_length
mpg321.c:1192:15: warning: passing argument 1 of 'shmdt' from incompatible pointer type [-Wincompatible-pointer-types]
 1192 |      if(shmdt(Output_Queue) == -1)
      |               ^~~~~~~~~~~~
      |               |
      |               output_frame *
In file included from mpg321.c:50:
/usr/include/sys/shm.h:136:11: note: expected 'char *' but argument is of type 'output_frame *'
  136 | int shmdt(char *);
      |           ^~~~~~
mv -f .deps/mpg321.Tpo .deps/mpg321.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT mad.o -MD -MP -MF .deps/mad.Tpo -c -o mad.o mad.c
mad.c: In function 'perform_and_print':
mad.c:872:2: warning: implicit declaration of function 'fft_perform' [-Wimplicit-function-declaration]
  872 |  fft_perform((sound_sample *)samples, fftout, state);
      |  ^~~~~~~~~~~
mad.c: At top level:
mad.c:836:13: warning: 'prng' is static but used in inline function 'audio_linear_dither' which is not static
  836 |   random  = prng(dither->random);
      |             ^~~~
mv -f .deps/mad.Tpo .deps/mad.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT playlist.o -MD -MP -MF .deps/playlist.Tpo -c -o playlist.o playlist.c
mv -f .deps/playlist.Tpo .deps/playlist.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT network.o -MD -MP -MF .deps/network.Tpo -c -o network.o network.c
network.c: In function 'http_open':
network.c:482:5: warning: implicit declaration of function 'do_basicauth' [-Wimplicit-function-declaration]
  482 |     do_basicauth();
      |     ^~~~~~~~~~~~
mv -f .deps/network.Tpo .deps/network.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT remote.o -MD -MP -MF .deps/remote.Tpo -c -o remote.o remote.c
mv -f .deps/remote.Tpo .deps/remote.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT ao.o -MD -MP -MF .deps/ao.Tpo -c -o ao.o ao.c
mv -f .deps/ao.Tpo .deps/ao.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT options.o -MD -MP -MF .deps/options.Tpo -c -o options.o options.c
options.c:47:8: warning: type defaults to 'int' in declaration of 'remote_restart' [-Wimplicit-int]
   47 | extern remote_restart;
      |        ^~~~~~~~~~~~~~
mv -f .deps/options.Tpo .deps/options.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT auth.o -MD -MP -MF .deps/auth.Tpo -c -o auth.o auth.c
mv -f .deps/auth.Tpo .deps/auth.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT scrobbler.o -MD -MP -MF .deps/scrobbler.Tpo -c -o scrobbler.o scrobbler.c
mv -f .deps/scrobbler.Tpo .deps/scrobbler.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT fft.o -MD -MP -MF .deps/fft.Tpo -c -o fft.o fft.c
fft.c: In function 'fft_prepare':
fft.c:150:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  150 |         sound_sample* ptr = &(input[bitReverse[i] * 2]);
      |                             ^
mv -f .deps/fft.Tpo .deps/fft.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT fbuffer.o -MD -MP -MF .deps/fbuffer.Tpo -c -o fbuffer.o fbuffer.c
fbuffer.c: In function 'frame_buffer_p':
fbuffer.c:60:6: warning: implicit declaration of function 'check_default_play_device_buffer'; did you mean 'check_default_play_device'? [-Wimplicit-function-declaration]
   60 |  if (check_default_play_device_buffer() == -1) {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |      check_default_play_device
fbuffer.c:72:18: warning: implicit declaration of function 'open_ao_playdevice_buffer'; did you mean 'open_ao_playdevice'? [-Wimplicit-function-declaration]
   72 |    play_device = open_ao_playdevice_buffer(header);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                  open_ao_playdevice
fbuffer.c:72:16: warning: assignment to 'ao_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   72 |    play_device = open_ao_playdevice_buffer(header);
      |                ^
fbuffer.c:82:16: warning: assignment to 'ao_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   82 |    play_device = open_ao_playdevice_buffer(header);
      |                ^
mv -f .deps/fbuffer.Tpo .deps/fbuffer.Po
gcc -DHAVE_CONFIG_H -I.    -I/opt/pkg/include -I/usr/include  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include -MT volume.o -MD -MP -MF .deps/volume.Tpo -c -o volume.o volume.c
mv -f .deps/volume.Tpo .deps/volume.Po
gcc  -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/usr/include -I/opt/pkg/include  -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o mpg321 mpg321.o mad.o playlist.o  network.o remote.o ao.o  options.o auth.o scrobbler.o  fft.o fbuffer.o volume.o  -lnsl -lpthread -lid3tag -lz -lmad  -L/opt/pkg/lib -lao  -lz -lpthread -lm -lsocket
Undefined			first referenced
 symbol  			    in file
audio_linear_dither                 mad.o
ld: fatal: symbol referencing errors. No output written to mpg321
collect2: error: ld returned 1 exit status
*** [mpg321] Error code 1

bmake[2]: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
1 error

bmake[2]: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
*** [all-recursive] Error code 1

bmake[1]: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
1 error

bmake[1]: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
1 error

bmake: stopped in /home/pbulk/build/audio/mpg321/work/mpg321-0.3.2-orig
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/audio/mpg321
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/audio/mpg321