=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for mjpegtools-2.1.0nb1
/opt/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0'
Making all in utils
gmake[2]: Entering directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils'
gmake[3]: Entering directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils'
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT mjpeg_logging.lo -MD -MP -MF .deps/mjpeg_logging.Tpo -c -o mjpeg_logging.lo mjpeg_logging.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT mjpeg_logging.lo -MD -MP -MF .deps/mjpeg_logging.Tpo -c mjpeg_logging.c  -fno-common -DPIC -o .libs/mjpeg_logging.o
mv -f .deps/mjpeg_logging.Tpo .deps/mjpeg_logging.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT mpegconsts.lo -MD -MP -MF .deps/mpegconsts.Tpo -c -o mpegconsts.lo mpegconsts.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT mpegconsts.lo -MD -MP -MF .deps/mpegconsts.Tpo -c mpegconsts.c  -fno-common -DPIC -o .libs/mpegconsts.o
mv -f .deps/mpegconsts.Tpo .deps/mpegconsts.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT mpegtimecode.lo -MD -MP -MF .deps/mpegtimecode.Tpo -c -o mpegtimecode.lo mpegtimecode.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT mpegtimecode.lo -MD -MP -MF .deps/mpegtimecode.Tpo -c mpegtimecode.c  -fno-common -DPIC -o .libs/mpegtimecode.o
mv -f .deps/mpegtimecode.Tpo .deps/mpegtimecode.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT yuv4mpeg.lo -MD -MP -MF .deps/yuv4mpeg.Tpo -c -o yuv4mpeg.lo yuv4mpeg.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT yuv4mpeg.lo -MD -MP -MF .deps/yuv4mpeg.Tpo -c yuv4mpeg.c  -fno-common -DPIC -o .libs/yuv4mpeg.o
mv -f .deps/yuv4mpeg.Tpo .deps/yuv4mpeg.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT yuv4mpeg_ratio.lo -MD -MP -MF .deps/yuv4mpeg_ratio.Tpo -c -o yuv4mpeg_ratio.lo yuv4mpeg_ratio.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT yuv4mpeg_ratio.lo -MD -MP -MF .deps/yuv4mpeg_ratio.Tpo -c yuv4mpeg_ratio.c  -fno-common -DPIC -o .libs/yuv4mpeg_ratio.o
mv -f .deps/yuv4mpeg_ratio.Tpo .deps/yuv4mpeg_ratio.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT motionsearch.lo -MD -MP -MF .deps/motionsearch.Tpo -c -o motionsearch.lo motionsearch.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT motionsearch.lo -MD -MP -MF .deps/motionsearch.Tpo -c motionsearch.c  -fno-common -DPIC -o .libs/motionsearch.o
motionsearch.c:756:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
STATIC int sumsq(blk1,blk2,rowstride,hx,hy,h)
           ^
motionsearch.c:836:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
STATIC int bsad(pf,pb,p2,rowstride,hxf,hyf,hxb,hyb,h)
           ^
motionsearch.c:889:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
STATIC int bsumsq(pf,pb,p2,rowstride,hxf,hyf,hxb,hyb,h)
           ^
motionsearch.c:972:6: warning: unused variable 'cpucap' [-Wunused-variable]
        int cpucap = cpu_accel();
            ^
4 warnings generated.
mv -f .deps/motionsearch.Tpo .deps/motionsearch.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT cpu_accel.lo -MD -MP -MF .deps/cpu_accel.Tpo -c -o cpu_accel.lo cpu_accel.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT cpu_accel.lo -MD -MP -MF .deps/cpu_accel.Tpo -c cpu_accel.c  -fno-common -DPIC -o .libs/cpu_accel.o
cpu_accel.c:434:6: warning: unused variable 'foundit' [-Wunused-variable]
        int foundit = 0;
            ^
