==> Creating clean working copy [leming]...done
==> Making package: aml-libs-c2 r9.296f39b-1 (Mon Feb 27 19:18:30 MST 2017)
==> Retrieving sources...
  -> Cloning c2_aml_libs git repo...
Cloning into bare repository '/home/leming/work/aml-libs-c2/c2_aml_libs'...
  -> Found 99-amlogic.rules
==> Validating source files with md5sums...
    c2_aml_libs ... Skipped
    99-amlogic.rules ... Passed
==> Making package: aml-libs-c2 r9.296f39b-1 (Mon Feb 27 19:18:34 MST 2017)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (1) alsa-lib-1.1.3-1

Total Download Size:   0.37 MiB
Total Installed Size:  1.85 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
downloading alsa-lib-1.1.3-1-aarch64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing alsa-lib...
Optional dependencies for alsa-lib
    python2: for python smixer plugin
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (2) perl-error-0.17024-1  git-2.12.0-1

Total Download Size:    4.81 MiB
Total Installed Size:  27.70 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
downloading perl-error-0.17024-1-any.pkg.tar.xz...
downloading perl-error-0.17024-1-any.pkg.tar.xz...
downloading perl-error-0.17024-1-any.pkg.tar.xz...
downloading perl-error-0.17024-1-any.pkg.tar.xz...
downloading perl-error-0.17024-1-any.pkg.tar.xz...
downloading git-2.12.0-1-aarch64.pkg.tar.xz...
downloading git-2.12.0-1-aarch64.pkg.tar.xz...
downloading git-2.12.0-1-aarch64.pkg.tar.xz...
downloading git-2.12.0-1-aarch64.pkg.tar.xz...
downloading git-2.12.0-1-aarch64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing perl-error...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn
    perl-mime-tools: git send-email
    perl-net-smtp-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    python2: various helper scripts
    subversion: git svn
    cvsps2: git cvsimport
    gnome-keyring: GNOME keyring credential helper
==> Retrieving sources...
  -> Found 99-amlogic.rules
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with md5sums...
    c2_aml_libs ... Skipped
    99-amlogic.rules ... Passed
==> Extracting sources...
  -> Creating working copy of c2_aml_libs git repo...
Cloning into 'c2_aml_libs'...
done.
==> Starting pkgver()...
==> Starting build()...
make: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amadec'
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec-external-ctrl.o adec-external-ctrl.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec-internal-mgt.o adec-internal-mgt.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec-ffmpeg-mgt.o adec-ffmpeg-mgt.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec-message.o adec-message.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec-pts-mgt.o adec-pts-mgt.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-internal-mgt.c:18:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-internal-mgt.c:18:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-external-ctrl.c:15:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-external-ctrl.c:15:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-ffmpeg-mgt.c:9:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-ffmpeg-mgt.c:9:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-message.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-message.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o feeder.o feeder.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/feeder.h:14,
                 from feeder.c:16:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/feeder.h:14,
                 from feeder.c:16:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-internal-mgt.c: In function 'audio_hardware_ctrl':
adec-internal-mgt.c:101:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
adec-internal-mgt.c: In function 'start_adec':
adec-internal-mgt.c:134:13: warning: 'return' with a value, in function returning void
adec-internal-mgt.c:111:13: note: declared here
adec-internal-mgt.c:146:13: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
adec-internal-mgt.c: In function 'adec_message_loop':
adec-internal-mgt.c:344:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
adec-internal-mgt.c: In function 'set_audio_decoder':
adec-internal-mgt.c:508:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
adec-internal-mgt.c: In function 'audiodec_init':
adec-internal-mgt.c:644:5: warning: implicit declaration of function 'get_output_func' [-Wimplicit-function-declaration]
adec-internal-mgt.c:662:13: warning: implicit declaration of function 'RegisterDecode' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec_write.o adec_write.c
adec-external-ctrl.c: In function 'dummy_decode_set_mute':
adec-external-ctrl.c:253:9: warning: implicit declaration of function 'dummy_alsa_control' [-Wimplicit-function-declaration]
adec-external-ctrl.c: In function 'audio_get_pcm_level':
adec-external-ctrl.c:650:10: warning: implicit declaration of function 'audiodsp_get_pcm_level' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o adec_read.o adec_read.c
feeder.c: In function 'get_audio_format':
feeder.c:30:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
feeder.c: In function 'feeder_init':
feeder.c:169:11: warning: implicit declaration of function 'audiodsp_init' [-Wimplicit-function-declaration]
feeder.c:175:11: warning: implicit declaration of function 'audiodsp_start' [-Wimplicit-function-declaration]
feeder.c:183:9: warning: implicit declaration of function 'audiodsp_release' [-Wimplicit-function-declaration]
feeder.c: In function 'feeder_release':
feeder.c:207:11: warning: implicit declaration of function 'audiodsp_stop' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o dsp/audiodsp-ctl.o dsp/audiodsp-ctl.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec_read.c:7:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec_read.c:7:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o audio_out/alsa-out.o audio_out/alsa-out.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from dsp/audiodsp-ctl.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from dsp/audiodsp-ctl.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec_read.c: In function 'get_num_infile':
adec_read.c:48:9: warning: implicit declaration of function 'amsysfs_get_sysfs_ulong' [-Wimplicit-function-declaration]
adec_read.c: In function 'uio_init':
adec_read.c:53:17: warning: implicit declaration of function 'getpagesize' [-Wimplicit-function-declaration]
adec_read.c:72:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
adec_read.c:75:12: warning: comparison between pointer and integer
adec_read.c:83:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
adec_read.c: In function 'waiting_bits':
adec_read.c:93:3: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o audio_out/aml_resample.o audio_out/aml_resample.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audio_out/alsa-out.c:28:0: warning: "adec_print" redefined
 #define adec_print
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:21:0,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/log-print.h:24:0: note: this is the location of the previous definition
 #define adec_print(f,s...) do{level=getenv("LOG_LEVEL"); \
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/aml_resample.h:5,
                 from audio_out/aml_resample.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/aml_resample.h:5,
                 from audio_out/aml_resample.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-ffmpeg-mgt.c: In function 'armdec_get_pts':
adec-ffmpeg-mgt.c:258:8: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
adec-ffmpeg-mgt.c: In function 'InBufferInit':
adec-ffmpeg-mgt.c:355:15: warning: implicit declaration of function 'uio_init' [-Wimplicit-function-declaration]
adec-ffmpeg-mgt.c: In function 'InBufferRelease':
adec-ffmpeg-mgt.c:364:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
adec-ffmpeg-mgt.c: In function 'audio_codec_init':
adec-ffmpeg-mgt.c:480:11: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
adec-ffmpeg-mgt.c:558:36: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
adec-ffmpeg-mgt.c: In function 'start_adec':
adec-ffmpeg-mgt.c:680:28: warning: 'return' with a value, in function returning void
adec-ffmpeg-mgt.c:657:13: note: declared here
adec-ffmpeg-mgt.c: In function 'start_decode_thread':
adec-ffmpeg-mgt.c:822:16: warning: 'return' with a value, in function returning void
adec-ffmpeg-mgt.c:818:13: note: declared here
adec-ffmpeg-mgt.c:833:16: warning: 'return' with a value, in function returning void
adec-ffmpeg-mgt.c:818:13: note: declared here
adec-ffmpeg-mgt.c: In function 'adec_armdec_loop':
adec-ffmpeg-mgt.c:1288:9: warning: implicit declaration of function 'adec_reset_track' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o audiodsp_update_format.o audiodsp_update_format.c
dsp/audiodsp-ctl.c:203:9: warning: type defaults to 'int' in declaration of 'err_count' [-Wimplicit-int]
dsp/audiodsp-ctl.c: In function 'audiodsp_start':
dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o spdif_api.o spdif_api.c
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audiodsp_update_format.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audiodsp_update_format.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audiodsp_update_format.c: In function 'get_sysfs_int':
audiodsp_update_format.c:35:12: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
audiodsp_update_format.c: In function 'set_sysfs_int':
audiodsp_update_format.c:40:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
audiodsp_update_format.c: In function 'audiodsp_format_update':
audiodsp_update_format.c:115:37: warning: implicit declaration of function 'get_audio_decoder' [-Wimplicit-function-declaration]
audiodsp_update_format.c:150:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o pcmenc_api.o pcmenc_api.c
spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
spdif_api.c: In function 'iec958_init':
spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c: In function 'iec958_packed_frame_write_958buf':
spdif_api.c:221:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c:232:59: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c:248:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c: In function 'iec958_deinit':
spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spdif_api.c: In function 'iec958_packed_frame_write_958buf':
spdif_api.c:224:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
spdif_api.c:235:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
spdif_api.c:251:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o dts_transenc_api.o dts_transenc_api.c
audio_out/alsa-out.c: In function 'alsa_init':
audio_out/alsa-out.c:538:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
audio_out/alsa-out.c:648:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o dts_enc.o dts_enc.c
audio_out/aml_resample.c: In function 'get_sysfs_str':
audio_out/aml_resample.c:48:12: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
audio_out/aml_resample.c: In function 'af_resample_set_SampsNumRatio':
audio_out/aml_resample.c:125:6: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
audio_out/aml_resample.c: In function 'af_resample_api':
audio_out/aml_resample.c:383:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-Wincompatible-pointer-types]
audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *'
audio_out/aml_resample.c:398:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-Wincompatible-pointer-types]
audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *'
audio_out/aml_resample.c:415:39: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-Wincompatible-pointer-types]
audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *'
audio_out/aml_resample.c:436:43: warning: passing argument 2 of 'dsp_pcm_read' from incompatible pointer type [-Wincompatible-pointer-types]
audio_out/aml_resample.c:320:12: note: expected 'char *' but argument is of type 'short int *'
audio_out/aml_resample.c: In function 'get_sysfs_int':
audio_out/aml_resample.c:26:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
In file included from /usr/include/unistd.h:1163:0,
                 from audio_out/aml_resample.c:4:
In function 'read',
    inlined from 'get_sysfs_int' at audio_out/aml_resample.c:26:9:
/usr/include/bits/unistd.h:42:9: warning: call to '__read_chk_warn' declared with attribute warning: read called with bigger length than size of the destination buffer
  return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o audio_out/alsactl_parser.o audio_out/alsactl_parser.c
dts_enc.c: In function 'get_dts_mode':
dts_enc.c:38:5: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
dts_enc.c: In function 'get_cpu_type':
dts_enc.c:65:15: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
dts_enc.c:67:18: warning: implicit declaration of function 'match_types' [-Wimplicit-function-declaration]
dts_enc.c: In function 'dtsenc_init':
dts_enc.c:102:2: warning: implicit declaration of function 'pthread_setname_np' [-Wimplicit-function-declaration]
dts_enc.c: In function 'dts_enc_loop':
dts_enc.c:166:16: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
dts_enc.c:171:5: warning: implicit declaration of function 'iec958buf_fill_zero' [-Wimplicit-function-declaration]
dts_enc.c:191:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -D_FORTIFY_SOURCE=2  -c -o audio_out/alsa-out-raw.o audio_out/alsa-out-raw.c
pcmenc_api.c: In function 'pcmenc_init':
pcmenc_api.c:43:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
pcmenc_api.c:54:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
pcmenc_api.c: In function 'pcmenc_deinit':
pcmenc_api.c:142:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dts_transenc_api.c: In function 'dts_transenc_init':
dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
dts_transenc_api.c:55:34: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint-conversion]
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int'
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:56:30: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint-conversion]
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int'
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:57:31: warning: passing argument 1 of 'dlsym' makes pointer from integer without a cast [-Wint-conversion]
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected 'void * restrict' but argument is of type 'int'
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:87:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
dts_transenc_api.c: In function 'dts_transenc_process_frame':
dts_transenc_api.c:106:22: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
dts_transenc_api.c:116:69: warning: passing argument 4 of 'enc_ops.enc_encode' makes integer from pointer without a cast [-Wint-conversion]
dts_transenc_api.c:116:69: note: expected 'unsigned int' but argument is of type 'unsigned int *'
audio_out/alsactl_parser.c: In function 'strtrimr':
audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audio_out/alsa-out-raw.c:28:0: warning: "adec_print" redefined
 #define adec_print
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:21:0,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/log-print.h:24:0: note: this is the location of the previous definition
 #define adec_print(f,s...) do{level=getenv("LOG_LEVEL"); \
 
audio_out/alsa-out-raw.c: In function 'alsa_init_raw':
audio_out/alsa-out-raw.c:426:17: warning: implicit declaration of function 'amsysfs_get_sysfs_int' [-Wimplicit-function-declaration]
audio_out/alsa-out-raw.c:430:9: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-pts-mgt.c:17:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-pts-mgt.c:17:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-pts-mgt.c: In function 'set_tsync_enable':
adec-pts-mgt.c:29:12: warning: implicit declaration of function 'amsysfs_set_sysfs_int' [-Wimplicit-function-declaration]
adec-pts-mgt.c: In function 'adec_pts_start':
adec-pts-mgt.c:85:13: warning: implicit declaration of function 'am_getconfig_bool' [-Wimplicit-function-declaration]
adec-pts-mgt.c:96:8: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
adec-pts-mgt.c:100:8: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
adec-pts-mgt.c:105:5: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
adec-pts-mgt.c:108:7: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amadec -I/build/aml-libs-c2/src/c2_aml_libs/amadec/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amadec/../amplayer/player/include -I/usr/include -L/usr/lib -DALSA_OUT -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -lpthread -lm -lasound -lrt adec-external-ctrl.c adec-internal-mgt.c adec-ffmpeg-mgt.c adec-message.c adec-pts-mgt.c feeder.c adec_write.c adec_read.c dsp/audiodsp-ctl.c audio_out/alsa-out.c audio_out/aml_resample.c audiodsp_update_format.c spdif_api.c pcmenc_api.c dts_transenc_api.c dts_enc.c audio_out/alsactl_parser.c audio_out/alsa-out-raw.c -o libamadec.so
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-external-ctrl.c:15:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-external-ctrl.c:15:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-external-ctrl.c: In function ‘dummy_decode_set_mute’:
adec-external-ctrl.c:253:9: warning: implicit declaration of function ‘dummy_alsa_control’ [-Wimplicit-function-declaration]
         dummy_alsa_control(mute_ctl.ctlname, 0, 1, NULL);//mute
         ^~~~~~~~~~~~~~~~~~
adec-external-ctrl.c: In function ‘audio_get_pcm_level’:
adec-external-ctrl.c:650:10: warning: implicit declaration of function ‘audiodsp_get_pcm_level’ [-Wimplicit-function-declaration]
   return audiodsp_get_pcm_level(&audec->adsp_ops);
          ^~~~~~~~~~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-internal-mgt.c:18:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-internal-mgt.c:18:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-internal-mgt.c: In function ‘audio_hardware_ctrl’:
adec-internal-mgt.c:101:5: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
     close(fd);
     ^~~~~
adec-internal-mgt.c: In function ‘start_adec’:
adec-internal-mgt.c:134:13: warning: ‘return’ with a value, in function returning void
      return -1;
             ^
adec-internal-mgt.c:111:13: note: declared here
 static void start_adec(aml_audio_dec_t *audec)
             ^~~~~~~~~~
adec-internal-mgt.c:146:13: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
             usleep(100000);
             ^~~~~~
adec-internal-mgt.c: In function ‘adec_message_loop’:
adec-internal-mgt.c:344:9: warning: implicit declaration of function ‘adec_reset_track’ [-Wimplicit-function-declaration]
         adec_reset_track(audec);
         ^~~~~~~~~~~~~~~~
adec-internal-mgt.c: In function ‘set_audio_decoder’:
adec-internal-mgt.c:508:8: warning: implicit declaration of function ‘property_get’ [-Wimplicit-function-declaration]
  ret = property_get("media.arm.audio.decoder",value,NULL);
        ^~~~~~~~~~~~
adec-internal-mgt.c: In function ‘audiodec_init’:
adec-internal-mgt.c:644:5: warning: implicit declaration of function ‘get_output_func’ [-Wimplicit-function-declaration]
     get_output_func(audec);
     ^~~~~~~~~~~~~~~