cpu_accel.c:449:30: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare]
        if ((ret == NULL) || ret == '\0') {
                                    ^~~~
                                    (void *)0
2 warnings generated.
mv -f .deps/cpu_accel.Tpo .deps/cpu_accel.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=link clang  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused  -version-info 0:0:0 -release 2.1  -L/opt/pkg/lib -o libmjpegutils.la -rpath /opt/pkg/lib mjpeg_logging.lo mpegconsts.lo mpegtimecode.lo yuv4mpeg.lo yuv4mpeg_ratio.lo motionsearch.lo cpu_accel.lo   -lm 
libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libmjpegutils-2.1.0.dylib  .libs/mjpeg_logging.o .libs/mpegconsts.o .libs/mpegtimecode.o .libs/yuv4mpeg.o .libs/yuv4mpeg_ratio.o .libs/motionsearch.o .libs/cpu_accel.o   -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib -lm  -Os   -install_name  /opt/pkg/lib/libmjpegutils-2.1.0.dylib -compatibility_version 1 -current_version 1.0 
libtool: link: (cd ".libs" && rm -f "libmjpegutils.dylib" && ln -s "libmjpegutils-2.1.0.dylib" "libmjpegutils.dylib")
libtool: link: ( cd ".libs" && rm -f "libmjpegutils.la" && ln -s "../libmjpegutils.la" "libmjpegutils.la" )
gmake[3]: Leaving directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils'
gmake[2]: Leaving directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils'
Making all in mpeg2enc
gmake[2]: Entering directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/mpeg2enc'
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT conform.lo -MD -MP -MF .deps/conform.Tpo -c -o conform.lo conform.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT conform.lo -MD -MP -MF .deps/conform.Tpo -c conform.cc  -fno-common -DPIC -o .libs/conform.o
mv -f .deps/conform.Tpo .deps/conform.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT elemstrmwriter.lo -MD -MP -MF .deps/elemstrmwriter.Tpo -c -o elemstrmwriter.lo elemstrmwriter.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT elemstrmwriter.lo -MD -MP -MF .deps/elemstrmwriter.Tpo -c elemstrmwriter.cc  -fno-common -DPIC -o .libs/elemstrmwriter.o
mv -f .deps/elemstrmwriter.Tpo .deps/elemstrmwriter.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT encoderparams.lo -MD -MP -MF .deps/encoderparams.Tpo -c -o encoderparams.lo encoderparams.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT encoderparams.lo -MD -MP -MF .deps/encoderparams.Tpo -c encoderparams.cc  -fno-common -DPIC -o .libs/encoderparams.o
mv -f .deps/encoderparams.Tpo .deps/encoderparams.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT macroblock.lo -MD -MP -MF .deps/macroblock.Tpo -c -o macroblock.lo macroblock.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT macroblock.lo -MD -MP -MF .deps/macroblock.Tpo -c macroblock.cc  -fno-common -DPIC -o .libs/macroblock.o
macroblock.cc:77:24: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
        if( i->mb_type & MB_BACKWARD == 0 && cur_score < best_fwd_score)
                       ^~~~~~~~~~~~~~~~~~
macroblock.cc:77:24: note: place parentheses around the '==' expression to silence this warning
        if( i->mb_type & MB_BACKWARD == 0 && cur_score < best_fwd_score)
                       ^
                         (               )
macroblock.cc:77:24: note: place parentheses around the & expression to evaluate it first
        if( i->mb_type & MB_BACKWARD == 0 && cur_score < best_fwd_score)
                       ^
            (                       )
1 warning generated.
mv -f .deps/macroblock.Tpo .deps/macroblock.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo -c -o motionest.lo motionest.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo -c motionest.cc  -fno-common -DPIC -o .libs/motionest.o
mv -f .deps/motionest.Tpo .deps/motionest.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT mpeg2coder.lo -MD -MP -MF .deps/mpeg2coder.Tpo -c -o mpeg2coder.lo mpeg2coder.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT mpeg2coder.lo -MD -MP -MF .deps/mpeg2coder.Tpo -c mpeg2coder.cc  -fno-common -DPIC -o .libs/mpeg2coder.o
mv -f .deps/mpeg2coder.Tpo .deps/mpeg2coder.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT mpeg2encoptions.lo -MD -MP -MF .deps/mpeg2encoptions.Tpo -c -o mpeg2encoptions.lo mpeg2encoptions.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT mpeg2encoptions.lo -MD -MP -MF .deps/mpeg2encoptions.Tpo -c mpeg2encoptions.cc  -fno-common -DPIC -o .libs/mpeg2encoptions.o
mv -f .deps/mpeg2encoptions.Tpo .deps/mpeg2encoptions.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT imageplanes.lo -MD -MP -MF .deps/imageplanes.Tpo -c -o imageplanes.lo imageplanes.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT imageplanes.lo -MD -MP -MF .deps/imageplanes.Tpo -c imageplanes.cc  -fno-common -DPIC -o .libs/imageplanes.o
mv -f .deps/imageplanes.Tpo .deps/imageplanes.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT mpeg2encoder.lo -MD -MP -MF .deps/mpeg2encoder.Tpo -c -o mpeg2encoder.lo mpeg2encoder.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT mpeg2encoder.lo -MD -MP -MF .deps/mpeg2encoder.Tpo -c mpeg2encoder.cc  -fno-common -DPIC -o .libs/mpeg2encoder.o
mv -f .deps/mpeg2encoder.Tpo .deps/mpeg2encoder.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT picture.lo -MD -MP -MF .deps/picture.Tpo -c -o picture.lo picture.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT picture.lo -MD -MP -MF .deps/picture.Tpo -c picture.cc  -fno-common -DPIC -o .libs/picture.o
mv -f .deps/picture.Tpo .deps/picture.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT picturereader.lo -MD -MP -MF .deps/picturereader.Tpo -c -o picturereader.lo picturereader.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT picturereader.lo -MD -MP -MF .deps/picturereader.Tpo -c picturereader.cc  -fno-common -DPIC -o .libs/picturereader.o
mv -f .deps/picturereader.Tpo .deps/picturereader.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT predict.lo -MD -MP -MF .deps/predict.Tpo -c -o predict.lo predict.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT predict.lo -MD -MP -MF .deps/predict.Tpo -c predict.cc  -fno-common -DPIC -o .libs/predict.o
mv -f .deps/predict.Tpo .deps/predict.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT putpic.lo -MD -MP -MF .deps/putpic.Tpo -c -o putpic.lo putpic.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT putpic.lo -MD -MP -MF .deps/putpic.Tpo -c putpic.cc  -fno-common -DPIC -o .libs/putpic.o
mv -f .deps/putpic.Tpo .deps/putpic.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT streamstate.lo -MD -MP -MF .deps/streamstate.Tpo -c -o streamstate.lo streamstate.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT streamstate.lo -MD -MP -MF .deps/streamstate.Tpo -c streamstate.cc  -fno-common -DPIC -o .libs/streamstate.o
mv -f .deps/streamstate.Tpo .deps/streamstate.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT seqencoder.lo -MD -MP -MF .deps/seqencoder.Tpo -c -o seqencoder.lo seqencoder.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT seqencoder.lo -MD -MP -MF .deps/seqencoder.Tpo -c seqencoder.cc  -fno-common -DPIC -o .libs/seqencoder.o
mv -f .deps/seqencoder.Tpo .deps/seqencoder.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT quantize.lo -MD -MP -MF .deps/quantize.Tpo -c -o quantize.lo quantize.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT quantize.lo -MD -MP -MF .deps/quantize.Tpo -c quantize.cc  -fno-common -DPIC -o .libs/quantize.o
mv -f .deps/quantize.Tpo .deps/quantize.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT ratectl.lo -MD -MP -MF .deps/ratectl.Tpo -c -o ratectl.lo ratectl.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT ratectl.lo -MD -MP -MF .deps/ratectl.Tpo -c ratectl.cc  -fno-common -DPIC -o .libs/ratectl.o
mv -f .deps/ratectl.Tpo .deps/ratectl.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT stats.lo -MD -MP -MF .deps/stats.Tpo -c -o stats.lo stats.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT stats.lo -MD -MP -MF .deps/stats.Tpo -c stats.cc  -fno-common -DPIC -o .libs/stats.o
mv -f .deps/stats.Tpo .deps/stats.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT synchrolib.lo -MD -MP -MF .deps/synchrolib.Tpo -c -o synchrolib.lo synchrolib.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT synchrolib.lo -MD -MP -MF .deps/synchrolib.Tpo -c synchrolib.cc  -fno-common -DPIC -o .libs/synchrolib.o
mv -f .deps/synchrolib.Tpo .deps/synchrolib.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT tables.lo -MD -MP -MF .deps/tables.Tpo -c -o tables.lo tables.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT tables.lo -MD -MP -MF .deps/tables.Tpo -c tables.c  -fno-common -DPIC -o .libs/tables.o
mv -f .deps/tables.Tpo .deps/tables.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT transfrm.lo -MD -MP -MF .deps/transfrm.Tpo -c -o transfrm.lo transfrm.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT transfrm.lo -MD -MP -MF .deps/transfrm.Tpo -c transfrm.cc  -fno-common -DPIC -o .libs/transfrm.o
mv -f .deps/transfrm.Tpo .deps/transfrm.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT fdct.lo -MD -MP -MF .deps/fdct.Tpo -c -o fdct.lo fdct.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT fdct.lo -MD -MP -MF .deps/fdct.Tpo -c fdct.c  -fno-common -DPIC -o .libs/fdct.o
mv -f .deps/fdct.Tpo .deps/fdct.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT idct.lo -MD -MP -MF .deps/idct.Tpo -c -o idct.lo idct.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT idct.lo -MD -MP -MF .deps/idct.Tpo -c idct.c  -fno-common -DPIC -o .libs/idct.o
mv -f .deps/idct.Tpo .deps/idct.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT predict_ref.lo -MD -MP -MF .deps/predict_ref.Tpo -c -o predict_ref.lo predict_ref.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT predict_ref.lo -MD -MP -MF .deps/predict_ref.Tpo -c predict_ref.c  -fno-common -DPIC -o .libs/predict_ref.o
predict_ref.c:182:27: warning: argument 'cur' of type 'uint8_t *[]' (aka 'unsigned char *[]') with mismatched bound [-Warray-parameter]
void clearblock( uint8_t *cur[], int i0, int j0,
                          ^
./predict_ref.h:40:32: note: previously declared as 'uint8_t *[3]' (aka 'unsigned char *[3]') here
    void clearblock ( uint8_t *cur[3], int i0, int j0, 
                               ^
1 warning generated.
mv -f .deps/predict_ref.Tpo .deps/predict_ref.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT quantize_ref.lo -MD -MP -MF .deps/quantize_ref.Tpo -c -o quantize_ref.lo quantize_ref.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT quantize_ref.lo -MD -MP -MF .deps/quantize_ref.Tpo -c quantize_ref.c  -fno-common -DPIC -o .libs/quantize_ref.o
quantize_ref.c:458:10: warning: cast to smaller integer type 'int' from 'struct QuantizerWorkSpace *' [-Wpointer-to-int-cast]
    if( ((int)wsp)%16 != 0 )
         ^~~~~~~~
1 warning generated.
mv -f .deps/quantize_ref.Tpo .deps/quantize_ref.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT transfrm_ref.lo -MD -MP -MF .deps/transfrm_ref.Tpo -c -o transfrm_ref.lo transfrm_ref.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT transfrm_ref.lo -MD -MP -MF .deps/transfrm_ref.Tpo -c transfrm_ref.c  -fno-common -DPIC -o .libs/transfrm_ref.o
transfrm_ref.c:192:6: warning: variable 'flags' set but not used [-Wunused-but-set-variable]
        int flags;
            ^
1 warning generated.
mv -f .deps/transfrm_ref.Tpo .deps/transfrm_ref.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT ontheflyratectlpass1.lo -MD -MP -MF .deps/ontheflyratectlpass1.Tpo -c -o ontheflyratectlpass1.lo ontheflyratectlpass1.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT ontheflyratectlpass1.lo -MD -MP -MF .deps/ontheflyratectlpass1.Tpo -c ontheflyratectlpass1.cc  -fno-common -DPIC -o .libs/ontheflyratectlpass1.o
In file included from ontheflyratectlpass1.cc:58:
./ontheflyratectlpass1.hh:1:9: warning: '_ONTHEFLYRATECTLPASS1_HH' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _ONTHEFLYRATECTLPASS1_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
./ontheflyratectlpass1.hh:2:9: note: '_ONTHELFYRATECTLPASS1_HH' is defined here; did you mean '_ONTHEFLYRATECTLPASS1_HH'?
#define _ONTHELFYRATECTLPASS1_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
        _ONTHEFLYRATECTLPASS1_HH
1 warning generated.
mv -f .deps/ontheflyratectlpass1.Tpo .deps/ontheflyratectlpass1.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT ontheflyratectlpass2.lo -MD -MP -MF .deps/ontheflyratectlpass2.Tpo -c -o ontheflyratectlpass2.lo ontheflyratectlpass2.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT ontheflyratectlpass2.lo -MD -MP -MF .deps/ontheflyratectlpass2.Tpo -c ontheflyratectlpass2.cc  -fno-common -DPIC -o .libs/ontheflyratectlpass2.o
In file included from ontheflyratectlpass2.cc:58:
./ontheflyratectlpass2.hh:1:9: warning: '_ONTHEFLYRATECTLPASS2_HH' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _ONTHEFLYRATECTLPASS2_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
./ontheflyratectlpass2.hh:2:9: note: '_ONTHELFYRATECTLPASS2_HH' is defined here; did you mean '_ONTHEFLYRATECTLPASS2_HH'?
#define _ONTHELFYRATECTLPASS2_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
        _ONTHEFLYRATECTLPASS2_HH
1 warning generated.
mv -f .deps/ontheflyratectlpass2.Tpo .deps/ontheflyratectlpass2.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT rate_complexity_model.lo -MD -MP -MF .deps/rate_complexity_model.Tpo -c -o rate_complexity_model.lo rate_complexity_model.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -D_THREAD_SAFE -D_REENTRANT -MT rate_complexity_model.lo -MD -MP -MF .deps/rate_complexity_model.Tpo -c rate_complexity_model.cc  -fno-common -DPIC -o .libs/rate_complexity_model.o
mv -f .deps/rate_complexity_model.Tpo .deps/rate_complexity_model.Plo
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=link clang++  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT   -version-info 0:0:0 -release 2.1  -L/opt/pkg/lib -o libmpeg2encpp.la -rpath /opt/pkg/lib conform.lo elemstrmwriter.lo encoderparams.lo macroblock.lo motionest.lo mpeg2coder.lo mpeg2encoptions.lo imageplanes.lo mpeg2encoder.lo picture.lo picturereader.lo predict.lo putpic.lo streamstate.lo seqencoder.lo quantize.lo ratectl.lo stats.lo synchrolib.lo tables.lo transfrm.lo fdct.lo idct.lo predict_ref.lo quantize_ref.lo transfrm_ref.lo  ontheflyratectlpass1.lo ontheflyratectlpass2.lo rate_complexity_model.lo ../utils/libmjpegutils.la -lpthread -lm 
libtool: link: clang++ -r -keep_private_externs -nostdlib -o .libs/libmpeg2encpp-2.1.0.dylib-master.o  .libs/conform.o .libs/elemstrmwriter.o .libs/encoderparams.o .libs/macroblock.o .libs/motionest.o .libs/mpeg2coder.o .libs/mpeg2encoptions.o .libs/imageplanes.o .libs/mpeg2encoder.o .libs/picture.o .libs/picturereader.o .libs/predict.o .libs/putpic.o .libs/streamstate.o .libs/seqencoder.o .libs/quantize.o .libs/ratectl.o .libs/stats.o .libs/synchrolib.o .libs/tables.o .libs/transfrm.o .libs/fdct.o .libs/idct.o .libs/predict_ref.o .libs/quantize_ref.o .libs/transfrm_ref.o .libs/ontheflyratectlpass1.o .libs/ontheflyratectlpass2.o .libs/rate_complexity_model.o 
libtool: link: clang++ -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libmpeg2encpp-2.1.0.dylib .libs/libmpeg2encpp-2.1.0.dylib-master.o  -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib ../utils/.libs/libmjpegutils.dylib -lpthread -lm  -Os   -install_name  /opt/pkg/lib/libmpeg2encpp-2.1.0.dylib -compatibility_version 1 -current_version 1.0
libtool: link: (cd ".libs" && rm -f "libmpeg2encpp.dylib" && ln -s "libmpeg2encpp-2.1.0.dylib" "libmpeg2encpp.dylib")
libtool: link: ( cd ".libs" && rm -f "libmpeg2encpp.la" && ln -s "../libmpeg2encpp.la" "libmpeg2encpp.la" )
clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT  -MT mpeg2enc.o -MD -MP -MF .deps/mpeg2enc.Tpo -c -o mpeg2enc.o mpeg2enc.cc
In file included from mpeg2enc.cc:68:
./ontheflyratectlpass1.hh:1:9: warning: '_ONTHEFLYRATECTLPASS1_HH' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _ONTHEFLYRATECTLPASS1_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
./ontheflyratectlpass1.hh:2:9: note: '_ONTHELFYRATECTLPASS1_HH' is defined here; did you mean '_ONTHEFLYRATECTLPASS1_HH'?
#define _ONTHELFYRATECTLPASS1_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
        _ONTHEFLYRATECTLPASS1_HH
In file included from mpeg2enc.cc:69:
./ontheflyratectlpass2.hh:1:9: warning: '_ONTHEFLYRATECTLPASS2_HH' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _ONTHEFLYRATECTLPASS2_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
./ontheflyratectlpass2.hh:2:9: note: '_ONTHELFYRATECTLPASS2_HH' is defined here; did you mean '_ONTHEFLYRATECTLPASS2_HH'?
#define _ONTHELFYRATECTLPASS2_HH
        ^~~~~~~~~~~~~~~~~~~~~~~~
        _ONTHEFLYRATECTLPASS2_HH
2 warnings generated.
mv -f .deps/mpeg2enc.Tpo .deps/mpeg2enc.Po
/opt/pkg/bin/mksh ../libtool --tag=CXX   --mode=link clang++  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -D_THREAD_SAFE  -D_REENTRANT   -L/opt/pkg/lib -o mpeg2enc mpeg2enc.o libmpeg2encpp.la ../utils/libmjpegutils.la -lpthread  -lm  -lm 
libtool: link: clang++ -pipe -Os -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -D_THREAD_SAFE -D_REENTRANT -o .libs/mpeg2enc mpeg2enc.o  -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib ./.libs/libmpeg2encpp.dylib /Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils/.libs/libmjpegutils.dylib ../utils/.libs/libmjpegutils.dylib -lpthread -lm
gmake[2]: Leaving directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/mpeg2enc'
Making all in lavtools
gmake[2]: Entering directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/lavtools'
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils  -I/opt/pkg/include  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavfile_la-editlist.lo -MD -MP -MF .deps/liblavfile_la-editlist.Tpo -c -o liblavfile_la-editlist.lo `test -f 'editlist.c' || echo './'`editlist.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavfile_la-editlist.lo -MD -MP -MF .deps/liblavfile_la-editlist.Tpo -c editlist.c  -fno-common -DPIC -o .libs/liblavfile_la-editlist.o
mv -f .deps/liblavfile_la-editlist.Tpo .deps/liblavfile_la-editlist.Plo
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils  -I/opt/pkg/include  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavfile_la-lav_io.lo -MD -MP -MF .deps/liblavfile_la-lav_io.Tpo -c -o liblavfile_la-lav_io.lo `test -f 'lav_io.c' || echo './'`lav_io.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavfile_la-lav_io.lo -MD -MP -MF .deps/liblavfile_la-lav_io.Tpo -c lav_io.c  -fno-common -DPIC -o .libs/liblavfile_la-lav_io.o
lav_io.c:483:57: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               res = AVI_write_frame( lav_file->avi_fd, buff, size, 0);
                                                        ^~~~
./avilib.h:321:40: note: passing argument to parameter 'data' here
int  AVI_write_frame(avi_t *AVI, char *data, long bytes, int keyframe);
                                       ^
lav_io.c:386:9: warning: variable 'jpglen' set but not used [-Wunused-but-set-variable]
   long jpglen = 0;
        ^
lav_io.c:520:51: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
         res = AVI_write_audio( lav_file->avi_fd, buff, samps*lav_file->bps);
                                                  ^~~~
./avilib.h:323:40: note: passing argument to parameter 'data' here
int  AVI_write_audio(avi_t *AVI, char *data, long bytes);
                                       ^
lav_io.c:785:49: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
         return AVI_read_frame(lav_file->avi_fd,vidbuf, &keyframe);
                                                ^~~~~~
./avilib.h:358:39: note: passing argument to parameter 'vidbuf' here
long AVI_read_frame(avi_t *AVI, char *vidbuf, int *keyframe);
                                      ^
lav_io.c:831:49: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
         return AVI_read_audio(lav_file->avi_fd,audbuf,samps*lav_file->bps)/lav_file->bps;
                                                ^~~~~~
./avilib.h:366:39: note: passing argument to parameter 'audbuf' here
long AVI_read_audio(avi_t *AVI, char *audbuf, long bytes);
                                      ^
lav_io.c:929:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
            fprintf(stderr, errmsg);
                            ^~~~~~
lav_io.c:929:29: note: treat the string as an argument to avoid this
            fprintf(stderr, errmsg);
                            ^
                            "%s", 
lav_io.c:883:20: warning: variable 'jpg_width' set but not used [-Wunused-but-set-variable]
   int jpg_height, jpg_width, ncomps, hf[3], vf[3];
                   ^
7 warnings generated.
mv -f .deps/liblavfile_la-lav_io.Tpo .deps/liblavfile_la-lav_io.Plo
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils  -I/opt/pkg/include  -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavfile_la-avilib.lo -MD -MP -MF .deps/liblavfile_la-avilib.Tpo -c -o liblavfile_la-avilib.lo `test -f 'avilib.c' || echo './'`avilib.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavfile_la-avilib.lo -MD -MP -MF .deps/liblavfile_la-avilib.Tpo -c avilib.c  -fno-common -DPIC -o .libs/liblavfile_la-avilib.o
avilib.c:250:5: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    OUTD(ch->nEntriesInUse);
    ^~~~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:252:5: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    OUTD(ch->qwBaseOffset&0xffffffff);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:253:5: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    OUTD((ch->qwBaseOffset>>32)&0xffffffff);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:254:5: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    OUTD(ch->dwReserved3);
    ^~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:257:2: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        OUTD(ch->aIndex[k].dwOffset);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:258:2: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        OUTD(ch->aIndex[k].dwSize);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
avilib.c:218:26: note: expanded from macro 'OUTD'
#define OUTD(n) long2str(ix00+bl,n); bl+=4
                         ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:261:25: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    avi_add_chunk (AVI, ch->fcc, ix00, max);
                        ^~~~~~~
avilib.c:186:53: note: passing argument to parameter 'tag' here
static int avi_add_chunk(avi_t *AVI, unsigned char *tag, unsigned char *data, int length)
                                                    ^
avilib.c:261:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    avi_add_chunk (AVI, ch->fcc, ix00, max);
                                 ^~~~
avilib.c:186:73: note: passing argument to parameter 'data' here
static int avi_add_chunk(avi_t *AVI, unsigned char *tag, unsigned char *data, int length)
                                                                        ^
avilib.c:379:26: warning: passing '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]
    int audio = (strchr (tag, 'w')?1:0);
                         ^~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here
char    *strchr(const char *__s, int __c);
                            ^
avilib.c:389:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_init_super_index(AVI, "ix00", &AVI->video_superindex) < 0) return -1;
                                          ^~~~~~
avilib.c:273:60: note: passing argument to parameter 'idxtag' here
static int avi_init_super_index(avi_t *AVI, unsigned char *idxtag, avisuperindex_chunk **si)
                                                           ^
avilib.c:393:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_add_std_index (AVI, "ix00", "00db", AVI->video_superindex->stdindex[ cur_std_idx ]) < 0) 
                                        ^~~~~~
avilib.c:319:57: note: passing argument to parameter 'idxtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                        ^
avilib.c:393:42: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_add_std_index (AVI, "ix00", "00db", AVI->video_superindex->stdindex[ cur_std_idx ]) < 0) 
                                                ^~~~~~