adec-internal-mgt.c:662:13: warning: implicit declaration of function ‘RegisterDecode’ [-Wimplicit-function-declaration]
         res=RegisterDecode(audec,codec_type);
             ^~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-ffmpeg-mgt.c:9:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-ffmpeg-mgt.c:9:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-ffmpeg-mgt.c:57:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
     NULL
     ^~~~
adec-ffmpeg-mgt.c:57:5: note: (near initialization for ‘audio_lib_list[18].codec_id’)
adec-ffmpeg-mgt.c: In function ‘armdec_get_pts’:
adec-ffmpeg-mgt.c:258:8: warning: implicit declaration of function ‘am_getconfig_bool’ [-Wimplicit-function-declaration]
     if(am_getconfig_bool("media.arm.audio.apts_add"))
        ^~~~~~~~~~~~~~~~~
adec-ffmpeg-mgt.c: In function ‘InBufferInit’:
adec-ffmpeg-mgt.c:355:15: warning: implicit declaration of function ‘uio_init’ [-Wimplicit-function-declaration]
     int ret = uio_init(audec);
               ^~~~~~~~
adec-ffmpeg-mgt.c: In function ‘InBufferRelease’:
adec-ffmpeg-mgt.c:364:5: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
     close(audec->fd_uio);
     ^~~~~
adec-ffmpeg-mgt.c: In function ‘audio_codec_init’:
adec-ffmpeg-mgt.c:480:11: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
           usleep(100000);
           ^~~~~~
adec-ffmpeg-mgt.c:558:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
       audec->adsp_ops.set_cur_apts    = armdec_set_pts;
                                       ^
adec-ffmpeg-mgt.c: In function ‘start_adec’:
adec-ffmpeg-mgt.c:680:28: warning: ‘return’ with a value, in function returning void
                     return -1;
                            ^
adec-ffmpeg-mgt.c:657:13: note: declared here
 static void start_adec(aml_audio_dec_t *audec)
             ^~~~~~~~~~
adec-ffmpeg-mgt.c: In function ‘start_decode_thread’:
adec-ffmpeg-mgt.c:822:16: warning: ‘return’ with a value, in function returning void
         return -1;
                ^
adec-ffmpeg-mgt.c:818:13: note: declared here
 static void start_decode_thread(aml_audio_dec_t *audec)
             ^~~~~~~~~~~~~~~~~~~
adec-ffmpeg-mgt.c:833:16: warning: ‘return’ with a value, in function returning void
         return ret;
                ^~~
adec-ffmpeg-mgt.c:818:13: note: declared here
 static void start_decode_thread(aml_audio_dec_t *audec)
             ^~~~~~~~~~~~~~~~~~~
adec-ffmpeg-mgt.c: In function ‘adec_armdec_loop’:
adec-ffmpeg-mgt.c:1288:9: warning: implicit declaration of function ‘adec_reset_track’ [-Wimplicit-function-declaration]
         adec_reset_track(audec);
         ^~~~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec-message.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec-message.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-pts-mgt.c:17:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/adec-pts-mgt.h:14,
                 from adec-pts-mgt.c:17:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec-pts-mgt.c: In function ‘set_tsync_enable’:
adec-pts-mgt.c:29:12: warning: implicit declaration of function ‘amsysfs_set_sysfs_int’ [-Wimplicit-function-declaration]
     return amsysfs_set_sysfs_int(path, enable);
            ^~~~~~~~~~~~~~~~~~~~~
adec-pts-mgt.c: In function ‘adec_pts_start’:
adec-pts-mgt.c:85:13: warning: implicit declaration of function ‘am_getconfig_bool’ [-Wimplicit-function-declaration]
         if (am_getconfig_bool("media.libplayer.wfd")) {
             ^~~~~~~~~~~~~~~~~
adec-pts-mgt.c:96:8: warning: implicit declaration of function ‘property_get’ [-Wimplicit-function-declaration]
     if(property_get("sys.amplayer.drop_pcm",value,NULL) > 0)
        ^~~~~~~~~~~~
adec-pts-mgt.c:100:8: warning: implicit declaration of function ‘amsysfs_set_sysfs_str’ [-Wimplicit-function-declaration]
     if(amsysfs_set_sysfs_str(TSYNC_EVENT, "AUDIO_PRE_START") == -1)
        ^~~~~~~~~~~~~~~~~~~~~
adec-pts-mgt.c:105:5: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
     usleep(1000);
     ^~~~~~
adec-pts-mgt.c:108:7: warning: implicit declaration of function ‘amsysfs_get_sysfs_str’ [-Wimplicit-function-declaration]
   if (amsysfs_get_sysfs_str(TSYNC_APTS, buf, sizeof(buf)) == -1) {
       ^~~~~~~~~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/feeder.h:14,
                 from feeder.c:16:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/feeder.h:14,
                 from feeder.c:16:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
feeder.c: In function ‘get_audio_format’:
feeder.c:30:5: warning: implicit declaration of function ‘amsysfs_get_sysfs_str’ [-Wimplicit-function-declaration]
     amsysfs_get_sysfs_str(FORMAT_PATH, format, 21);
     ^~~~~~~~~~~~~~~~~~~~~
feeder.c: In function ‘feeder_init’:
feeder.c:169:11: warning: implicit declaration of function ‘audiodsp_init’ [-Wimplicit-function-declaration]
     ret = audiodsp_init(dsp_ops);
           ^~~~~~~~~~~~~
feeder.c:175:11: warning: implicit declaration of function ‘audiodsp_start’ [-Wimplicit-function-declaration]
     ret = audiodsp_start(audec);
           ^~~~~~~~~~~~~~
feeder.c:183:9: warning: implicit declaration of function ‘audiodsp_release’ [-Wimplicit-function-declaration]
         audiodsp_release(dsp_ops);
         ^~~~~~~~~~~~~~~~
feeder.c: In function ‘feeder_release’:
feeder.c:207:11: warning: implicit declaration of function ‘audiodsp_stop’ [-Wimplicit-function-declaration]
     ret = audiodsp_stop(dsp_ops);
           ^~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from adec_read.c:7:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from adec_read.c:7:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
adec_read.c:43:31: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 static volatile long memmap = MAP_FAILED;
                               ^~~~~~~~~~
adec_read.c: In function ‘get_num_infile’:
adec_read.c:48:9: warning: implicit declaration of function ‘amsysfs_get_sysfs_ulong’ [-Wimplicit-function-declaration]
  return amsysfs_get_sysfs_ulong(file);
         ^~~~~~~~~~~~~~~~~~~~~~~
adec_read.c: In function ‘uio_init’:
adec_read.c:53:17: warning: implicit declaration of function ‘getpagesize’ [-Wimplicit-function-declaration]
  int pagesize = getpagesize();
                 ^~~~~~~~~~~
adec_read.c:72:9: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  memmap = mmap(NULL, phys_size, PROT_READ|PROT_WRITE, MAP_SHARED, audec->fd_uio, 0* pagesize);
         ^
adec_read.c:75:12: warning: comparison between pointer and integer
  if(memmap == MAP_FAILED){
            ^~
adec_read.c:83:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  reg_base = memmap + phys_offset;
           ^
adec_read.c: In function ‘waiting_bits’:
adec_read.c:93:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
   usleep(1000);
   ^~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from dsp/audiodsp-ctl.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from dsp/audiodsp-ctl.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
dsp/audiodsp-ctl.c:203:9: warning: type defaults to ‘int’ in declaration of ‘err_count’ [-Wimplicit-int]
  static err_count = 0;
         ^~~~~~~~~
dsp/audiodsp-ctl.c: In function ‘audiodsp_start’:
dsp/audiodsp-ctl.c:217:9: warning: implicit declaration of function ‘am_getconfig_bool’ [-Wimplicit-function-declaration]
     if (am_getconfig_bool("media.libplayer.wfd")) {
         ^~~~~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audio_out/alsa-out.c:28:0: warning: "adec_print" redefined
 #define adec_print
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:21:0,
                 from audio_out/alsa-out.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/log-print.h:24:0: note: this is the location of the previous definition
 #define adec_print(f,s...) do{level=getenv("LOG_LEVEL"); \
 
audio_out/alsa-out.c: In function ‘alsa_init’:
audio_out/alsa-out.c:538:17: warning: implicit declaration of function ‘amsysfs_get_sysfs_int’ [-Wimplicit-function-declaration]
     int dgraw = amsysfs_get_sysfs_int("/sys/class/audiodsp/digital_raw");
                 ^~~~~~~~~~~~~~~~~~~~~
audio_out/alsa-out.c:648:9: warning: implicit declaration of function ‘amsysfs_set_sysfs_int’ [-Wimplicit-function-declaration]
         amsysfs_set_sysfs_int("/sys/class/audiodsp/digital_codec",0);//set output codec type as pcm
         ^~~~~~~~~~~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/aml_resample.h:5,
                 from audio_out/aml_resample.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/aml_resample.h:5,
                 from audio_out/aml_resample.c:14:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audio_out/aml_resample.c: In function ‘get_sysfs_str’:
audio_out/aml_resample.c:48:12: warning: implicit declaration of function ‘amsysfs_get_sysfs_str’ [-Wimplicit-function-declaration]
     return amsysfs_get_sysfs_str(path, valstr, size);
            ^~~~~~~~~~~~~~~~~~~~~
audio_out/aml_resample.c: In function ‘af_resample_set_SampsNumRatio’:
audio_out/aml_resample.c:125:6: warning: implicit declaration of function ‘am_getconfig_bool’ [-Wimplicit-function-declaration]
  if (am_getconfig_bool("media.libplayer.wfd"))
      ^~~~~~~~~~~~~~~~~
audio_out/aml_resample.c: In function ‘af_resample_api’:
audio_out/aml_resample.c:383:39: warning: passing argument 2 of ‘dsp_pcm_read’ from incompatible pointer type [-Wincompatible-pointer-types]
     sample_read = dsp_pcm_read(audec, pbuf, *size); // return mono sample number
                                       ^~~~
audio_out/aml_resample.c:320:12: note: expected ‘char *’ but argument is of type ‘short int *’
 static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len)
            ^~~~~~~~~~~~
audio_out/aml_resample.c:398:43: warning: passing argument 2 of ‘dsp_pcm_read’ from incompatible pointer type [-Wincompatible-pointer-types]
         sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample);
                                           ^~~~
audio_out/aml_resample.c:320:12: note: expected ‘char *’ but argument is of type ‘short int *’
 static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len)
            ^~~~~~~~~~~~
audio_out/aml_resample.c:415:39: warning: passing argument 2 of ‘dsp_pcm_read’ from incompatible pointer type [-Wincompatible-pointer-types]
     sample_read = dsp_pcm_read(audec, pbuf, *size*(128+resample_delta)/128 );
                                       ^~~~
audio_out/aml_resample.c:320:12: note: expected ‘char *’ but argument is of type ‘short int *’
 static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len)
            ^~~~~~~~~~~~
audio_out/aml_resample.c:436:43: warning: passing argument 2 of ‘dsp_pcm_read’ from incompatible pointer type [-Wincompatible-pointer-types]
         sample_read = dsp_pcm_read(audec, pbuf, *size-num_sample);
                                           ^~~~
audio_out/aml_resample.c:320:12: note: expected ‘char *’ but argument is of type ‘short int *’
 static int dsp_pcm_read(aml_audio_dec_t*audec,char *data_in,int len)
            ^~~~~~~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audiodsp_update_format.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audiodsp_update_format.c:21:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audiodsp_update_format.c: In function ‘get_sysfs_int’:
audiodsp_update_format.c:35:12: warning: implicit declaration of function ‘amsysfs_get_sysfs_int’ [-Wimplicit-function-declaration]
     return amsysfs_get_sysfs_int(path);
            ^~~~~~~~~~~~~~~~~~~~~
audiodsp_update_format.c: In function ‘set_sysfs_int’:
audiodsp_update_format.c:40:12: warning: implicit declaration of function ‘amsysfs_set_sysfs_int’ [-Wimplicit-function-declaration]
     return amsysfs_set_sysfs_int(path, val);
            ^~~~~~~~~~~~~~~~~~~~~
audiodsp_update_format.c: In function ‘audiodsp_format_update’:
audiodsp_update_format.c:115:37: warning: implicit declaration of function ‘get_audio_decoder’ [-Wimplicit-function-declaration]
     if (dsp_ops->dsp_file_fd < 0 || get_audio_decoder()!=AUDIO_ARC_DECODER) {
                                     ^~~~~~~~~~~~~~~~~
audiodsp_update_format.c:150:13: warning: implicit declaration of function ‘am_getconfig_bool’ [-Wimplicit-function-declaration]
         if (am_getconfig_bool("media.libplayer.wfd")) {
             ^~~~~~~~~~~~~~~~~
spdif_api.c:42:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
 static char *map_buf = 0xffffffff;
                        ^~~~~~~~~~
spdif_api.c: In function ‘iec958_init’:
spdif_api.c:69:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if((unsigned)map_buf == 0xffffffff){
     ^
spdif_api.c:78:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      if((unsigned)map_buf != 0xffffffff)
         ^
spdif_api.c: In function ‘iec958_packed_frame_write_958buf’:
spdif_api.c:221:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         printf("msync0 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf+wr_offset));
                                                                ^
spdif_api.c:232:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     printf("msync1 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf));
                                                            ^
spdif_api.c:248:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
        printf("msync2 err %d,error id %d addr %x\n",ret,errno,(unsigned)(map_buf+wr_offset));
                                                               ^
spdif_api.c: In function ‘iec958_deinit’:
spdif_api.c:295:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if((unsigned)map_buf != 0xffffffff)
        ^
pcmenc_api.c: In function ‘pcmenc_init’:
pcmenc_api.c:43:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  map_buf = 0xffffffff;
          ^
pcmenc_api.c:54:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if((unsigned)map_buf == -1){
        ^
pcmenc_api.c: In function ‘pcmenc_deinit’:
pcmenc_api.c:142:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  if((unsigned)map_buf != 0xffffffff)
     ^
dts_transenc_api.c: In function ‘dts_transenc_init’:
dts_transenc_api.c:52:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  int fd_dtsenc = dlopen("libdtsenc.so",RTLD_NOW);
                  ^~~~~~
dts_transenc_api.c:55:34: warning: passing argument 1 of ‘dlsym’ makes pointer from integer without a cast [-Wint-conversion]
         enc_ops.enc_init = dlsym(fd_dtsenc, "init");
                                  ^~~~~~~~~
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected ‘void * restrict’ but argument is of type ‘int’
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:56:30: warning: passing argument 1 of ‘dlsym’ makes pointer from integer without a cast [-Wint-conversion]
   enc_ops.enc_encode = dlsym(fd_dtsenc, "encode_frame");
                              ^~~~~~~~~
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected ‘void * restrict’ but argument is of type ‘int’
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:57:31: warning: passing argument 1 of ‘dlsym’ makes pointer from integer without a cast [-Wint-conversion]
   enc_ops.enc_release = dlsym(fd_dtsenc, "release");
                               ^~~~~~~~~
In file included from dts_transenc_api.c:7:0:
/usr/include/dlfcn.h:64:14: note: expected ‘void * restrict’ but argument is of type ‘int’
 extern void *dlsym (void *__restrict __handle,
              ^~~~~
dts_transenc_api.c:87:5: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
     close(fd_dtsenc);
     ^~~~~
dts_transenc_api.c: In function ‘dts_transenc_process_frame’:
dts_transenc_api.c:106:22: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
                      usleep(1000);
                      ^~~~~~
dts_transenc_api.c:116:69: warning: passing argument 4 of ‘enc_ops.enc_encode’ makes integer from pointer without a cast [-Wint-conversion]
          rv = enc_ops.enc_encode(dts_transenc_info, stream, output, &output_size);//encode frame
                                                                     ^
dts_transenc_api.c:116:69: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’
dts_enc.c: In function ‘get_dts_mode’:
dts_enc.c:38:5: warning: implicit declaration of function ‘amsysfs_get_sysfs_str’ [-Wimplicit-function-declaration]
     amsysfs_get_sysfs_str(DIGITAL_RAW_PATH, bcmd, 28);
     ^~~~~~~~~~~~~~~~~~~~~
dts_enc.c: In function ‘get_cpu_type’:
dts_enc.c:65:15: warning: implicit declaration of function ‘property_get’ [-Wimplicit-function-declaration]
     int ret = property_get("ro.board.platform",value,NULL);
               ^~~~~~~~~~~~
dts_enc.c:67:18: warning: implicit declaration of function ‘match_types’ [-Wimplicit-function-declaration]
     if (ret>0 && match_types("meson6",value))
                  ^~~~~~~~~~~
dts_enc.c: In function ‘dtsenc_init’:
dts_enc.c:102:2: warning: implicit declaration of function ‘pthread_setname_np’ [-Wimplicit-function-declaration]
  pthread_setname_np(tid,"AmadecDtsEncLP");
  ^~~~~~~~~~~~~~~~~~
dts_enc.c: In function ‘dts_enc_loop’:
dts_enc.c:166:16: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
                usleep(10000);
                ^~~~~~
dts_enc.c:171:5: warning: implicit declaration of function ‘iec958buf_fill_zero’ [-Wimplicit-function-declaration]
     iec958buf_fill_zero();
     ^~~~~~~~~~~~~~~~~~~
dts_enc.c:191:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return -1;
            ^
audio_out/alsactl_parser.c: In function ‘strtrimr’:
audio_out/alsactl_parser.c:14:12: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration]
     while (isspace(pstr[i]) && (i >= 0))
            ^~~~~~~
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:23:0,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/adec_write.h:9:0: warning: "MIN" redefined
 #define MIN(a,b) (a>b)?b:a
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/include/audio-out.h:14:0,
                 from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:17,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/adec-macros.h:39:0: note: this is the location of the previous definition
 #define MIN(X, Y)    ((X) < (Y)) ? (X) : (Y)
 
audio_out/alsa-out-raw.c:28:0: warning: "adec_print" redefined
 #define adec_print
 
In file included from /build/aml-libs-c2/src/c2_aml_libs/amadec/audio-dec.h:21:0,
                 from audio_out/alsa-out-raw.c:20:
/build/aml-libs-c2/src/c2_aml_libs/amadec/include/log-print.h:24:0: note: this is the location of the previous definition
 #define adec_print(f,s...) do{level=getenv("LOG_LEVEL"); \
 
audio_out/alsa-out-raw.c: In function ‘alsa_init_raw’:
audio_out/alsa-out-raw.c:426:17: warning: implicit declaration of function ‘amsysfs_get_sysfs_int’ [-Wimplicit-function-declaration]
     int dgraw = amsysfs_get_sysfs_int("/sys/class/audiodsp/digital_raw");
                 ^~~~~~~~~~~~~~~~~~~~~
audio_out/alsa-out-raw.c:430:9: warning: implicit declaration of function ‘amsysfs_set_sysfs_int’ [-Wimplicit-function-declaration]
         amsysfs_set_sysfs_int("/sys/class/audiodsp/digital_codec",2);
         ^~~~~~~~~~~~~~~~~~~~~
make: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amadec'
make: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amavutils'
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o amaudioutils.o amaudioutils.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o amconfigutils.o amconfigutils.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o amdisplayutils.o amdisplayutils.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o ammodule.o ammodule.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o amsysfsutils.o amsysfsutils.c
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o Amvideoutils.o Amvideoutils.c
amdisplayutils.c: In function 'get_display_mode':
amdisplayutils.c:41:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
amdisplayutils.c:41:9: warning: incompatible implicit declaration of built-in function 'memset'
amdisplayutils.c:41:9: note: include '<string.h>' or provide a declaration of 'memset'
amdisplayutils.c:42:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
amdisplayutils.c:43:63: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
amdisplayutils.c:43:63: warning: incompatible implicit declaration of built-in function 'strlen'
amdisplayutils.c:43:63: note: include '<string.h>' or provide a declaration of 'strlen'
amdisplayutils.c:45:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
amdisplayutils.c: In function 'amdisplay_utils_get_size':
amdisplayutils.c:59:11: warning: implicit declaration of function 'amsysfs_get_sysfs_str' [-Wimplicit-function-declaration]
amdisplayutils.c: In function 'amdisplay_utils_set_scale_mode':
amdisplayutils.c:111:15: warning: implicit declaration of function 'amsysfs_set_sysfs_str' [-Wimplicit-function-declaration]
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -D_FORTIFY_SOURCE=2  -c -o itemlist.o itemlist.c
amconfigutils.c: In function 'malloc_config_item':
amconfigutils.c:30:12: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
amconfigutils.c:30:12: warning: incompatible implicit declaration of built-in function 'malloc'
amconfigutils.c:30:12: note: include '<stdlib.h>' or provide a declaration of 'malloc'
amconfigutils.c: In function 'free_config_item':
amconfigutils.c:34:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
amconfigutils.c:34:5: warning: incompatible implicit declaration of built-in function 'free'
amconfigutils.c:34:5: note: include '<stdlib.h>' or provide a declaration of 'free'
amconfigutils.c: In function 'get_matched_index':
amconfigutils.c:39:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
amconfigutils.c:39:15: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:39:15: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c:50:29: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
amconfigutils.c: In function 'am_config_init':
amconfigutils.c:71:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
amconfigutils.c:71:5: warning: incompatible implicit declaration of built-in function 'memset'
amconfigutils.c:71:5: note: include '<string.h>' or provide a declaration of 'memset'
amconfigutils.c: In function 'am_getconfig':
amconfigutils.c:86:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
amconfigutils.c:86:9: warning: incompatible implicit declaration of built-in function 'strcpy'
amconfigutils.c:86:9: note: include '<string.h>' or provide a declaration of 'strcpy'
amconfigutils.c:88:9: warning: incompatible implicit declaration of built-in function 'strcpy'
amconfigutils.c:88:9: note: include '<string.h>' or provide a declaration of 'strcpy'
amconfigutils.c:106:12: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:106:12: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c: In function 'am_setconfig':
amconfigutils.c:120:9: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:120:9: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c:124:18: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
amconfigutils.c:124:18: warning: incompatible implicit declaration of built-in function 'strdup'
amconfigutils.c:125:12: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:125:12: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c:132:24: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:132:24: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c:144:24: warning: incompatible implicit declaration of built-in function 'strlen'
amconfigutils.c:144:24: note: include '<string.h>' or provide a declaration of 'strlen'
amconfigutils.c:157:5: warning: incompatible implicit declaration of built-in function 'strcpy'
amconfigutils.c:157:5: note: include '<string.h>' or provide a declaration of 'strcpy'
amconfigutils.c:162:6: warning: incompatible implicit declaration of built-in function 'free'
amconfigutils.c:162:6: note: include '<stdlib.h>' or provide a declaration of 'free'
amconfigutils.c: In function 'am_getconfig_bool':
amconfigutils.c:223:12: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
amconfigutils.c:223:41: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
ammodule.c: In function 'amload':
ammodule.c:71:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
ammodule.c:71:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:71:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c:80:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:80:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c:92:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:92:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c:105:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:105:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c: In function 'ammodule_load_module':
ammodule.c:124:5: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
ammodule.c:124:5: warning: incompatible implicit declaration of built-in function 'snprintf'
ammodule.c:124:5: note: include '<stdio.h>' or provide a declaration of 'snprintf'
ammodule.c:164:5: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:164:5: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c: In function 'ammodule_open_module':
ammodule.c:176:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:176:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c:178:9: warning: incompatible implicit declaration of built-in function 'printf'
ammodule.c:178:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ammodule.c: In function 'ammodule_simple_load_module':
ammodule.c:214:35: warning: passing argument 2 of 'ammodule_load_module' from incompatible pointer type [-Wincompatible-pointer-types]
ammodule.c:114:5: note: expected 'const struct ammodule_t **' but argument is of type 'struct ammodule_t **'
Amvideoutils.c: In function 'amvideo_utils_get_freescale_enable':
Amvideoutils.c:56:21: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
Amvideoutils.c:57:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
Amvideoutils.c:57:9: warning: incompatible implicit declaration of built-in function 'strlen'
Amvideoutils.c:57:9: note: include '<string.h>' or provide a declaration of 'strlen'
Amvideoutils.c: In function 'is_video_on_vpp2':
Amvideoutils.c:86:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
Amvideoutils.c:86:5: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:86:5: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c:87:9: warning: implicit declaration of function 'property_get' [-Wimplicit-function-declaration]
Amvideoutils.c:88:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
Amvideoutils.c: In function 'is_vertical_panel':
Amvideoutils.c:106:5: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:106:5: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c: In function 'is_vertical_panel_reverse':
Amvideoutils.c:121:5: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:121:5: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c: In function 'get_osd_display_mode':
Amvideoutils.c:145:5: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:145:5: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c: In function 'get_device_win':
Amvideoutils.c:212:5: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:212:5: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c: In function 'get_axis':
Amvideoutils.c:329:5: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
Amvideoutils.c:335:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
Amvideoutils.c: In function 'amvideo_utils_set_virtual_position':
Amvideoutils.c:358:21: warning: implicit declaration of function 'amdisplay_utils_get_osd_rotation' [-Wimplicit-function-declaration]
Amvideoutils.c:456:9: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:456:9: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c:592:13: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:592:13: note: include '<string.h>' or provide a declaration of 'memset'
Amvideoutils.c:619:13: warning: incompatible implicit declaration of built-in function 'memset'
Amvideoutils.c:619:13: note: include '<string.h>' or provide a declaration of 'memset'
amsysfsutils.c: In function 'amsysfs_set_sysfs_str':
amsysfsutils.c:30:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
amsysfsutils.c:30:32: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
amsysfsutils.c:30:32: warning: incompatible implicit declaration of built-in function 'strlen'
amsysfsutils.c:30:32: note: include '<string.h>' or provide a declaration of 'strlen'
amsysfsutils.c:31:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
amsysfsutils.c: In function 'amsysfs_get_sysfs_str':
amsysfsutils.c:43:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
amsysfsutils.c:43:3: warning: incompatible implicit declaration of built-in function 'memset'
amsysfsutils.c:43:3: note: include '<string.h>' or provide a declaration of 'memset'
amsysfsutils.c:44:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
amsysfsutils.c:45:16: warning: incompatible implicit declaration of built-in function 'strlen'
amsysfsutils.c:45:16: note: include '<string.h>' or provide a declaration of 'strlen'
amsysfsutils.c: In function 'amsysfs_set_sysfs_int':
amsysfsutils.c:64:33: warning: incompatible implicit declaration of built-in function 'strlen'
amsysfsutils.c:64:33: note: include '<string.h>' or provide a declaration of 'strlen'
amsysfsutils.c: In function 'amsysfs_set_sysfs_int16':
amsysfsutils.c:97:33: warning: incompatible implicit declaration of built-in function 'strlen'
amsysfsutils.c:97:33: note: include '<string.h>' or provide a declaration of 'strlen'
cc -march=armv8-a -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -O2 -fPIC -g -I/build/aml-libs-c2/src/c2_aml_libs/amavutils -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/include -I/build/aml-libs-c2/src/c2_aml_libs/amavutils/../amcodec/include -L/usr/lib -I/usr/include -Wl,-O1,--sort-common,--as-needed,-z,relro -shared -lpthread -lm -lrt amaudioutils.c amconfigutils.c amdisplayutils.c ammodule.c amsysfsutils.c Amvideoutils.c itemlist.c -o libamavutils.so
amconfigutils.c: In function ‘malloc_config_item’:
amconfigutils.c:30:12: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
     return malloc(CONFIG_PATH_MAX + CONFIG_VALUE_MAX + 8);
            ^~~~~~
amconfigutils.c:30:12: warning: incompatible implicit declaration of built-in function ‘malloc’
amconfigutils.c:30:12: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
amconfigutils.c: In function ‘free_config_item’:
amconfigutils.c:34:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
     free(item);
     ^~~~
amconfigutils.c:34:5: warning: incompatible implicit declaration of built-in function ‘free’
amconfigutils.c:34:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
amconfigutils.c: In function ‘get_matched_index’:
amconfigutils.c:39:15: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
     int len = strlen(path);
               ^~~~~~
amconfigutils.c:39:15: warning: incompatible implicit declaration of built-in function ‘strlen’
amconfigutils.c:39:15: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c:50:30: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
         if (ppath != NULL && strncmp(path, ppath, len) == 0) {
                              ^~~~~~~
amconfigutils.c: In function ‘am_config_init’:
amconfigutils.c:71:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
     memset(amconfigs, 0, sizeof(amconfigs));
     ^~~~~~
amconfigutils.c:71:5: warning: incompatible implicit declaration of built-in function ‘memset’
amconfigutils.c:71:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
amconfigutils.c: In function ‘am_getconfig’:
amconfigutils.c:86:9: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
         strcpy(val, amconfigs[i] + CONFIG_VALUE_OFF);
         ^~~~~~
amconfigutils.c:86:9: warning: incompatible implicit declaration of built-in function ‘strcpy’
amconfigutils.c:86:9: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
amconfigutils.c:88:9: warning: incompatible implicit declaration of built-in function ‘strcpy’
         strcpy(val, def);
         ^~~~~~
amconfigutils.c:88:9: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
amconfigutils.c:106:12: warning: incompatible implicit declaration of built-in function ‘strlen’
     return strlen(val) ;
            ^~~~~~
amconfigutils.c:106:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c: In function ‘am_setconfig’:
amconfigutils.c:120:9: warning: incompatible implicit declaration of built-in function ‘strlen’
     if (strlen(path) > CONFIG_PATH_MAX) {
         ^~~~~~
amconfigutils.c:120:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c:124:18: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
         setval = strdup(val);
                  ^~~~~~
amconfigutils.c:124:18: warning: incompatible implicit declaration of built-in function ‘strdup’
amconfigutils.c:125:12: warning: incompatible implicit declaration of built-in function ‘strlen’
         if(strlen(setval) >= CONFIG_VALUE_MAX)
            ^~~~~~
amconfigutils.c:125:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c:132:24: warning: incompatible implicit declaration of built-in function ‘strlen’
         if (!setval || strlen(setval) == 0) { //del value
                        ^~~~~~
amconfigutils.c:132:24: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c:144:24: warning: incompatible implicit declaration of built-in function ‘strlen’
         if (!setval || strlen(setval) == 0) { //value is nothing.exit now;
                        ^~~~~~
amconfigutils.c:144:24: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amconfigutils.c:157:5: warning: incompatible implicit declaration of built-in function ‘strcpy’
     strcpy(pconfig, path);
     ^~~~~~
amconfigutils.c:157:5: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
amconfigutils.c:162:6: warning: incompatible implicit declaration of built-in function ‘free’
      free(setval);
      ^~~~
amconfigutils.c:162:6: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
amconfigutils.c: In function ‘am_getconfig_bool’:
amconfigutils.c:223:12: warning: implicit declaration of function ‘strcasecmp’ [-Wimplicit-function-declaration]
         if(strcasecmp(buf,"true")==0 || strcmp(buf,"1")==0)
            ^~~~~~~~~~
amconfigutils.c:223:41: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
         if(strcasecmp(buf,"true")==0 || strcmp(buf,"1")==0)
                                         ^~~~~~
amdisplayutils.c: In function ‘get_display_mode’:
amdisplayutils.c:41:9: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
         memset(mode, 0, 16); // clean buffer and read 15 byte to avoid strlen > 15
         ^~~~~~
amdisplayutils.c:41:9: warning: incompatible implicit declaration of built-in function ‘memset’
amdisplayutils.c:41:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’
amdisplayutils.c:42:9: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
         read(fd, mode, 15);
         ^~~~
amdisplayutils.c:43:61: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
         LOGI("[get_display_mode]mode=%s strlen=%d\n", mode, strlen(mode));
                                                             ^~~~~~
amdisplayutils.c:43:61: warning: incompatible implicit declaration of built-in function ‘strlen’
amdisplayutils.c:43:61: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amdisplayutils.c:45:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
         close(fd);
         ^~~~~
amdisplayutils.c: In function ‘amdisplay_utils_get_size’:
amdisplayutils.c:59:11: warning: implicit declaration of function ‘amsysfs_get_sysfs_str’ [-Wimplicit-function-declaration]
     ret = amsysfs_get_sysfs_str(FB_DEVICE_PATH, buf, SYSCMD_BUFSIZE);
           ^~~~~~~~~~~~~~~~~~~~~
amdisplayutils.c: In function ‘amdisplay_utils_set_scale_mode’:
amdisplayutils.c:111:15: warning: implicit declaration of function ‘amsysfs_set_sysfs_str’ [-Wimplicit-function-declaration]
         ret = amsysfs_set_sysfs_str(SCALE_REQUEST, "1");
               ^~~~~~~~~~~~~~~~~~~~~
ammodule.c: In function ‘amload’:
ammodule.c:32:14: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 #define LOGE printf
              ^
ammodule.c:71:9: note: in expansion of macro ‘LOGE’
         LOGE("amload: module=%s\n%s", path, err_str ? err_str : "unknown");
         ^~~~
ammodule.c:32:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGE printf
              ^
ammodule.c:71:9: note: in expansion of macro ‘LOGE’
         LOGE("amload: module=%s\n%s", path, err_str ? err_str : "unknown");
         ^~~~
ammodule.c:32:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGE printf
              ^
ammodule.c:71:9: note: in expansion of macro ‘LOGE’
         LOGE("amload: module=%s\n%s", path, err_str ? err_str : "unknown");
         ^~~~
ammodule.c:32:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGE printf
              ^
ammodule.c:80:9: note: in expansion of macro ‘LOGE’
         LOGE("amload: couldn't find symbol %s", sym);
         ^~~~
ammodule.c:32:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGE printf
              ^
ammodule.c:80:9: note: in expansion of macro ‘LOGE’
         LOGE("amload: couldn't find symbol %s", sym);
         ^~~~
ammodule.c:32:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGE printf
              ^
ammodule.c:92:9: note: in expansion of macro ‘LOGE’
         LOGE("module tag,api unsupport tag=%d,expect=%d api=%d.%d,expect=%d.%d\n",
         ^~~~
ammodule.c:32:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGE printf
              ^
ammodule.c:92:9: note: in expansion of macro ‘LOGE’
         LOGE("module tag,api unsupport tag=%d,expect=%d api=%d.%d,expect=%d.%d\n",
         ^~~~
ammodule.c:33:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGV printf
              ^
ammodule.c:105:9: note: in expansion of macro ‘LOGV’
         LOGV("loaded module path=%s hmi=%p handle=%p",
         ^~~~
ammodule.c:33:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGV printf
              ^
ammodule.c:105:9: note: in expansion of macro ‘LOGV’
         LOGV("loaded module path=%s hmi=%p handle=%p",
         ^~~~
ammodule.c: In function ‘ammodule_load_module’:
ammodule.c:124:5: warning: implicit declaration of function ‘snprintf’ [-Wimplicit-function-declaration]
     snprintf(name, PATH_MAX, "%s",  modulename);
     ^~~~~~~~
ammodule.c:124:5: warning: incompatible implicit declaration of built-in function ‘snprintf’
ammodule.c:124:5: note: include ‘<stdio.h>’ or provide a declaration of ‘snprintf’
ammodule.c:31:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGI printf
              ^
ammodule.c:164:5: note: in expansion of macro ‘LOGI’
     LOGI("load mode %s,on %s %d\n", modulename, path, status);
     ^~~~
ammodule.c:31:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGI printf
              ^
ammodule.c:164:5: note: in expansion of macro ‘LOGI’
     LOGI("load mode %s,on %s %d\n", modulename, path, status);
     ^~~~
ammodule.c: In function ‘ammodule_open_module’:
ammodule.c:32:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGE printf
              ^
ammodule.c:176:9: note: in expansion of macro ‘LOGE’
         LOGE("open module (%s)  failed ret(%d)\n", module->name, ret);
         ^~~~
ammodule.c:32:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGE printf
              ^
ammodule.c:176:9: note: in expansion of macro ‘LOGE’
         LOGE("open module (%s)  failed ret(%d)\n", module->name, ret);
         ^~~~
ammodule.c:31:14: warning: incompatible implicit declaration of built-in function ‘printf’
 #define LOGI printf
              ^
ammodule.c:178:9: note: in expansion of macro ‘LOGI’
         LOGI("open module success,\n\tname:%s\n\t%s\n", module->name, module->descript);
         ^~~~
ammodule.c:31:14: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
 #define LOGI printf
              ^
ammodule.c:178:9: note: in expansion of macro ‘LOGI’
         LOGI("open module success,\n\tname:%s\n\t%s\n", module->name, module->descript);
         ^~~~
ammodule.c: In function ‘ammodule_simple_load_module’:
ammodule.c:214:35: warning: passing argument 2 of ‘ammodule_load_module’ from incompatible pointer type [-Wincompatible-pointer-types]
     ret=ammodule_load_module(name,&module);
                                   ^
ammodule.c:114:5: note: expected ‘const struct ammodule_t **’ but argument is of type ‘struct ammodule_t **’
 int ammodule_load_module(const char *modulename, const struct ammodule_t **module)
     ^~~~~~~~~~~~~~~~~~~~
amsysfsutils.c: In function ‘amsysfs_set_sysfs_str’:
amsysfsutils.c:30:17: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
         bytes = write(fd, val, strlen(val));
                 ^~~~~
amsysfsutils.c:30:32: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
         bytes = write(fd, val, strlen(val));
                                ^~~~~~
amsysfsutils.c:30:32: warning: incompatible implicit declaration of built-in function ‘strlen’
amsysfsutils.c:30:32: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amsysfsutils.c:31:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
         close(fd);
         ^~~~~
amsysfsutils.c: In function ‘amsysfs_get_sysfs_str’:
amsysfsutils.c:43:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
   memset(valstr,0,size);
   ^~~~~~
amsysfsutils.c:43:3: warning: incompatible implicit declaration of built-in function ‘memset’
amsysfsutils.c:43:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
amsysfsutils.c:44:9: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
         read(fd, valstr, size - 1);
         ^~~~
amsysfsutils.c:45:16: warning: incompatible implicit declaration of built-in function ‘strlen’
         valstr[strlen(valstr)] = '\0';
                ^~~~~~
amsysfsutils.c:45:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amsysfsutils.c: In function ‘amsysfs_set_sysfs_int’:
amsysfsutils.c:64:33: warning: incompatible implicit declaration of built-in function ‘strlen’
         bytes = write(fd, bcmd, strlen(bcmd));
                                 ^~~~~~
amsysfsutils.c:64:33: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
amsysfsutils.c: In function ‘amsysfs_set_sysfs_int16’:
amsysfsutils.c:97:33: warning: incompatible implicit declaration of built-in function ‘strlen’
         bytes = write(fd, bcmd, strlen(bcmd));
                                 ^~~~~~
amsysfsutils.c:97:33: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
Amvideoutils.c: In function ‘amvideo_utils_get_freescale_enable’:
Amvideoutils.c:56:21: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
     if((ret >=0) && strncmp(buf, "free_scale_enalbe:[0x1]",
                     ^~~~~~~
Amvideoutils.c:57:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
         strlen("free_scale_enalbe:[0x1]"))==0){
         ^~~~~~
Amvideoutils.c:57:9: warning: incompatible implicit declaration of built-in function ‘strlen’
Amvideoutils.c:57:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
Amvideoutils.c: In function ‘is_video_on_vpp2’:
Amvideoutils.c:86:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
     memset(val, 0, sizeof(val));
     ^~~~~~
Amvideoutils.c:86:5: warning: incompatible implicit declaration of built-in function ‘memset’
Amvideoutils.c:86:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c:87:9: warning: implicit declaration of function ‘property_get’ [-Wimplicit-function-declaration]
     if (property_get("ro.vout.dualdisplay4", val, "false")
         ^~~~~~~~~~~~
Amvideoutils.c:88:12: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
         && strcmp(val, "true") == 0) {
            ^~~~~~
Amvideoutils.c: In function ‘is_vertical_panel’:
Amvideoutils.c:106:5: warning: incompatible implicit declaration of built-in function ‘memset’
     memset(val, 0, sizeof(val));
     ^~~~~~
Amvideoutils.c:106:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c: In function ‘is_vertical_panel_reverse’:
Amvideoutils.c:121:5: warning: incompatible implicit declaration of built-in function ‘memset’
     memset(val, 0, sizeof(val));
     ^~~~~~
Amvideoutils.c:121:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c: In function ‘get_osd_display_mode’:
Amvideoutils.c:145:5: warning: incompatible implicit declaration of built-in function ‘memset’
     memset(buf,0,sizeof(buf));
     ^~~~~~
Amvideoutils.c:145:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c: In function ‘get_device_win’:
Amvideoutils.c:212:5: warning: incompatible implicit declaration of built-in function ‘memset’
     memset(prop_value_h,0,32);
     ^~~~~~
Amvideoutils.c:212:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c: In function ‘get_axis’:
Amvideoutils.c:329:5: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
     read(fd, buf, SYSCMD_BUFSIZE);
     ^~~~
Amvideoutils.c:335:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
         close(fd);
         ^~~~~
Amvideoutils.c: In function ‘amvideo_utils_set_virtual_position’:
Amvideoutils.c:358:21: warning: implicit declaration of function ‘amdisplay_utils_get_osd_rotation’ [-Wimplicit-function-declaration]
  int osd_rotation = amdisplay_utils_get_osd_rotation();
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Amvideoutils.c:456:9: warning: incompatible implicit declaration of built-in function ‘memset’
         memset(val, 0, sizeof(val));
         ^~~~~~
Amvideoutils.c:456:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c:592:13: warning: incompatible implicit declaration of built-in function ‘memset’
             memset(val, 0, sizeof(val));
             ^~~~~~
Amvideoutils.c:592:13: note: include ‘<string.h>’ or provide a declaration of ‘memset’
Amvideoutils.c:619:13: warning: incompatible implicit declaration of built-in function ‘memset’
             memset(val, 0, sizeof(val));
             ^~~~~~
Amvideoutils.c:619:13: note: include ‘<string.h>’ or provide a declaration of ‘memset’
make: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amavutils'
make: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
MAKE audio_ctl
make[1]: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
MAKE codec
make[1]: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec/audio_ctl'
make[1]: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
CC  audio_ctrl.c
audio_ctrl.c: In function 'audio_basic_init':
audio_ctrl.c:26:5: warning: implicit declaration of function 'audio_decode_basic_init' [-Wimplicit-function-declaration]
LD build-in.o
make[1]: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec/audio_ctl'
make[1]: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec/codec'
make[1]: Entering directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
CC  codec_ctrl.c
codec_ctrl.c: In function 'codec_set_demux_source':
codec_ctrl.c:52:11: warning: implicit declaration of function 'codec_h_ioctl' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_change_buf_size':
codec_ctrl.c:74:20: warning: implicit declaration of function 'system_error_to_codec_error' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'set_audio_format':
codec_ctrl.c:158:9: warning: implicit declaration of function 'print_error_msg' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_check_new_cmd':
codec_ctrl.c:284:62: warning: passing argument 3 of 'codec_h_control' makes integer from pointer without a cast [-Wint-conversion]
In file included from codec_ctrl.c:24:0:
codec_h_ctrl.h:50:5: note: expected 'long unsigned int' but argument is of type 'int *'
codec_ctrl.c: In function 'codec_init':
codec_ctrl.c:817:41: warning: passing argument 2 of 'audio_start' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from codec_ctrl.c:23:0:
/build/aml-libs-c2/src/c2_aml_libs/amcodec/include/audio_priv.h:14:6: note: expected 'codec_para_t * {aka struct <anonymous> *}' but argument is of type 'arm_audio_info * {aka struct <anonymous> *}'
codec_ctrl.c:819:13: warning: implicit declaration of function 'audio_set_avsync_threshold' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_audio_basic_init':
codec_ctrl.c:826:5: warning: implicit declaration of function 'audio_basic_init' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_resume_audio':
codec_ctrl.c:983:41: warning: passing argument 2 of 'audio_start' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from codec_ctrl.c:23:0:
/build/aml-libs-c2/src/c2_aml_libs/amcodec/include/audio_priv.h:14:6: note: expected 'codec_para_t * {aka struct <anonymous> *}' but argument is of type 'arm_audio_info * {aka struct <anonymous> *}'
codec_ctrl.c: In function 'codec_get_vdec_state':
codec_ctrl.c:1076:53: warning: implicit declaration of function 'codec_error_msg' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_open_sub_read':
codec_ctrl.c:1250:18: warning: implicit declaration of function 'codec_h_open_rd' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_get_audio_resample_ena':
codec_ctrl.c:2231:84: warning: passing argument 3 of 'codec_h_control' makes integer from pointer without a cast [-Wint-conversion]
In file included from codec_ctrl.c:24:0:
codec_h_ctrl.h:50:5: note: expected 'long unsigned int' but argument is of type 'long unsigned int *'
codec_ctrl.c: In function 'codec_get_audio_cur_delay_ms':
codec_ctrl.c:2320:80: warning: passing argument 3 of 'codec_h_control' makes integer from pointer without a cast [-Wint-conversion]
In file included from codec_ctrl.c:24:0:
codec_h_ctrl.h:50:5: note: expected 'long unsigned int' but argument is of type 'int *'
codec_ctrl.c: In function 'codec_get_pcm_level':
codec_ctrl.c:2410:10: warning: implicit declaration of function 'audio_get_pcm_level' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_set_skip_bytes':
codec_ctrl.c:2415:10: warning: implicit declaration of function 'audio_set_skip_bytes' [-Wimplicit-function-declaration]
codec_ctrl.c: In function 'codec_get_dsp_apts':
codec_ctrl.c:2420:10: warning: implicit declaration of function 'audio_get_pts' [-Wimplicit-function-declaration]
CC  codec_h_ctrl.c
codec_h_ctrl.c: In function 'codec_h_open':
codec_h_ctrl.c:50:6: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
codec_h_ctrl.c: In function 'codec_h_close':
codec_h_ctrl.c:96:13: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
codec_h_ctrl.c: In function 'codec_h_ioctl_set':
codec_h_ctrl.c:273:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
codec_h_ctrl.c:273:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:273:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:282:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:282:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:291:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:291:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:303:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:303:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:311:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:311:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c: In function 'codec_h_ioctl_set_ptr':
codec_h_ctrl.c:338:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:338:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:340:31: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
codec_h_ctrl.c: In function 'codec_h_ioctl_get':
codec_h_ctrl.c:360:5: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:360:5: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c: In function 'codec_h_ioctl_get_ex':
codec_h_ctrl.c:383:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:383:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:388:13: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
codec_h_ctrl.c:388:13: warning: incompatible implicit declaration of built-in function 'memcpy'
codec_h_ctrl.c:388:13: note: include '<string.h>' or provide a declaration of 'memcpy'
codec_h_ctrl.c:394:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:394:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:399:13: warning: incompatible implicit declaration of built-in function 'memcpy'
codec_h_ctrl.c:399:13: note: include '<string.h>' or provide a declaration of 'memcpy'
codec_h_ctrl.c:405:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:405:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:410:13: warning: incompatible implicit declaration of built-in function 'memcpy'
codec_h_ctrl.c:410:13: note: include '<string.h>' or provide a declaration of 'memcpy'
codec_h_ctrl.c: In function 'codec_h_ioctl_get_ptr':
codec_h_ctrl.c:433:9: warning: incompatible implicit declaration of built-in function 'memset'
codec_h_ctrl.c:433:9: note: include '<string.h>' or provide a declaration of 'memset'
codec_h_ctrl.c:435:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
codec_h_ctrl.c: In function 'codec_h_read':
codec_h_ctrl.c:522:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
codec_h_ctrl.c: In function 'codec_h_write':
codec_h_ctrl.c:543:9: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
CC  codec_msg.c
LD build-in.o
make[1]: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec/codec'
LD libamcodec.so audio_ctl-dir codec-dir  
make: Leaving directory '/build/aml-libs-c2/src/c2_aml_libs/amcodec'
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "aml-libs-c2"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
error: invalid option '--noprogressbar'
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: aml-libs-c2 r9.296f39b-1 (Mon Feb 27 19:19:01 MST 2017)
==> Cleaning up...