avilib.c:319:80: note: passing argument to parameter 'strtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                                               ^
avilib.c:407:36: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_init_super_index(AVI, fcc, &AVI->track[AVI->aptr].audio_superindex) < 0) return -1;
                                          ^~~
avilib.c:273:60: note: passing argument to parameter 'idxtag' here
static int avi_init_super_index(avi_t *AVI, unsigned char *idxtag, avisuperindex_chunk **si)
                                                           ^
avilib.c:413:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_add_std_index (AVI, fcc, tag, AVI->track[AVI->aptr].audio_superindex->stdindex[ 
                                        ^~~
avilib.c:319:57: note: passing argument to parameter 'idxtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                        ^
avilib.c:460:30: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        if (avi_add_std_index (AVI, "ix00", "00db", AVI->video_superindex->stdindex[ cur_std_idx ]) < 0) 
                                    ^~~~~~
avilib.c:319:57: note: passing argument to parameter 'idxtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                        ^
avilib.c:460:38: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        if (avi_add_std_index (AVI, "ix00", "00db", AVI->video_superindex->stdindex[ cur_std_idx ]) < 0) 
                                            ^~~~~~
avilib.c:319:80: note: passing argument to parameter 'strtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                                               ^
avilib.c:473:34: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_add_std_index (AVI, fcc, aud, AVI->track[audtr].audio_superindex->stdindex[ 
                                        ^~~
avilib.c:319:57: note: passing argument to parameter 'idxtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                        ^
avilib.c:473:39: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (avi_add_std_index (AVI, fcc, aud, AVI->track[audtr].audio_superindex->stdindex[ 
                                             ^~~
avilib.c:319:80: note: passing argument to parameter 'strtag' here
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag,
                                                                               ^
avilib.c:510:50: warning: passing 'char[17]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            avi_add_chunk(AVI, (unsigned char *)"RIFF", "AVIXLIST\0\0\0\0movi", 16);
                                                        ^~~~~~~~~~~~~~~~~~~~~~
avilib.c:186:73: note: passing argument to parameter 'data' here
static int avi_add_chunk(avi_t *AVI, unsigned char *tag, unsigned char *data, int length)
                                                                        ^
avilib.c:1082:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            long2str(buf+len, k+1); len += 4;
                     ^~~~~~~
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:1012:16: warning: variable 'readlen' set but not used [-Wunused-but-set-variable]
    int len=0, readlen=0, k;
               ^
avilib.c:1599:52: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
   info_len = avi_parse_comments (AVI->comment_fd, AVI_header+nhb, HEADERBYTES - nhb - 8 - 12);
                                                   ^~~~~~~~~~~~~~
avilib.c:1010:46: note: passing argument to parameter 'buf' here
static int avi_parse_comments (int fd, char *buf, int space_left) 
                                             ^
avilib.c:1668:15: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            long2str(f, len);
                     ^
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:1674:15: warning: passing 'char[4]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            long2str(f, len);
                     ^
avilib.c:122:37: note: passing argument to parameter 'dst' here
static void long2str(unsigned char *dst, int32_t n)
                                    ^
avilib.c:1732:50: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
     n = avi_add_chunk(AVI,(unsigned char *)astr,data,length);
                                                 ^~~~
avilib.c:186:73: note: passing argument to parameter 'data' here
static int avi_add_chunk(avi_t *AVI, unsigned char *tag, unsigned char *data, int length)
                                                                        ^
avilib.c:1734:52: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
     n = avi_add_chunk(AVI,(unsigned char *)"00db",data,length);
                                                   ^~~~
avilib.c:186:73: note: passing argument to parameter 'data' here
static int avi_add_chunk(avi_t *AVI, unsigned char *tag, unsigned char *data, int length)
                                                                        ^
avilib.c:2103:10: warning: variable 'line_count' set but not used [-Wunused-but-set-variable]
    long line_count=0;
         ^
avilib.c:2370:32: warning: passing '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]
         else if (strncasecmp (hdrl_data+i,"iavs",4) ==0 && ! auds_strh_seen) {
                               ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2378:27: warning: passing '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]
      else if(strncasecmp(hdrl_data+i,"dmlh",4) == 0) {
                          ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2455:27: warning: passing '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]
      else if(strncasecmp(hdrl_data+i,"indx",4) == 0) {
                          ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2462:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            a = hdrl_data+i;
              ^ ~~~~~~~~~~~
avilib.c:2466:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_superindex->dwSize = str2ulong(a);          a += 4;
                                                      ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2467:57: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_superindex->wLongsPerEntry = str2ushort(a); a += 2;
                                                               ^
avilib.c:150:43: note: passing argument to parameter 'str' here
static uint32_t str2ushort(unsigned char *str)
                                          ^
avilib.c:2470:55: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_superindex->nEntriesInUse = str2ulong(a);   a += 4;
                                                             ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2483:65: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->video_superindex->aIndex[j].qwOffset = str2ullong (a);  a += 8;
                                                                       ^
avilib.c:139:43: note: passing argument to parameter 'str' here
static uint64_t str2ullong(unsigned char *str)
                                          ^
avilib.c:2484:62: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->video_superindex->aIndex[j].dwSize = str2ulong (a);     a += 4;
                                                                    ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2485:66: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->video_superindex->aIndex[j].dwDuration = str2ulong (a); a += 4;
                                                                        ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2515:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            a = hdrl_data+i;
              ^ ~~~~~~~~~~~
avilib.c:2519:65: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->track[AVI->aptr].audio_superindex->dwSize = str2ulong(a);          a += 4;
                                                                       ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2520:74: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->track[AVI->aptr].audio_superindex->wLongsPerEntry = str2ushort(a); a += 2;
                                                                                ^
avilib.c:150:43: note: passing argument to parameter 'str' here
static uint32_t str2ushort(unsigned char *str)
                                          ^
avilib.c:2523:72: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->track[AVI->aptr].audio_superindex->nEntriesInUse = str2ulong(a);   a += 4;
                                                                              ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2537:82: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->track[AVI->aptr].audio_superindex->aIndex[j].qwOffset = str2ullong (a);  a += 8;
                                                                                        ^
avilib.c:139:43: note: passing argument to parameter 'str' here
static uint64_t str2ullong(unsigned char *str)
                                          ^
avilib.c:2538:79: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->track[AVI->aptr].audio_superindex->aIndex[j].dwSize = str2ulong (a);     a += 4;
                                                                                     ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2539:83: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->track[AVI->aptr].audio_superindex->aIndex[j].dwDuration = str2ulong (a); a += 4;
                                                                                         ^
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2563:28: warning: passing '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]
      else if((strncasecmp(hdrl_data+i,"JUNK",4) == 0) ||
                           ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2564:28: warning: passing '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]
              (strncasecmp(hdrl_data+i,"strn",4) == 0) ||
                           ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2565:28: warning: passing '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]
              (strncasecmp(hdrl_data+i,"vprp",4) == 0)){
                           ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:2735:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
         nrEntries = str2ulong(en + 12);
                               ^~~~~~~
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2739:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
         offset = str2ullong(en + 20);
                             ^~~~~~~
avilib.c:139:43: note: passing argument to parameter 'str' here
static uint64_t str2ullong(unsigned char *str)
                                          ^
avilib.c:2752:51: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_index[k].pos = offset + str2ulong(en); en += 4;
                                                         ^~
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2753:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_index[k].len = str2ulong_len(en);
                                                    ^~
avilib.c:156:47: note: passing argument to parameter 'str' here
static uint32_t str2ulong_len (unsigned char *str)
                                              ^
avilib.c:2754:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            AVI->video_index[k].key = str2ulong_key(en); en += 4;
                                                    ^~
avilib.c:163:47: note: passing argument to parameter 'str' here
static uint32_t str2ulong_key (unsigned char *str)
                                              ^
avilib.c:2814:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            nrEntries = str2ulong(en + 12);
                                  ^~~~~~~
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2819:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            offset = str2ullong(en + 20);
                                ^~~~~~~
avilib.c:139:43: note: passing argument to parameter 'str' here
static uint64_t str2ullong(unsigned char *str)
                                          ^
avilib.c:2828:67: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->track[audtr].audio_index[k].pos = offset + str2ulong(en); en += 4;
                                                                         ^~
avilib.c:146:42: note: passing argument to parameter 'str' here
static uint32_t str2ulong(unsigned char *str)
                                         ^
avilib.c:2829:62: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
               AVI->track[audtr].audio_index[k].len = str2ulong_len(en); en += 4;
                                                                    ^~
avilib.c:156:47: note: passing argument to parameter 'str' here
static uint32_t str2ulong_len (unsigned char *str)
                                              ^
avilib.c:3539:21: warning: passing 'uint8_t[4]' (aka 'unsigned char[4]') 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( strncasecmp(wave->riff.id     , "RIFF",4) != 0 ||
                    ^~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:3540:14: warning: passing 'uint8_t[4]' (aka 'unsigned char[4]') 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]
        strncasecmp(wave->riff.wave_id, "WAVE",4) != 0 ||
                    ^~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
avilib.c:3541:14: warning: passing 'uint8_t[4]' (aka 'unsigned char[4]') 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]
        strncasecmp(wave->format.id   , "fmt ",4) != 0 )
                    ^~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here
int      strncasecmp(const char *, const char *, size_t);
                                 ^
59 warnings generated.
mv -f .deps/liblavfile_la-avilib.Tpo .deps/liblavfile_la-avilib.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=link clang  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused  -version-info 0:0:0 -release 2.1  -L/opt/pkg/lib -o liblavfile.la -rpath /opt/pkg/lib liblavfile_la-editlist.lo liblavfile_la-lav_io.lo liblavfile_la-avilib.lo  -ljpeg -L/opt/pkg/lib -ldv -lm ../utils/libmjpegutils.la  -lm 
libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/liblavfile-2.1.0.dylib  .libs/liblavfile_la-editlist.o .libs/liblavfile_la-lav_io.o .libs/liblavfile_la-avilib.o   -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libjpeg.dylib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libdv.dylib -lpthread ../utils/.libs/libmjpegutils.dylib -lm  -Os   -install_name  /opt/pkg/lib/liblavfile-2.1.0.dylib -compatibility_version 1 -current_version 1.0 
libtool: link: (cd ".libs" && rm -f "liblavfile.dylib" && ln -s "liblavfile-2.1.0.dylib" "liblavfile.dylib")
libtool: link: ( cd ".libs" && rm -f "liblavfile.la" && ln -s "../liblavfile.la" "liblavfile.la" )
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils   -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavjpeg_la-jpegutils.lo -MD -MP -MF .deps/liblavjpeg_la-jpegutils.Tpo -c -o liblavjpeg_la-jpegutils.lo `test -f 'jpegutils.c' || echo './'`jpegutils.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -DPNG_NO_ASSEMBLER_CODE -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavjpeg_la-jpegutils.lo -MD -MP -MF .deps/liblavjpeg_la-jpegutils.Tpo -c jpegutils.c  -fno-common -DPIC -o .libs/liblavjpeg_la-jpegutils.o
mv -f .deps/liblavjpeg_la-jpegutils.Tpo .deps/liblavjpeg_la-jpegutils.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=link clang  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused  -version-info 0:0:0 -release 2.1  -L/opt/pkg/lib -o liblavjpeg.la -rpath /opt/pkg/lib liblavjpeg_la-jpegutils.lo -ljpeg ../utils/libmjpegutils.la  -lm 
libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/liblavjpeg-2.1.0.dylib  .libs/liblavjpeg_la-jpegutils.o   -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libjpeg.dylib ../utils/.libs/libmjpegutils.dylib -lm  -Os   -install_name  /opt/pkg/lib/liblavjpeg-2.1.0.dylib -compatibility_version 1 -current_version 1.0 
libtool: link: (cd ".libs" && rm -f "liblavjpeg.dylib" && ln -s "liblavjpeg-2.1.0.dylib" "liblavjpeg.dylib")
libtool: link: ( cd ".libs" && rm -f "liblavjpeg.la" && ln -s "../liblavjpeg.la" "liblavjpeg.la" )
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils  -I/opt/pkg/include  -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavplay_la-liblavplay.lo -MD -MP -MF .deps/liblavplay_la-liblavplay.Tpo -c -o liblavplay_la-liblavplay.lo `test -f 'liblavplay.c' || echo './'`liblavplay.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DPNG_NO_ASSEMBLER_CODE -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavplay_la-liblavplay.lo -MD -MP -MF .deps/liblavplay_la-liblavplay.Tpo -c liblavplay.c  -fno-common -DPIC -o .libs/liblavplay_la-liblavplay.o
liblavplay.c:1577:8: warning: variable 'hn' set but not used [-Wunused-but-set-variable]
   int hn;
       ^
liblavplay.c:2677:7: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
      abs(editlist->video_fps - new_eli->video_fps) < 0.0000001 &&
      ^
liblavplay.c:2677:7: note: use function 'fabs' instead
      abs(editlist->video_fps - new_eli->video_fps) < 0.0000001 &&
      ^~~
      fabs
liblavplay.c:2677:7: note: include the header <math.h> or explicitly provide a declaration for 'fabs'
2 warnings generated.
mv -f .deps/liblavplay_la-liblavplay.Tpo .deps/liblavplay_la-liblavplay.Plo
/opt/pkg/bin/mksh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -I.. -I../utils  -I/opt/pkg/include  -I/opt/pkg/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/SDL  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused -MT liblavplay_la-audiolib.lo -MD -MP -MF .deps/liblavplay_la-audiolib.Tpo -c -o liblavplay_la-audiolib.lo `test -f 'audiolib.c' || echo './'`audiolib.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../utils -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include -I/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DPNG_NO_ASSEMBLER_CODE -pipe -Os -no-cpp-precomp -D_THREAD_SAFE -D_REENTRANT -Wall -Wunused -MT liblavplay_la-audiolib.lo -MD -MP -MF .deps/liblavplay_la-audiolib.Tpo -c audiolib.c  -fno-common -DPIC -o .libs/liblavplay_la-audiolib.o
mv -f .deps/liblavplay_la-audiolib.Tpo .deps/liblavplay_la-audiolib.Plo
/opt/pkg/bin/mksh ../libtool --tag=CC   --mode=link clang  -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/SDL -no-cpp-precomp -D_THREAD_SAFE  -D_REENTRANT -Wall -Wunused  -version-info 0:0:0 -release 2.1  -L/opt/pkg/lib -o liblavplay.la -rpath /opt/pkg/lib liblavplay_la-liblavplay.lo liblavplay_la-audiolib.lo liblavfile.la -L/opt/pkg/lib -lSDLmain -lSDL -Wl,-framework,Cocoa liblavjpeg.la -L/opt/pkg/lib -ldv -lm ../utils/libmjpegutils.la   -lX11 -lm 
libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/liblavplay-2.1.0.dylib  .libs/liblavplay_la-liblavplay.o .libs/liblavplay_la-audiolib.o   -L/Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib ./.libs/liblavfile.dylib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libSDLmain.a /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libSDL.dylib ./.libs/liblavjpeg.dylib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libjpeg.dylib /Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils/.libs/libmjpegutils.dylib /Users/pbulk/build/multimedia/mjpegtools/work/.buildlink/lib/libdv.dylib -lpthread ../utils/.libs/libmjpegutils.dylib -lX11 -lm  -Os -Wl,-framework -Wl,Cocoa -Wl,-dylib_file -Wl,/opt/pkg/lib/libmjpegutils-2.1.0.dylib:/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils/.libs/libmjpegutils.dylib -Wl,-dylib_file -Wl,/opt/pkg/lib/libmjpegutils-2.1.0.dylib:/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/utils/.libs/libmjpegutils.dylib   -install_name  /opt/pkg/lib/liblavplay-2.1.0.dylib -compatibility_version 1 -current_version 1.0 
ld: warning: -dylib_file is deprecated. Use -F or -L to control where indirect dylibs are found
ld: library 'X11' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:641: liblavplay.la] Error 1
gmake[2]: Leaving directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0/lavtools'
gmake[1]: *** [Makefile:499: all-recursive] Error 1
gmake[1]: Leaving directory '/Users/pbulk/build/multimedia/mjpegtools/work/mjpegtools-2.1.0'
gmake: *** [Makefile:405: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/multimedia/mjpegtools
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/multimedia/mjpegtools