Raspbian Package Auto-Building

Build log for asterisk-chan-capi (1.1.6-1) on armhf

asterisk-chan-capi1.1.6-1armhf → 2020-08-14 22:49:39

sbuild (Debian sbuild) 0.73.0 (23 Dec 2016) on test2019

+==============================================================================+
| asterisk-chan-capi 1.1.6-1 (armhf)           Fri, 14 Aug 2020 22:42:44 +0000 |
+==============================================================================+

Package: asterisk-chan-capi
Version: 1.1.6-1
Source Version: 1.1.6-1
Distribution: bullseye-staging
Machine Architecture: armhf
Host Architecture: armhf
Build Architecture: armhf
Build Type: any

I: NOTICE: Log filtering will replace 'var/run/schroot/mount/bullseye-staging-armhf-sbuild-9c4deeb2-0968-4d06-b204-f75f086885b6' with '<<CHROOT>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 http://172.17.0.1/private bullseye-staging InRelease [11.3 kB]
Get:2 http://172.17.0.1/private bullseye-staging/main Sources [11.8 MB]
Get:3 http://172.17.0.1/private bullseye-staging/main armhf Packages [12.9 MB]
Fetched 24.8 MB in 31s (813 kB/s)
Reading package lists...

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Check APT
---------

Checking available source versions...

Download source files with APT
------------------------------

Reading package lists...
NOTICE: 'asterisk-chan-capi' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/pkg-voip/asterisk-chan-capi/trunk/
Need to get 274 kB of source archives.
Get:1 http://172.17.0.1/private bullseye-staging/main asterisk-chan-capi 1.1.6-1 (dsc) [1549 B]
Get:2 http://172.17.0.1/private bullseye-staging/main asterisk-chan-capi 1.1.6-1 (tar) [267 kB]
Get:3 http://172.17.0.1/private bullseye-staging/main asterisk-chan-capi 1.1.6-1 (diff) [5737 B]
Fetched 274 kB in 0s (594 kB/s)
Download complete and in download only mode
I: NOTICE: Log filtering will replace 'build/asterisk-chan-capi-4rY7XJ/asterisk-chan-capi-1.1.6' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/asterisk-chan-capi-4rY7XJ' with '<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install build-essential                                                      |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-core-dummy' in '/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive/sbuild-build-depends-core-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
gpg: keybox '/<<BUILDDIR>>/resolver-1Wq9ak/gpg/pubring.kbx' created
gpg: /<<BUILDDIR>>/resolver-1Wq9ak/gpg/trustdb.gpg: trustdb created
gpg: key E70254B6505CF8F7: public key "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: key E70254B6505CF8F7: "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" not changed
gpg: key E70254B6505CF8F7: secret key imported
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg:       secret keys read: 1
gpg:   secret keys imported: 1
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release [957 B]
Get:3 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release.gpg [370 B]
Ign:3 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release.gpg
Get:4 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Sources [349 B]
Get:5 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Packages [431 B]
Fetched 2107 B in 1s (2591 B/s)
Reading package lists...
W: copy:///<<BUILDDIR>>/resolver-1Wq9ak/apt_archive/./Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/sbuild-build-depends-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E70254B6505CF8F7
Reading package lists...

Install core build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  bsdextrautils libpam-cap sensible-utils
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  sbuild-build-depends-core-dummy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 852 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ sbuild-build-depends-core-dummy 0.invalid.0 [852 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 852 B in 0s (25.0 kB/s)
Selecting previously unselected package sbuild-build-depends-core-dummy.
(Reading database ... 13865 files and directories currently installed.)
Preparing to unpack .../sbuild-build-depends-core-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ...
Setting up sbuild-build-depends-core-dummy (0.invalid.0) ...

+------------------------------------------------------------------------------+
| Check architectures                                                          |
+------------------------------------------------------------------------------+

Arch check ok (armhf included in any)

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper (>= 9), asterisk-dev (>= 1:1.8), libcapi20-dev
Filtered Build-Depends: debhelper (>= 9), asterisk-dev (>= 1:1.8), libcapi20-dev
dpkg-deb: building package 'sbuild-build-depends-asterisk-chan-capi-dummy' in '/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive/sbuild-build-depends-asterisk-chan-capi-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-asterisk-chan-capi-dummy sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 2 entries to output Packages file.
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release [963 B]
Get:3 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release.gpg [370 B]
Ign:3 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release.gpg
Get:4 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Sources [513 B]
Get:5 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Packages [597 B]
Fetched 2443 B in 1s (2663 B/s)
Reading package lists...
W: copy:///<<BUILDDIR>>/resolver-1Wq9ak/apt_archive/./Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/sbuild-build-depends-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E70254B6505CF8F7
Reading package lists...

Install asterisk-chan-capi build dependencies (apt-based resolver)
------------------------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libpam-cap
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  asterisk-dev autoconf automake autopoint autotools-dev debhelper
  dh-autoreconf dh-strip-nondeterminism dwz file gettext gettext-base
  groff-base intltool-debian libarchive-zip-perl libcapi20-3 libcapi20-dev
  libcroco3 libdebhelper-perl libelf1 libfile-stripnondeterminism-perl
  libglib2.0-0 libicu67 libmagic-mgc libmagic1 libpipeline1 libsigsegv2
  libsub-override-perl libtool libuchardet0 libxml2 m4 man-db po-debconf
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc
  libasprintf-dev libgettextpo-dev groff libtool-doc gfortran
  | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser
  libmail-box-perl
Recommended packages:
  asterisk curl | wget | lynx libarchive-cpio-perl libglib2.0-data
  shared-mime-info xdg-user-dirs libltdl-dev libmail-sendmail-perl
The following NEW packages will be installed:
  asterisk-dev autoconf automake autopoint autotools-dev debhelper
  dh-autoreconf dh-strip-nondeterminism dwz file gettext gettext-base
  groff-base intltool-debian libarchive-zip-perl libcapi20-3 libcapi20-dev
  libcroco3 libdebhelper-perl libelf1 libfile-stripnondeterminism-perl
  libglib2.0-0 libicu67 libmagic-mgc libmagic1 libpipeline1 libsigsegv2
  libsub-override-perl libtool libuchardet0 libxml2 m4 man-db po-debconf
  sbuild-build-depends-asterisk-chan-capi-dummy
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.1 MB of archives.
After this operation, 72.3 MB of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-1Wq9ak/apt_archive ./ sbuild-build-depends-asterisk-chan-capi-dummy 0.invalid.0 [880 B]
Get:2 http://172.17.0.1/private bullseye-staging/main armhf libuchardet0 armhf 0.0.7-1 [65.0 kB]
Get:3 http://172.17.0.1/private bullseye-staging/main armhf groff-base armhf 1.22.4-5 [783 kB]
Get:4 http://172.17.0.1/private bullseye-staging/main armhf libpipeline1 armhf 1.5.2-2 [29.6 kB]
Get:5 http://172.17.0.1/private bullseye-staging/main armhf man-db armhf 2.9.3-2 [1269 kB]
Get:6 http://172.17.0.1/private bullseye-staging/main armhf libmagic-mgc armhf 1:5.38-5 [262 kB]
Get:7 http://172.17.0.1/private bullseye-staging/main armhf libmagic1 armhf 1:5.38-5 [113 kB]
Get:8 http://172.17.0.1/private bullseye-staging/main armhf file armhf 1:5.38-5 [67.0 kB]
Get:9 http://172.17.0.1/private bullseye-staging/main armhf gettext-base armhf 0.19.8.1-10 [117 kB]
Get:10 http://172.17.0.1/private bullseye-staging/main armhf asterisk-dev all 1:16.10.0~dfsg-1 [1648 kB]
Get:11 http://172.17.0.1/private bullseye-staging/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
Get:12 http://172.17.0.1/private bullseye-staging/main armhf m4 armhf 1.4.18-4 [185 kB]
Get:13 http://172.17.0.1/private bullseye-staging/main armhf autoconf all 2.69-11.1 [341 kB]
Get:14 http://172.17.0.1/private bullseye-staging/main armhf autotools-dev all 20180224.1 [77.0 kB]
Get:15 http://172.17.0.1/private bullseye-staging/main armhf automake all 1:1.16.2-3 [801 kB]
Get:16 http://172.17.0.1/private bullseye-staging/main armhf autopoint all 0.19.8.1-10 [435 kB]
Get:17 http://172.17.0.1/private bullseye-staging/main armhf libtool all 2.4.6-14 [513 kB]
Get:18 http://172.17.0.1/private bullseye-staging/main armhf dh-autoreconf all 19 [16.9 kB]
Get:19 http://172.17.0.1/private bullseye-staging/main armhf libdebhelper-perl all 13.2 [187 kB]
Get:20 http://172.17.0.1/private bullseye-staging/main armhf libarchive-zip-perl all 1.68-1 [104 kB]
Get:21 http://172.17.0.1/private bullseye-staging/main armhf libsub-override-perl all 0.09-2 [10.2 kB]
Get:22 http://172.17.0.1/private bullseye-staging/main armhf libfile-stripnondeterminism-perl all 1.9.0-1 [25.5 kB]
Get:23 http://172.17.0.1/private bullseye-staging/main armhf dh-strip-nondeterminism all 1.9.0-1 [15.2 kB]
Get:24 http://172.17.0.1/private bullseye-staging/main armhf libelf1 armhf 0.180-1 [162 kB]
Get:25 http://172.17.0.1/private bullseye-staging/main armhf dwz armhf 0.13-5 [142 kB]
Get:26 http://172.17.0.1/private bullseye-staging/main armhf libglib2.0-0 armhf 2.64.4-1 [1159 kB]
Get:27 http://172.17.0.1/private bullseye-staging/main armhf libicu67 armhf 67.1-3 [8287 kB]
Get:28 http://172.17.0.1/private bullseye-staging/main armhf libxml2 armhf 2.9.10+dfsg-5+b1 [593 kB]
Get:29 http://172.17.0.1/private bullseye-staging/main armhf libcroco3 armhf 0.6.13-1 [133 kB]
Get:30 http://172.17.0.1/private bullseye-staging/main armhf gettext armhf 0.19.8.1-10 [1219 kB]
Get:31 http://172.17.0.1/private bullseye-staging/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB]
Get:32 http://172.17.0.1/private bullseye-staging/main armhf po-debconf all 1.0.21 [248 kB]
Get:33 http://172.17.0.1/private bullseye-staging/main armhf debhelper all 13.2 [1007 kB]
Get:34 http://172.17.0.1/private bullseye-staging/main armhf libcapi20-3 armhf 1:3.27-3 [24.8 kB]
Get:35 http://172.17.0.1/private bullseye-staging/main armhf libcapi20-dev armhf 1:3.27-3 [27.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 20.1 MB in 9s (2252 kB/s)
Selecting previously unselected package libuchardet0:armhf.
(Reading database ... 13865 files and directories currently installed.)
Preparing to unpack .../00-libuchardet0_0.0.7-1_armhf.deb ...
Unpacking libuchardet0:armhf (0.0.7-1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../01-groff-base_1.22.4-5_armhf.deb ...
Unpacking groff-base (1.22.4-5) ...
Selecting previously unselected package libpipeline1:armhf.
Preparing to unpack .../02-libpipeline1_1.5.2-2_armhf.deb ...
Unpacking libpipeline1:armhf (1.5.2-2) ...
Selecting previously unselected package man-db.
Preparing to unpack .../03-man-db_2.9.3-2_armhf.deb ...
Unpacking man-db (2.9.3-2) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../04-libmagic-mgc_1%3a5.38-5_armhf.deb ...
Unpacking libmagic-mgc (1:5.38-5) ...
Selecting previously unselected package libmagic1:armhf.
Preparing to unpack .../05-libmagic1_1%3a5.38-5_armhf.deb ...
Unpacking libmagic1:armhf (1:5.38-5) ...
Selecting previously unselected package file.
Preparing to unpack .../06-file_1%3a5.38-5_armhf.deb ...
Unpacking file (1:5.38-5) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../07-gettext-base_0.19.8.1-10_armhf.deb ...
Unpacking gettext-base (0.19.8.1-10) ...
Selecting previously unselected package asterisk-dev.
Preparing to unpack .../08-asterisk-dev_1%3a16.10.0~dfsg-1_all.deb ...
Unpacking asterisk-dev (1:16.10.0~dfsg-1) ...
Selecting previously unselected package libsigsegv2:armhf.
Preparing to unpack .../09-libsigsegv2_2.12-2_armhf.deb ...
Unpacking libsigsegv2:armhf (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../10-m4_1.4.18-4_armhf.deb ...
Unpacking m4 (1.4.18-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../11-autoconf_2.69-11.1_all.deb ...
Unpacking autoconf (2.69-11.1) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../12-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../13-automake_1%3a1.16.2-3_all.deb ...
Unpacking automake (1:1.16.2-3) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../14-autopoint_0.19.8.1-10_all.deb ...
Unpacking autopoint (0.19.8.1-10) ...
Selecting previously unselected package libtool.
Preparing to unpack .../15-libtool_2.4.6-14_all.deb ...
Unpacking libtool (2.4.6-14) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../16-dh-autoreconf_19_all.deb ...
Unpacking dh-autoreconf (19) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../17-libdebhelper-perl_13.2_all.deb ...
Unpacking libdebhelper-perl (13.2) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../18-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../19-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.9.0-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.9.0-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../21-dh-strip-nondeterminism_1.9.0-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.9.0-1) ...
Selecting previously unselected package libelf1:armhf.
Preparing to unpack .../22-libelf1_0.180-1_armhf.deb ...
Unpacking libelf1:armhf (0.180-1) ...
Selecting previously unselected package dwz.
Preparing to unpack .../23-dwz_0.13-5_armhf.deb ...
Unpacking dwz (0.13-5) ...
Selecting previously unselected package libglib2.0-0:armhf.
Preparing to unpack .../24-libglib2.0-0_2.64.4-1_armhf.deb ...
Unpacking libglib2.0-0:armhf (2.64.4-1) ...
Selecting previously unselected package libicu67:armhf.
Preparing to unpack .../25-libicu67_67.1-3_armhf.deb ...
Unpacking libicu67:armhf (67.1-3) ...
Selecting previously unselected package libxml2:armhf.
Preparing to unpack .../26-libxml2_2.9.10+dfsg-5+b1_armhf.deb ...
Unpacking libxml2:armhf (2.9.10+dfsg-5+b1) ...
Selecting previously unselected package libcroco3:armhf.
Preparing to unpack .../27-libcroco3_0.6.13-1_armhf.deb ...
Unpacking libcroco3:armhf (0.6.13-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../28-gettext_0.19.8.1-10_armhf.deb ...
Unpacking gettext (0.19.8.1-10) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../29-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../30-po-debconf_1.0.21_all.deb ...
Unpacking po-debconf (1.0.21) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../31-debhelper_13.2_all.deb ...
Unpacking debhelper (13.2) ...
Selecting previously unselected package libcapi20-3:armhf.
Preparing to unpack .../32-libcapi20-3_1%3a3.27-3_armhf.deb ...
Unpacking libcapi20-3:armhf (1:3.27-3) ...
Selecting previously unselected package libcapi20-dev:armhf.
Preparing to unpack .../33-libcapi20-dev_1%3a3.27-3_armhf.deb ...
Unpacking libcapi20-dev:armhf (1:3.27-3) ...
Selecting previously unselected package sbuild-build-depends-asterisk-chan-capi-dummy.
Preparing to unpack .../34-sbuild-build-depends-asterisk-chan-capi-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-asterisk-chan-capi-dummy (0.invalid.0) ...
Setting up libpipeline1:armhf (1.5.2-2) ...
Setting up asterisk-dev (1:16.10.0~dfsg-1) ...
Setting up libicu67:armhf (67.1-3) ...
Setting up libmagic-mgc (1:5.38-5) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libcapi20-3:armhf (1:3.27-3) ...
Setting up libglib2.0-0:armhf (2.64.4-1) ...
No schema files found: doing nothing.
Setting up libdebhelper-perl (13.2) ...
Setting up libcapi20-dev:armhf (1:3.27-3) ...
Setting up libmagic1:armhf (1:5.38-5) ...
Setting up gettext-base (0.19.8.1-10) ...
Setting up file (1:5.38-5) ...
Setting up autotools-dev (20180224.1) ...
Setting up libsigsegv2:armhf (2.12-2) ...
Setting up autopoint (0.19.8.1-10) ...
Setting up libuchardet0:armhf (0.0.7-1) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up libelf1:armhf (0.180-1) ...
Setting up libxml2:armhf (2.9.10+dfsg-5+b1) ...
Setting up libfile-stripnondeterminism-perl (1.9.0-1) ...
Setting up libtool (2.4.6-14) ...
Setting up m4 (1.4.18-4) ...
Setting up libcroco3:armhf (0.6.13-1) ...
Setting up autoconf (2.69-11.1) ...
Setting up dh-strip-nondeterminism (1.9.0-1) ...
Setting up dwz (0.13-5) ...
Setting up groff-base (1.22.4-5) ...
Setting up automake (1:1.16.2-3) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up gettext (0.19.8.1-10) ...
Setting up man-db (2.9.3-2) ...
Not building database; man-db/auto-update is not 'true'.
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up po-debconf (1.0.21) ...
Setting up dh-autoreconf (19) ...
Setting up debhelper (13.2) ...
Setting up sbuild-build-depends-asterisk-chan-capi-dummy (0.invalid.0) ...
Processing triggers for libc-bin (2.31-3+rpi1) ...

+------------------------------------------------------------------------------+
| Build environment                                                            |
+------------------------------------------------------------------------------+

Kernel: Linux 4.19.20-v7+ armhf (armv7l)
Toolchain package versions: binutils_2.35-1+rpi1 dpkg-dev_1.20.5+rpi1 g++-10_10.1.0-6+rpi1 gcc-10_10.1.0-6+rpi1 libc6-dev_2.31-3+rpi1 libstdc++-10-dev_10.1.0-6+rpi1 libstdc++6_10.1.0-6+rpi1 linux-libc-dev_5.7.10-1+rpi1
Package versions: adduser_3.118 apt_2.1.10 aptitude_0.8.13-1+b1 aptitude-common_0.8.13-1 asterisk-dev_1:16.10.0~dfsg-1 autoconf_2.69-11.1 automake_1:1.16.2-3 autopoint_0.19.8.1-10 autotools-dev_20180224.1 base-files_11+rpi1 base-passwd_3.5.47 bash_5.0-7 binutils_2.35-1+rpi1 binutils-arm-linux-gnueabihf_2.35-1+rpi1 binutils-common_2.35-1+rpi1 bsdextrautils_2.36-2 bsdutils_1:2.36-2 build-essential_12.8 bzip2_1.0.8-4 coreutils_8.30-3 cpp_4:10.1.0-1+rpi1 cpp-10_10.1.0-6+rpi1 dash_0.5.10.2-7 debconf_1.5.74 debhelper_13.2 debianutils_4.9.1 dh-autoreconf_19 dh-strip-nondeterminism_1.9.0-1 diffutils_1:3.7-3 dirmngr_2.2.20-1 dpkg_1.20.5+rpi1 dpkg-dev_1.20.5+rpi1 dwz_0.13-5 e2fsprogs_1.45.6-1 fakeroot_1.24-1 fdisk_2.36-2 file_1:5.38-5 findutils_4.7.0-1 g++_4:10.1.0-1+rpi1 g++-10_10.1.0-6+rpi1 gcc_4:10.1.0-1+rpi1 gcc-10_10.1.0-6+rpi1 gcc-10-base_10.1.0-6+rpi1 gettext_0.19.8.1-10 gettext-base_0.19.8.1-10 gnupg_2.2.20-1 gnupg-l10n_2.2.20-1 gnupg-utils_2.2.20-1 gpg_2.2.20-1 gpg-agent_2.2.20-1 gpg-wks-client_2.2.20-1 gpg-wks-server_2.2.20-1 gpgconf_2.2.20-1 gpgsm_2.2.20-1 gpgv_2.2.20-1 grep_3.4-1 groff-base_1.22.4-5 gzip_1.10-2 hostname_3.23 init-system-helpers_1.58 intltool-debian_0.35.0+20060710.5 iputils-ping_3:20190709-3 libacl1_2.2.53-8 libapt-pkg6.0_2.1.10 libarchive-zip-perl_1.68-1 libasan6_10.1.0-6+rpi1 libassuan0_2.5.3-7.1 libatomic1_10.1.0-6+rpi1 libattr1_1:2.4.48-5 libaudit-common_1:2.8.5-3 libaudit1_1:2.8.5-3 libbinutils_2.35-1+rpi1 libblkid1_2.36-2 libboost-iostreams1.71.0_1.71.0-6+b1 libbz2-1.0_1.0.8-4 libc-bin_2.31-3+rpi1 libc-dev-bin_2.31-3+rpi1 libc6_2.31-3+rpi1 libc6-dev_2.31-3+rpi1 libcap-ng0_0.7.9-2.2 libcap2_1:2.42-2 libcap2-bin_1:2.42-2 libcapi20-3_1:3.27-3 libcapi20-dev_1:3.27-3 libcc1-0_10.1.0-6+rpi1 libcom-err2_1.45.6-1 libcroco3_0.6.13-1 libcrypt-dev_1:4.4.16-1 libcrypt1_1:4.4.16-1 libctf-nobfd0_2.35-1+rpi1 libctf0_2.35-1+rpi1 libcwidget4_0.5.18-5 libdb5.3_5.3.28+dfsg1-0.6 libdebconfclient0_0.253 libdebhelper-perl_13.2 libdpkg-perl_1.20.5+rpi1 libelf1_0.180-1 libext2fs2_1.45.6-1 libfakeroot_1.24-1 libfdisk1_2.36-2 libffi7_3.3-4 libfile-stripnondeterminism-perl_1.9.0-1 libgcc-10-dev_10.1.0-6+rpi1 libgcc-s1_10.1.0-6+rpi1 libgcrypt20_1.8.6-2 libgdbm-compat4_1.18.1-5 libgdbm6_1.18.1-5 libglib2.0-0_2.64.4-1 libgmp10_2:6.2.0+dfsg-6 libgnutls30_3.6.14-2+b1 libgomp1_10.1.0-6+rpi1 libgpg-error0_1.38-2 libhogweed6_3.6-2 libicu67_67.1-3 libidn2-0_2.3.0-1 libisl22_0.22.1-1 libksba8_1.4.0-2 libldap-2.4-2_2.4.50+dfsg-1+b1 libldap-common_2.4.50+dfsg-1 liblz4-1_1.9.2-2 liblzma5_5.2.4-1 libmagic-mgc_1:5.38-5 libmagic1_1:5.38-5 libmount1_2.36-2 libmpc3_1.1.0-1 libmpfr6_4.0.2-1 libncursesw6_6.2-1 libnettle8_3.6-2 libnpth0_1.6-2 libp11-kit0_0.23.20-1 libpam-cap_1:2.42-2 libpam-modules_1.3.1-5 libpam-modules-bin_1.3.1-5 libpam-runtime_1.3.1-5 libpam0g_1.3.1-5 libpcre2-8-0_10.34-7 libpcre3_2:8.39-13 libperl5.30_5.30.3-4 libpipeline1_1.5.2-2 libreadline8_8.0-4 libsasl2-2_2.1.27+dfsg-2 libsasl2-modules-db_2.1.27+dfsg-2 libseccomp2_2.4.3-1+rpi1 libselinux1_3.1-2 libsemanage-common_3.1-1 libsemanage1_3.1-1 libsepol1_3.1-1 libsigc++-2.0-0v5_2.10.2-1 libsigsegv2_2.12-2 libsmartcols1_2.36-2 libsqlite3-0_3.32.3-1 libss2_1.45.6-1 libstdc++-10-dev_10.1.0-6+rpi1 libstdc++6_10.1.0-6+rpi1 libsub-override-perl_0.09-2 libsystemd0_245.6-2+rpi1+b1 libtasn1-6_4.16.0-2 libtinfo6_6.2-1 libtool_2.4.6-14 libubsan1_10.1.0-6+rpi1 libuchardet0_0.0.7-1 libudev1_245.6-2+rpi1+b1 libunistring2_0.9.10-4 libuuid1_2.36-2 libxapian30_1.4.15-1 libxml2_2.9.10+dfsg-5+b1 libzstd1_1.4.5+dfsg-4+rpi1 linux-libc-dev_5.7.10-1+rpi1 login_1:4.8.1-1 logsave_1.45.6-1 lsb-base_11.1.0+rpi1 m4_1.4.18-4 make_4.3-4 man-db_2.9.3-2 mawk_1.3.4.20200120-2 mount_2.36-2 ncurses-base_6.2-1 ncurses-bin_6.2-1 passwd_1:4.8.1-1 patch_2.7.6-6 perl_5.30.3-4 perl-base_5.30.3-4 perl-modules-5.28_5.28.1-6 perl-modules-5.30_5.30.3-4 pinentry-curses_1.1.0-4 po-debconf_1.0.21 raspbian-archive-keyring_20120528.2 readline-common_8.0-4 sbuild-build-depends-asterisk-chan-capi-dummy_0.invalid.0 sbuild-build-depends-core-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12+nmu1 sysvinit-utils_2.96-3 tar_1.30+dfsg-7 tzdata_2020a-1 util-linux_2.36-2 xz-utils_5.2.4-1 zlib1g_1:1.2.11.dfsg-2

+------------------------------------------------------------------------------+
| Build                                                                        |
+------------------------------------------------------------------------------+


Unpack source
-------------

gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.KMg7dPkB/trustedkeys.kbx': General error
gpgv: Signature made Fri Oct 26 23:02:33 2012 UTC
gpgv:                using DSA key A02CDA9F3D08B612
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./asterisk-chan-capi_1.1.6-1.dsc
dpkg-source: info: extracting asterisk-chan-capi in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking asterisk-chan-capi_1.1.6.orig.tar.gz
dpkg-source: info: unpacking asterisk-chan-capi_1.1.6-1.debian.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying use-systems-libcapi
dpkg-source: info: applying verbose-build
dpkg-source: info: applying asterisk.h

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/112/bus
DEB_BUILD_OPTIONS=parallel=4
HOME=/sbuild-nonexistent
INVOCATION_ID=d540cc9aba1e46398de3fa2f71b5e534
JOURNAL_STREAM=8:18935
LANG=en_GB.UTF-8
LC_ALL=POSIX
LOGNAME=buildd
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/
SCHROOT_ALIAS_NAME=bullseye-staging-armhf-sbuild
SCHROOT_CHROOT_NAME=bullseye-staging-armhf-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=116
SCHROOT_GROUP=buildd
SCHROOT_SESSION_ID=bullseye-staging-armhf-sbuild-9c4deeb2-0968-4d06-b204-f75f086885b6
SCHROOT_UID=112
SCHROOT_USER=buildd
SHELL=/bin/sh
USER=buildd
XDG_RUNTIME_DIR=/run/user/112
XDG_SESSION_ID=c145960

dpkg-buildpackage
-----------------

dpkg-buildpackage: info: source package asterisk-chan-capi
dpkg-buildpackage: info: source version 1.1.6-1
dpkg-buildpackage: info: source distribution unstable
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture armhf
 fakeroot debian/rules clean
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	make -j1 distclean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
rm -f config.h
rm -f *.so *.o
rm -f libcapi20/*.o
rm -f divastreaming/*.o
rm -f divastatus/*.o
rm -f divaverbose/*.o
rm -f /usr/lib/asterisk/modules/chan_capi.so
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
 debian/rules build-arch
dh build-arch
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config -a
   dh_auto_configure -a
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_build -a
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
Makefile:197: warning: ignoring prerequisites on suffix rule definition
./create_config.sh "/usr/include"
Checking Asterisk version... trunk
 * assuming Asterisk version 1.6
Using Asterisk 1.6 API
 * found new 'ast_dsp_set_digitmode' function
 * found new union data in ast_frame structure
 * no new union subclass in ast_frame structure
 * found ast_channel_release function
 * found new ast_devstate2str function
 * found requestor in ast_request
 * no format_t in ast_request
 * found const char in ast_register_application
 * no linkedid in ast_channel_alloc
 * found rtp_engine.h
 * found ast_sockaddr structure
config.h complete.

gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I./divaverbose -I/usr/include -D_REENTRANT -D_GNU_SOURCE  -Wno-unused-but-set-variable -O2  -fsigned-char -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO  -c chan_capi.c -o chan_capi.o
In file included from chan_capi.h:20,
                 from chan_capi.c:32:
/usr/include/asterisk/asterisk.h:232:2: error: #error "Externally compiled modules must declare AST_MODULE_SELF_SYM."
  232 | #error "Externally compiled modules must declare AST_MODULE_SELF_SYM."
      |  ^~~~~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi_fmt.h: In function 'cc_set_best_codec':
chan_capi_fmt.h:230:12: warning: implicit declaration of function 'ast_best_codec'; did you mean 'cc_set_best_codec'? [-Wimplicit-function-declaration]
  230 |  int fmt = ast_best_codec(a->nativeformats);
      |            ^~~~~~~~~~~~~~
      |            cc_set_best_codec
chan_capi_fmt.h:230:28: error: invalid use of undefined type 'struct ast_channel'
  230 |  int fmt = ast_best_codec(a->nativeformats);
      |                            ^~
chan_capi_fmt.h:232:3: error: invalid use of undefined type 'struct ast_channel'
  232 |  a->readformat     = fmt;
      |   ^~
chan_capi_fmt.h:233:3: error: invalid use of undefined type 'struct ast_channel'
  233 |  a->writeformat    = fmt;
      |   ^~
chan_capi_fmt.h:234:3: error: invalid use of undefined type 'struct ast_channel'
  234 |  a->rawreadformat  = fmt;
      |   ^~
chan_capi_fmt.h:235:3: error: invalid use of undefined type 'struct ast_channel'
  235 |  a->rawwriteformat = fmt;
      |   ^~
In file included from chan_capi.c:32:
chan_capi.h: At top level:
chan_capi.h:646:24: error: field 'prefs' has incomplete type
  646 |  struct ast_codec_pref prefs;
      |                        ^~~~~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi_fmt.h:201:29: error: 'AST_FORMAT_ALAW' undeclared here (not in a function); did you mean 'CC_FORMAT_ALAW'?
  201 | #define CC_FORMAT_ALAW      AST_FORMAT_ALAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:201:31: note: in expansion of macro 'CC_FORMAT_ALAW'
  201 | cc_format_t capi_capability = CC_FORMAT_ALAW;
      |                               ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c: In function 'capi_channel_task':
chan_capi.c:540:4: error: invalid use of undefined type 'struct ast_channel'
  540 |   c->name, task);
      |    ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c: In function 'local_queue_frame':
chan_capi.c:887:43: error: invalid operands to binary == (have 'struct ast_frame_subclass' and 'int')
  887 |      (FRAME_SUBCLASS_INTEGER(f->subclass) == AST_CONTROL_HANGUP)) {
      |                                           ^~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_send_digit_begin':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:972:23: note: in expansion of macro 'CC_CHANNEL_PVT'
  972 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_send_digit':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1032:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1032 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c:1042:31: error: invalid use of undefined type 'struct ast_channel'
 1042 |   i->vname, digit, i->state, c->_state);
      |                               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:1046:8: error: invalid use of undefined type 'struct ast_channel'
 1046 |  if ((c->_state == AST_STATE_DIALING) &&
      |        ^~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_alert':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1084:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1084 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_signal_proceeding':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1123:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1123 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'send_progress':
chan_capi.c:1301:41: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 1301 |   FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_PROGRESS;
      |                                         ^~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'capi_activehangup':
chan_capi.c:1328:15: error: invalid use of undefined type 'struct ast_channel'
 1328 |   i->cause = c->hangupcause;
      |               ^~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_hangup':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1389:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1389 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1432:2: note: in expansion of macro 'CC_CHANNEL_PVT'
 1432 |  CC_CHANNEL_PVT(c) = NULL;
      |  ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_call_build_calling_party_number':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1457:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1457 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:1477:10: error: invalid use of undefined type 'struct ast_channel'
 1477 |  CLIR = c->cid.cid_pres;
      |          ^~
chan_capi.c:1478:17: error: invalid use of undefined type 'struct ast_channel'
 1478 |  callernplan = c->cid.cid_ton & 0x7f;
      |                 ^~
chan_capi.c:1480:7: error: invalid use of undefined type 'struct ast_channel'
 1480 |  if (c->cid.cid_num) {
      |       ^~
In file included from chan_capi.c:32:
chan_capi.c:1481:29: error: invalid use of undefined type 'struct ast_channel'
 1481 |   cc_copy_string(callerid, c->cid.cid_num, sizeof(callerid));
      |                             ^~
chan_capi.h:129:62: note: in definition of macro 'cc_copy_string'
  129 | #define cc_copy_string(dst, src, size)  ast_copy_string(dst, src, size)
      |                                                              ^~~
In file included from chan_capi.c:38:
chan_capi.c:1506:14: error: invalid use of undefined type 'struct ast_channel'
 1506 |   i->vname, c->name, i->doB3 ? "with B3 ":" ",
      |              ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_call':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1515:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1515 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:1598:27: error: invalid use of undefined type 'struct ast_channel'
 1598 |  i->transfercapability = c->transfercapability;
      |                           ^~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c: In function 'diva_get_b1_conf':
chan_capi_fmt.h:222:29: error: 'AST_FORMAT_ULAW' undeclared (first use in this function); did you mean 'CC_FORMAT_ULAW'?
  222 | #define CC_FORMAT_ULAW      AST_FORMAT_ULAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:1778:8: note: in expansion of macro 'CC_FORMAT_ULAW'
 1778 |   case CC_FORMAT_ULAW:
      |        ^~~~~~~~~~~~~~
chan_capi_fmt.h:222:29: note: each undeclared identifier is reported only once for each function it appears in
  222 | #define CC_FORMAT_ULAW      AST_FORMAT_ULAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:1778:8: note: in expansion of macro 'CC_FORMAT_ULAW'
 1778 |   case CC_FORMAT_ULAW:
      |        ^~~~~~~~~~~~~~
chan_capi_fmt.h:208:29: error: 'AST_FORMAT_GSM' undeclared (first use in this function); did you mean 'CC_FORMAT_GSM'?
  208 | #define CC_FORMAT_GSM       AST_FORMAT_GSM
      |                             ^~~~~~~~~~~~~~
chan_capi.c:1781:8: note: in expansion of macro 'CC_FORMAT_GSM'
 1781 |   case CC_FORMAT_GSM:
      |        ^~~~~~~~~~~~~
chan_capi_fmt.h:205:29: error: 'AST_FORMAT_G723_1' undeclared (first use in this function); did you mean 'CC_FORMAT_G723_1'?
  205 | #define CC_FORMAT_G723_1    AST_FORMAT_G723_1
      |                             ^~~~~~~~~~~~~~~~~
chan_capi.c:1784:8: note: in expansion of macro 'CC_FORMAT_G723_1'
 1784 |   case CC_FORMAT_G723_1:
      |        ^~~~~~~~~~~~~~~~
chan_capi_fmt.h:206:29: error: 'AST_FORMAT_G726' undeclared (first use in this function); did you mean 'CC_FORMAT_G726'?
  206 | #define CC_FORMAT_G726      AST_FORMAT_G726
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:1787:8: note: in expansion of macro 'CC_FORMAT_G726'
 1787 |   case CC_FORMAT_G726:
      |        ^~~~~~~~~~~~~~
chan_capi_fmt.h:209:29: error: 'AST_FORMAT_ILBC' undeclared (first use in this function); did you mean 'CC_FORMAT_ILBC'?
  209 | #define CC_FORMAT_ILBC      AST_FORMAT_ILBC
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:1790:8: note: in expansion of macro 'CC_FORMAT_ILBC'
 1790 |   case CC_FORMAT_ILBC: /* 30 mSec 240 samples */
      |        ^~~~~~~~~~~~~~
chan_capi_fmt.h:207:29: error: 'AST_FORMAT_G729A' undeclared (first use in this function); did you mean 'CC_FORMAT_G729A'?
  207 | #define CC_FORMAT_G729A     AST_FORMAT_G729A
      |                             ^~~~~~~~~~~~~~~~
chan_capi.c:1793:8: note: in expansion of macro 'CC_FORMAT_G729A'
 1793 |   case CC_FORMAT_G729A:
      |        ^~~~~~~~~~~~~~~
In file included from chan_capi.c:32:
chan_capi_fmt.h:225:33: warning: implicit declaration of function 'ast_getformatname'; did you mean 'cc_getformatname'? [-Wimplicit-function-declaration]
  225 | #define cc_getformatname(__x__) ast_getformatname((__x__))
      |                                 ^~~~~~~~~~~~~~~~~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:1823:15: note: in expansion of macro 'cc_getformatname'
 1823 |     i->vname, cc_getformatname(i->codec), i->codec);
      |               ^~~~~~~~~~~~~~~~
chan_capi.c:1822:22: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=]
 1822 |    cc_log(LOG_ERROR, "%s: format %s(%d) invalid.\n",
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:1822:35: note: format string is defined here
 1822 |    cc_log(LOG_ERROR, "%s: format %s(%d) invalid.\n",
      |                                  ~^
      |                                   |
      |                                   char *
      |                                  %d
In file included from chan_capi.c:32:
chan_capi.c: In function 'capi_send_answer':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1836:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1836 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_answer':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1949:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1949 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_read':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:1968:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 1968 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
In file included from /usr/include/asterisk/alertpipe.h:22,
                 from /usr/include/asterisk/channel.h:126,
                 from chan_capi.h:25,
                 from chan_capi.c:32:
chan_capi.c:1983:10: error: invalid use of undefined type 'struct ast_channel'
 1983 |    if (!(ast_test_flag(c, AST_FLAG_END_DTMF_ONLY) ||
      |          ^~~~~~~~~~~~~
chan_capi.c:1983:10: error: invalid use of undefined type 'struct ast_channel'
 1983 |    if (!(ast_test_flag(c, AST_FLAG_END_DTMF_ONLY) ||
      |          ^~~~~~~~~~~~~
chan_capi.c:1983:10: error: invalid use of undefined type 'struct ast_channel'
 1983 |    if (!(ast_test_flag(c, AST_FLAG_END_DTMF_ONLY) ||
      |          ^~~~~~~~~~~~~
chan_capi.c:1984:7: error: invalid use of undefined type 'struct ast_channel'
 1984 |       ast_test_flag(c, AST_FLAG_EMULATE_DTMF) ||
      |       ^~~~~~~~~~~~~
chan_capi.c:1984:7: error: invalid use of undefined type 'struct ast_channel'
 1984 |       ast_test_flag(c, AST_FLAG_EMULATE_DTMF) ||
      |       ^~~~~~~~~~~~~
chan_capi.c:1984:7: error: invalid use of undefined type 'struct ast_channel'
 1984 |       ast_test_flag(c, AST_FLAG_EMULATE_DTMF) ||
      |       ^~~~~~~~~~~~~
chan_capi.c:1985:7: error: invalid use of undefined type 'struct ast_channel'
 1985 |       ast_test_flag(c, AST_FLAG_IN_DTMF))) {
      |       ^~~~~~~~~~~~~
chan_capi.c:1985:7: error: invalid use of undefined type 'struct ast_channel'
 1985 |       ast_test_flag(c, AST_FLAG_IN_DTMF))) {
      |       ^~~~~~~~~~~~~
chan_capi.c:1985:7: error: invalid use of undefined type 'struct ast_channel'
 1985 |       ast_test_flag(c, AST_FLAG_IN_DTMF))) {
      |       ^~~~~~~~~~~~~
chan_capi.c:1986:5: error: invalid use of undefined type 'struct ast_channel'
 1986 |     ast_set_flag(c, AST_FLAG_IN_DTMF);
      |     ^~~~~~~~~~~~
chan_capi.c:1986:5: error: invalid use of undefined type 'struct ast_channel'
 1986 |     ast_set_flag(c, AST_FLAG_IN_DTMF);
      |     ^~~~~~~~~~~~
chan_capi.c:1986:5: error: invalid use of undefined type 'struct ast_channel'
 1986 |     ast_set_flag(c, AST_FLAG_IN_DTMF);
      |     ^~~~~~~~~~~~
chan_capi.c:1987:6: error: invalid use of undefined type 'struct ast_channel'
 1987 |     c->dtmf_tv = ast_tvsub(ast_tvnow(),ast_tv(0,250*1000));
      |      ^~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_write':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:2003:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 2003 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_fixup':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:2016:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 2016 |  struct capi_pvt *i = CC_CHANNEL_PVT(newchan);
      |                       ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c:2019:20: error: invalid use of undefined type 'struct ast_channel'
 2019 |   i->vname, oldchan->name, newchan->name);
      |                    ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:2019:35: error: invalid use of undefined type 'struct ast_channel'
 2019 |   i->vname, oldchan->name, newchan->name);
      |                                   ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c: In function 'pbx_capi_bridge_transfer':
chan_capi.c:2127:32: error: invalid use of undefined type 'struct ast_channel'
 2127 |        i0->vname, i1->vname, c0->name, c1->name);
      |                                ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:2127:42: error: invalid use of undefined type 'struct ast_channel'
 2127 |        i0->vname, i1->vname, c0->name, c1->name);
      |                                          ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_bridge':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:2270:24: note: in expansion of macro 'CC_CHANNEL_PVT'
 2270 |  struct capi_pvt *i0 = CC_CHANNEL_PVT(c0);
      |                        ^~~~~~~~~~~~~~
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:2271:24: note: in expansion of macro 'CC_CHANNEL_PVT'
 2271 |  struct capi_pvt *i1 = CC_CHANNEL_PVT(c1);
      |                        ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c:2275:27: error: invalid use of undefined type 'struct ast_channel'
 2275 |   i0->vname, i1->vname, c0->name, c1->name);
      |                           ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:2275:37: error: invalid use of undefined type 'struct ast_channel'
 2275 |   i0->vname, i1->vname, c0->name, c1->name);
      |                                     ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from chan_capi.h:25,
                 from chan_capi.c:32:
chan_capi.c: In function 'capi_new':
chan_capi.c:2363:4: warning: passing argument 8 of '__ast_channel_alloc' makes pointer from integer without a cast [-Wint-conversion]
 2363 |   i->amaflags,
      |   ~^~~~~~~~~~
      |    |
      |    int
/usr/include/asterisk/channel.h:1216:74: note: expected 'const struct ast_assigned_ids *' but argument is of type 'int'
 1216 |   const char *exten, const char *context, const struct ast_assigned_ids *assignedids,
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
chan_capi.h:117:28: warning: passing argument 9 of '__ast_channel_alloc' from incompatible pointer type [-Wincompatible-pointer-types]
  117 | #define CC_MESSAGE_BIGNAME "CAPI"
      |                            ^~~~~~
      |                            |
      |                            char *
chan_capi.c:2365:3: note: in expansion of macro 'CC_MESSAGE_BIGNAME'
 2365 |   CC_MESSAGE_BIGNAME "/%s/%s-%x", i->vname, i->dnid, capi_counter++);
      |   ^~~~~~~~~~~~~~~~~~
/usr/include/asterisk/channel.h:1217:29: note: expected 'const struct ast_channel *' but argument is of type 'char *'
 1217 |   const struct ast_channel *requestor, enum ama_flags amaflag,
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
chan_capi.c:2365:36: error: incompatible type for argument 10 of '__ast_channel_alloc'
 2365 |   CC_MESSAGE_BIGNAME "/%s/%s-%x", i->vname, i->dnid, capi_counter++);
      |                                   ~^~~~~~~
      |                                    |
      |                                    char *
/usr/include/asterisk/channel.h:1217:55: note: expected 'enum ama_flags' but argument is of type 'char *'
 1217 |   const struct ast_channel *requestor, enum ama_flags amaflag,
      |                                        ~~~~~~~~~~~~~~~^~~~~~~
chan_capi.c:2403:3: warning: implicit declaration of function 'ast_smoother_reset'; did you mean 'ast_str_reset'? [-Wimplicit-function-declaration]
 2403 |   ast_smoother_reset(i->smoother, CAPI_MAX_B3_BLOCK_SIZE);
      |   ^~~~~~~~~~~~~~~~~~
      |   ast_str_reset
chan_capi.c:2415:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
 2415 |  memset(i->txavg, 0, ECHO_TX_COUNT);
      |  ^~~~~~
In file included from chan_capi.c:32:
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:2443:2: note: in expansion of macro 'CC_CHANNEL_PVT'
 2443 |  CC_CHANNEL_PVT(tmp) = i;
      |  ^~~~~~~~~~~~~~
chan_capi.c:2445:5: error: invalid use of undefined type 'struct ast_channel'
 2445 |  tmp->callgroup = i->callgroup;
      |     ^~
chan_capi.c:2446:5: error: invalid use of undefined type 'struct ast_channel'
 2446 |  tmp->pickupgroup = i->pickupgroup;
      |     ^~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c:2468:21: error: invalid use of undefined type 'struct ast_channel'
 2468 |   cc_add_formats(tmp->nativeformats, i->rtpcodec);
      |                     ^~
chan_capi_fmt.h:226:42: note: in definition of macro 'cc_add_formats'
  226 | #define cc_add_formats(__x__,__y__) do {(__x__)=(__y__);}while(0)
      |                                          ^~~~~
chan_capi.c:2471:21: error: invalid use of undefined type 'struct ast_channel'
 2471 |   cc_add_formats(tmp->nativeformats, capi_capability);
      |                     ^~
chan_capi_fmt.h:226:42: note: in definition of macro 'cc_add_formats'
  226 | #define cc_add_formats(__x__,__y__) do {(__x__)=(__y__);}while(0)
      |                                          ^~~~~
chan_capi.c:2477:5: error: invalid use of undefined type 'struct ast_channel'
 2477 |  tmp->tech = &capi_tech;
      |     ^~
In file included from chan_capi.c:38:
chan_capi.c:2482:3: warning: implicit declaration of function 'ast_getformatname_multiple' [-Wimplicit-function-declaration]
 2482 |   ast_getformatname_multiple(alloca(80), 80,
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:2483:6: error: invalid use of undefined type 'struct ast_channel'
 2483 |   tmp->nativeformats),
      |      ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from /usr/include/asterisk/asterisk.h:23,
                 from chan_capi.h:20,
                 from chan_capi.c:32:
chan_capi.c:2493:15: error: invalid use of undefined type 'struct ast_channel'
 2493 |   ast_free(tmp->cid.cid_num);
      |               ^~
chan_capi.c:2494:6: error: invalid use of undefined type 'struct ast_channel'
 2494 |   tmp->cid.cid_num = ast_strdup(i->cid);
      |      ^~
In file included from /usr/include/asterisk/asterisk.h:23,
                 from chan_capi.h:20,
                 from chan_capi.c:32:
chan_capi.c:2502:15: error: invalid use of undefined type 'struct ast_channel'
 2502 |   ast_free(tmp->cid.cid_dnid);
      |               ^~
chan_capi.c:2503:6: error: invalid use of undefined type 'struct ast_channel'
 2503 |   tmp->cid.cid_dnid = ast_strdup(i->dnid);
      |      ^~
chan_capi.c:2509:5: error: invalid use of undefined type 'struct ast_channel'
 2509 |  tmp->cid.cid_ton = i->cid_ton;
      |     ^~
In file included from /usr/include/asterisk/utils.h:36,
                 from /usr/include/asterisk/alertpipe.h:22,
                 from /usr/include/asterisk/channel.h:126,
                 from chan_capi.h:25,
                 from chan_capi.c:32:
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:2528:2: error: invalid use of undefined type 'struct ast_channel'
 2528 |  ast_string_field_set(tmp, language, i->language);
      |  ^~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_request':
chan_capi.c:2671:25: error: invalid use of undefined type 'const struct ast_channel'
 2671 |    requestor ? requestor->linkedid : NULL
      |                         ^~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c: In function 'clear_channel_fax_loop':
chan_capi.c:3177:27: warning: passing argument 2 of 'ast_set_read_format' makes pointer from integer without a cast [-Wint-conversion]
 3177 |  cc_set_read_format(chan, capi_capability);
      |                           ^~~~~~~~~~~~~~~
      |                           |
      |                           int
chan_capi_fmt.h:240:69: note: in definition of macro 'cc_set_read_format'
  240 | #define cc_set_read_format(__a__, __b__) ast_set_read_format(__a__, __b__)
      |                                                                     ^~~~~
In file included from chan_capi.h:25,
                 from chan_capi.c:32:
/usr/include/asterisk/channel.h:2109:70: note: expected 'struct ast_format *' but argument is of type 'int'
 2109 | int ast_set_read_format(struct ast_channel *chan, struct ast_format *format);
      |                                                   ~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c:3178:28: warning: passing argument 2 of 'ast_set_write_format' makes pointer from integer without a cast [-Wint-conversion]
 3178 |  cc_set_write_format(chan, capi_capability);
      |                            ^~~~~~~~~~~~~~~
      |                            |
      |                            int
chan_capi_fmt.h:241:71: note: in definition of macro 'cc_set_write_format'
  241 | #define cc_set_write_format(__a__, __b__) ast_set_write_format(__a__, __b__)
      |                                                                       ^~~~~
In file included from chan_capi.h:25,
                 from chan_capi.c:32:
/usr/include/asterisk/channel.h:2126:71: note: expected 'struct ast_format *' but argument is of type 'int'
 2126 | int ast_set_write_format(struct ast_channel *chan, struct ast_format *format);
      |                                                    ~~~~~~~~~~~~~~~~~~~^~~~~~
chan_capi.c:3196:42: error: invalid operands to binary == (have 'struct ast_frame_subclass' and 'int')
 3196 |     (FRAME_SUBCLASS_INTEGER(f->subclass) == AST_CONTROL_HANGUP)) {
      |                                          ^~
In file included from chan_capi.c:32:
chan_capi.c:3230:10: error: invalid use of undefined type 'struct ast_channel'
 3230 |      chan->name, strerror(errno));
      |          ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c: In function 'capi_handle_dtmf_fax':
chan_capi.c:3646:34: error: invalid use of undefined type 'struct ast_channel'
 3646 |  if ((i->faxdetecttime > 0) && (c->cdr)) {
      |                                  ^~
chan_capi.c:3649:9: error: invalid use of undefined type 'struct ast_channel'
 3649 |   if ((c->cdr->start.tv_sec + i->faxdetecttime) < now.tv_sec) {
      |         ^~
In file included from chan_capi.c:38:
chan_capi.c:3652:37: error: invalid use of undefined type 'struct ast_channel'
 3652 |     i->vname, (long) (now.tv_sec - c->cdr->start.tv_sec),
      |                                     ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3658:16: error: invalid use of undefined type 'struct ast_channel'
 3658 |  faxcontext = c->context;
      |                ^~
chan_capi.c:3662:16: error: invalid use of undefined type 'struct ast_channel'
 3662 |  if ((!strcmp(c->exten, i->faxexten)) &&
      |                ^~
chan_capi.c:3663:16: error: invalid use of undefined type 'struct ast_channel'
 3663 |      (!strcmp(c->context, faxcontext))) {
      |                ^~
In file included from chan_capi.c:38:
chan_capi.c:3671:18: error: invalid use of undefined type 'struct ast_channel'
 3671 |    i->faxexten, c->name, faxcontext);
      |                  ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3676:14: error: invalid use of undefined type 'struct ast_channel'
 3676 |   i->vname, c->name, faxcontext, i->faxexten, i->faxpriority);
      |              ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from chan_capi.c:32:
chan_capi.c: In function 'search_did':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:3694:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 3694 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c:3700:15: error: invalid use of undefined type 'struct ast_channel'
 3700 |    i->vname, c->name, exten, c->context);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3700:31: error: invalid use of undefined type 'struct ast_channel'
 3700 |    i->vname, c->name, exten, c->context);
      |                               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3707:34: error: invalid use of undefined type 'struct ast_channel'
 3707 |  if (ast_exists_extension(NULL, c->context, exten, 1, i->cid)) {
      |                                  ^~
chan_capi.c:3708:4: error: invalid use of undefined type 'struct ast_channel'
 3708 |   c->priority = 1;
      |    ^~
In file included from chan_capi.c:32:
chan_capi.c:3709:19: error: invalid use of undefined type 'struct ast_channel'
 3709 |   cc_copy_string(c->exten, exten, sizeof(c->exten));
      |                   ^~
chan_capi.h:129:57: note: in definition of macro 'cc_copy_string'
  129 | #define cc_copy_string(dst, src, size)  ast_copy_string(dst, src, size)
      |                                                         ^~~
chan_capi.c:3709:43: error: invalid use of undefined type 'struct ast_channel'
 3709 |   cc_copy_string(c->exten, exten, sizeof(c->exten));
      |                                           ^~
chan_capi.h:129:67: note: in definition of macro 'cc_copy_string'
  129 | #define cc_copy_string(dst, src, size)  ast_copy_string(dst, src, size)
      |                                                                   ^~~~
In file included from chan_capi.c:38:
chan_capi.c:3711:15: error: invalid use of undefined type 'struct ast_channel'
 3711 |    i->vname, c->name, exten, c->context);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3711:31: error: invalid use of undefined type 'struct ast_channel'
 3711 |    i->vname, c->name, exten, c->context);
      |                               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3715:36: error: invalid use of undefined type 'struct ast_channel'
 3715 |  if (ast_canmatch_extension(NULL, c->context, exten, 1, i->cid)) {
      |                                    ^~
In file included from chan_capi.c:38:
chan_capi.c:3717:15: error: invalid use of undefined type 'struct ast_channel'
 3717 |    i->vname, c->name, exten, c->context);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3717:31: error: invalid use of undefined type 'struct ast_channel'
 3717 |    i->vname, c->name, exten, c->context);
      |                               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c: In function 'start_pbx_on_match':
chan_capi.c:3784:15: error: invalid use of undefined type 'struct ast_channel'
 3784 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:3789:23: warning: implicit declaration of function 'ast_pickup_ext' [-Wimplicit-function-declaration]
 3789 |  if (!strcmp(i->dnid, ast_pickup_ext())) {
      |                       ^~~~~~~~~~~~~~
chan_capi.c:3789:23: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
 3789 |  if (!strcmp(i->dnid, ast_pickup_ext())) {
      |                       ^~~~~~~~~~~~~~~~
      |                       |
      |                       int
In file included from chan_capi.c:21:
/usr/include/string.h:137:50: note: expected 'const char *' but argument is of type 'int'
  137 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
In file included from chan_capi.c:32:
chan_capi.c:3793:19: error: invalid use of undefined type 'struct ast_channel'
 3793 |   cc_copy_string(c->exten, i->dnid, sizeof(c->exten));
      |                   ^~
chan_capi.h:129:57: note: in definition of macro 'cc_copy_string'
  129 | #define cc_copy_string(dst, src, size)  ast_copy_string(dst, src, size)
      |                                                         ^~~
chan_capi.c:3793:45: error: invalid use of undefined type 'struct ast_channel'
 3793 |   cc_copy_string(c->exten, i->dnid, sizeof(c->exten));
      |                                             ^~
chan_capi.h:129:67: note: in definition of macro 'cc_copy_string'
  129 | #define cc_copy_string(dst, src, size)  ast_copy_string(dst, src, size)
      |                                                                   ^~~~
In file included from chan_capi.c:38:
chan_capi.c:3809:6: error: invalid use of undefined type 'struct ast_channel'
 3809 |     c->name);
      |      ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c: In function 'capidev_handle_did_digits':
chan_capi.c:3869:14: error: invalid use of undefined type 'struct ast_channel'
 3869 |  if (i->owner->pbx != NULL) {
      |              ^~
chan_capi.c:3874:43: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'char'
 3874 |     FRAME_SUBCLASS_INTEGER(fr.subclass) = did[a];
      |                                           ^~~
chan_capi.c: In function 'capi_queue_cause_control':
chan_capi.c:3892:40: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 3892 |  FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_HANGUP;
      |                                        ^~~~~~~~~~~~~~~~~~
chan_capi.c:3895:23: error: invalid use of undefined type 'struct ast_channel'
 3895 |   int cause = i->owner->hangupcause;
      |                       ^~
chan_capi.c:3897:42: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 3897 |    FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_CONGESTION;
      |                                          ^~~~~~~~~~~~~~~~~~~~~~
chan_capi.c:3901:42: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 3901 |    FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_BUSY;
      |                                          ^~~~~~~~~~~~~~~~
chan_capi.c: In function 'capidev_sendback_info':
chan_capi.c:4030:13: error: invalid use of undefined type 'struct ast_channel'
 4030 |  if (i->peer->tech != &capi_tech)
      |             ^~
In file included from chan_capi.c:32:
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:4033:7: note: in expansion of macro 'CC_CHANNEL_PVT'
 4033 |  i2 = CC_CHANNEL_PVT(i->peer);
      |       ^~~~~~~~~~~~~~
chan_capi.c: In function 'capidev_handle_info_indication':
chan_capi.c:4069:12: error: invalid use of undefined type 'struct ast_channel'
 4069 |    i->owner->hangupcause = INFO_IND_INFOELEMENT(CMSG)[2] & 0x7f;
      |            ^~
In file included from /usr/include/asterisk/asterisk.h:23,
                 from chan_capi.h:20,
                 from chan_capi.c:32:
chan_capi.c:4187:21: error: invalid use of undefined type 'struct ast_channel'
 4187 |    ast_free(i->owner->cid.cid_rdnis);
      |                     ^~
chan_capi.c:4188:12: error: invalid use of undefined type 'struct ast_channel'
 4188 |    i->owner->cid.cid_rdnis = ast_strdup(p);
      |            ^~
chan_capi.c:4233:41: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 4233 |   FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_RINGING;
      |                                         ^~~~~~~~~~~~~~~~~~~
chan_capi.c:4243:41: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 4243 |   FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_PROCEEDING;
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
chan_capi.c:4264:17: error: invalid use of undefined type 'struct ast_channel'
 4264 |        (i->owner->hangupcause == AST_CAUSE_USER_BUSY)) {
      |                 ^~
chan_capi.c: In function 'handle_facility_indication_dtmf':
chan_capi.c:4495:47: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'char'
 4495 |         FRAME_SUBCLASS_INTEGER(fr.subclass) = i->special_tone_extension[n++];
      |                                               ^
chan_capi.c:4506:45: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'char'
 4506 |       FRAME_SUBCLASS_INTEGER(fr.subclass) = dtmf;
      |                                             ^~~~
chan_capi.c: In function 'pbx_capi_get_samples':
chan_capi.c:4554:7: error: 'CC_FORMAT_SLINEAR' undeclared (first use in this function); did you mean 'CC_FORMAT_ULAW'?
 4554 |  case CC_FORMAT_SLINEAR:
      |       ^~~~~~~~~~~~~~~~~
      |       CC_FORMAT_ULAW
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c: In function 'capidev_handle_data_b3_indication':
chan_capi_fmt.h:222:29: error: 'AST_FORMAT_ULAW' undeclared (first use in this function); did you mean 'CC_FORMAT_ULAW'?
  222 | #define CC_FORMAT_ULAW      AST_FORMAT_ULAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:4674:28: note: in expansion of macro 'CC_FORMAT_ULAW'
 4674 |     if (capi_capability == CC_FORMAT_ULAW) {
      |                            ^~~~~~~~~~~~~~
In file included from chan_capi.c:32:
chan_capi.h:161:63: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
  161 | #define SET_FRAME_SUBCLASS_CODEC(__a__, __b__) do { (__a__) = (__b__); }while(0)
      |                                                               ^
chan_capi.c:4706:3: note: in expansion of macro 'SET_FRAME_SUBCLASS_CODEC'
 4706 |   SET_FRAME_SUBCLASS_CODEC(fr.subclass, capi_capability);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.h:161:63: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
  161 | #define SET_FRAME_SUBCLASS_CODEC(__a__, __b__) do { (__a__) = (__b__); }while(0)
      |                                                               ^
chan_capi.c:4708:3: note: in expansion of macro 'SET_FRAME_SUBCLASS_CODEC'
 4708 |   SET_FRAME_SUBCLASS_CODEC(fr.subclass, i->codec);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'capi_signal_answer':
chan_capi.c:4742:40: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 4742 |  FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_ANSWER;
      |                                        ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/asterisk/asterisk.h:23,
                 from chan_capi.h:20,
                 from chan_capi.c:32:
chan_capi.c: In function 'capidev_handle_diva_signaling_manufacturer_infications':
chan_capi.c:4932:23: error: invalid use of undefined type 'struct ast_channel'
 4932 |     ast_free (i->owner->cid.cid_name);
      |                       ^~
chan_capi.c:4933:13: error: invalid use of undefined type 'struct ast_channel'
 4933 |     i->owner->cid.cid_name = ast_strdup(buffer); /* Save name to callerid */
      |             ^~
chan_capi.c: In function 'capidev_handle_connect_active_indication':
chan_capi.c:5020:15: error: invalid use of undefined type 'struct ast_channel'
 5020 |   if (i->owner->cdr)
      |               ^~
chan_capi.c:5021:4: warning: implicit declaration of function 'ast_cdr_answer'; did you mean 'ast_raw_answer'? [-Wimplicit-function-declaration]
 5021 |    ast_cdr_answer(i->owner->cdr);
      |    ^~~~~~~~~~~~~~
      |    ast_raw_answer
chan_capi.c:5021:27: error: invalid use of undefined type 'struct ast_channel'
 5021 |    ast_cdr_answer(i->owner->cdr);
      |                           ^~
chan_capi.c: In function 'capidev_handle_connect_b3_active_indication':
chan_capi.c:5103:36: error: invalid use of undefined type 'struct ast_channel'
 5103 |   if ((i->peer != NULL) && (i->peer->tech == &capi_tech)) {
      |                                    ^~
In file included from chan_capi.c:32:
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:5105:9: note: in expansion of macro 'CC_CHANNEL_PVT'
 5105 |    i1 = CC_CHANNEL_PVT(i->peer);
      |         ^~~~~~~~~~~~~~
chan_capi.c: In function 'capidev_handle_disconnect_indication':
chan_capi.c:5224:40: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 5224 |  FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_HANGUP;
      |                                        ^~~~~~~~~~~~~~~~~~
chan_capi.c:5243:15: error: invalid use of undefined type 'struct ast_channel'
 5243 |   if (i->owner->hangupcause == 0) {
      |               ^~
chan_capi.c:5247:12: error: invalid use of undefined type 'struct ast_channel'
 5247 |    i->owner->hangupcause =
      |            ^~
chan_capi.c:5282:41: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 5282 |   FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_CONGESTION;
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'capidev_handle_connect_indication':
chan_capi.c:5436:13: error: invalid use of undefined type 'struct ast_channel'
 5436 |     i->owner->transfercapability = i->transfercapability;
      |             ^~
chan_capi.c:5468:12: error: invalid use of undefined type 'struct ast_channel'
 5468 |    i->owner->cid.cid_pres = callpres;
      |            ^~
chan_capi.c: In function 'capidev_handle_connection_conf':
chan_capi.c:5704:40: error: incompatible types when assigning to type 'struct ast_frame_subclass' from type 'int'
 5704 |  FRAME_SUBCLASS_INTEGER(fr.subclass) = AST_CONTROL_BUSY;
      |                                        ^~~~~~~~~~~~~~~~
chan_capi.c: In function 'capidev_handle_msg':
chan_capi.c:5878:17: error: invalid use of undefined type 'struct ast_channel'
 5878 |     if (i->owner->_state == AST_STATE_RING) {
      |                 ^~
chan_capi.c:5879:14: error: invalid use of undefined type 'struct ast_channel'
 5879 |      i->owner->rings = 1;
      |              ^~
chan_capi.c: In function 'get_active_plci':
chan_capi.c:6006:7: error: invalid use of undefined type 'struct ast_channel'
 6006 |  if (c->tech == &capi_tech) {
      |       ^~
In file included from chan_capi.c:32:
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6007:7: note: in expansion of macro 'CC_CHANNEL_PVT'
 6007 |   i = CC_CHANNEL_PVT(c);
      |       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_call_deflect':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6021:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6021 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:6047:15: error: invalid use of undefined type 'struct ast_channel'
 6047 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
In file included from chan_capi.c:38:
chan_capi.c: In function 'pbx_capi_peer_link':
chan_capi.c:6120:4: error: invalid use of undefined type 'struct ast_channel'
 6120 |   c->name);
      |    ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_retrieve':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6130:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6130 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:6133:7: error: invalid use of undefined type 'struct ast_channel'
 6133 |  if (c->tech == &capi_tech) {
      |       ^~
In file included from chan_capi.c:32:
chan_capi.c:6154:5: error: invalid use of undefined type 'struct ast_channel'
 6154 |    c->name);
      |     ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:6177:15: error: invalid use of undefined type 'struct ast_channel'
 6177 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c: In function 'pbx_capi_ect':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6208:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6208 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:6280:15: error: invalid use of undefined type 'struct ast_channel'
 6280 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c: In function 'pbx_capi_keypad':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6326:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6326 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_hold':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6358:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6358 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:6365:15: error: invalid use of undefined type 'struct ast_channel'
 6365 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:6371:15: error: invalid use of undefined type 'struct ast_channel'
 6371 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:6376:15: error: invalid use of undefined type 'struct ast_channel'
 6376 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c: In function 'pbx_capi_malicious':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6414:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6414 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:6418:15: error: invalid use of undefined type 'struct ast_channel'
 6418 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c: In function 'pbx_capi_getplci':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:6732:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 6732 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_echosquelch':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7183:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 7183 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_holdtype':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7207:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 7207 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_signal_progress':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7274:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 7274 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_3pty_begin':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7318:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 7318 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
chan_capi.c:7359:15: error: invalid use of undefined type 'struct ast_channel'
 7359 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
chan_capi.c:7364:15: error: invalid use of undefined type 'struct ast_channel'
 7364 |    i->vname, c->name);
      |               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
In file included from chan_capi.h:27,
                 from chan_capi.c:32:
chan_capi.c: In function 'pbx_capicommand_exec':
chan_capi.c:7496:7: error: 'AST_MODULE_SELF' undeclared (first use in this function); did you mean 'AST_MODULE_INFO'?
 7496 |   u = ast_module_user_add(chan);
      |       ^~~~~~~~~~~~~~~~~~~
chan_capi.c:7530:29: error: invalid use of undefined type 'struct ast_channel'
 7530 |  if ((chan != NULL) && (chan->tech != &capi_tech)) {
      |                             ^~
In file included from chan_capi.c:32:
chan_capi.c: In function 'pbx_capi_indicate':
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7580:23: note: in expansion of macro 'CC_CHANNEL_PVT'
 7580 |  struct capi_pvt *i = CC_CHANNEL_PVT(c);
      |                       ^~~~~~~~~~~~~~
In file included from chan_capi.c:38:
chan_capi.c:7592:15: error: invalid use of undefined type 'struct ast_channel'
 7592 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7607:15: error: invalid use of undefined type 'struct ast_channel'
 7607 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7619:15: error: invalid use of undefined type 'struct ast_channel'
 7619 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7631:15: error: invalid use of undefined type 'struct ast_channel'
 7631 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7636:15: error: invalid use of undefined type 'struct ast_channel'
 7636 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7641:15: error: invalid use of undefined type 'struct ast_channel'
 7641 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7653:15: error: invalid use of undefined type 'struct ast_channel'
 7653 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7672:15: error: invalid use of undefined type 'struct ast_channel'
 7672 |    i->vname, c->name);
      |               ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7685:26: error: invalid use of undefined type 'struct ast_channel'
 7685 |    i->vname, condition, c->name);
      |                          ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c: In function 'capi_do_channel_task':
chan_capi.c:7824:7: warning: implicit declaration of function 'ast_pickup_call'; did you mean 'ast_pre_call'? [-Wimplicit-function-declaration]
 7824 |   if (ast_pickup_call(chan_for_task)) {
      |       ^~~~~~~~~~~~~~~
      |       ast_pre_call
In file included from chan_capi.c:38:
chan_capi.c:7826:18: error: invalid use of undefined type 'struct ast_channel'
 7826 |     chan_for_task->name);
      |                  ^~
chan_capi_utils.h:38:33: note: in definition of macro 'cc_verbose'
   38 |   cc_verbose_internal(text , ## args); \
      |                                 ^~~~
chan_capi.c:7833:69: error: invalid use of undefined type 'struct ast_channel'
 7833 |   pbx_builtin_setvar_helper(chan_for_task, "FAXEXTEN", chan_for_task->exten);
      |                                                                     ^~
In file included from chan_capi.c:32:
chan_capi.h:139:30: error: invalid use of undefined type 'struct ast_channel'
  139 | #define CC_CHANNEL_PVT(c) (c)->tech_pvt
      |                              ^~
chan_capi.c:7834:7: note: in expansion of macro 'CC_CHANNEL_PVT'
 7834 |   i = CC_CHANNEL_PVT(chan_for_task);
      |       ^~~~~~~~~~~~~~
chan_capi.c:7838:63: error: invalid use of undefined type 'struct ast_channel'
 7838 |      i->faxcontext, i->faxexten, i->faxpriority, chan_for_task->name);
      |                                                               ^~
chan_capi.h:127:43: note: in definition of macro 'cc_log'
  127 | #define cc_log(x...)              ast_log(x)
      |                                           ^
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi.c: In function 'capi_gains':
chan_capi_fmt.h:222:29: error: 'AST_FORMAT_ULAW' undeclared (first use in this function); did you mean 'CC_FORMAT_ULAW'?
  222 | #define CC_FORMAT_ULAW      AST_FORMAT_ULAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:7947:27: note: in expansion of macro 'CC_FORMAT_ULAW'
 7947 |    if (capi_capability == CC_FORMAT_ULAW) {
      |                           ^~~~~~~~~~~~~~
chan_capi.c: In function 'mkif':
chan_capi.c:8084:19: warning: implicit declaration of function 'ast_smoother_new' [-Wimplicit-function-declaration]
 8084 |   tmp->smoother = ast_smoother_new(CAPI_MAX_B3_BLOCK_SIZE);
      |                   ^~~~~~~~~~~~~~~~
chan_capi.c:8084:17: warning: assignment to 'struct ast_smoother *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 8084 |   tmp->smoother = ast_smoother_new(CAPI_MAX_B3_BLOCK_SIZE);
      |                 ^
chan_capi.c: At top level:
chan_capi.c:8220:15: warning: initialization of 'struct ast_channel * (*)(const char *, struct ast_format_cap *, const struct ast_assigned_ids *, const struct ast_channel *, const char *, int *)' from incompatible pointer type 'struct ast_channel * (*)(const char *, int,  const struct ast_channel *, void *, int *)' [-Wincompatible-pointer-types]
 8220 |  .requester = pbx_capi_request,
      |               ^~~~~~~~~~~~~~~~
chan_capi.c:8220:15: note: (near initialization for 'capi_tech.requester')
chan_capi.c:8228:10: warning: initialization of 'int (*)(struct ast_channel *, const char *, int)' from incompatible pointer type 'int (*)(struct ast_channel *, char *, int)' [-Wincompatible-pointer-types]
 8228 |  .call = pbx_capi_call,
      |          ^~~~~~~~~~~~~
chan_capi.c:8228:10: note: (near initialization for 'capi_tech.call')
chan_capi.c:8233:3: error: 'const struct ast_channel_tech' has no member named 'bridge'
 8233 |  .bridge = pbx_capi_bridge,
      |   ^~~~~~
chan_capi.c:8233:12: warning: initialization of 'int (*)(struct ast_channel *, int,  struct ast_frame *)' from incompatible pointer type 'enum ast_bridge_result (*)(struct ast_channel *, struct ast_channel *, int,  struct ast_frame **, struct ast_channel **, int)' [-Wincompatible-pointer-types]
 8233 |  .bridge = pbx_capi_bridge,
      |            ^~~~~~~~~~~~~~~
chan_capi.c:8233:12: note: (near initialization for 'capi_tech.write_stream')
chan_capi.c:8238:17: warning: initialization of 'int (*)(const char *)' from incompatible pointer type 'int (*)(void *)' [-Wincompatible-pointer-types]
 8238 |  .devicestate = pbx_capi_devicestate,
      |                 ^~~~~~~~~~~~~~~~~~~~
chan_capi.c:8238:17: note: (near initialization for 'capi_tech.devicestate')
chan_capi.c: In function 'conf_interface':
chan_capi.c:8596:8: warning: implicit declaration of function 'ast_cdr_amaflags2int' [-Wimplicit-function-declaration]
 8596 |    y = ast_cdr_amaflags2int(v->value);
      |        ^~~~~~~~~~~~~~~~~~~~
In file included from chan_capi.h:48,
                 from chan_capi.c:32:
chan_capi_fmt.h:242:68: warning: implicit declaration of function 'ast_parse_allow_disallow'; did you mean 'cc_parse_allow_disallow'? [-Wimplicit-function-declaration]
  242 | #define cc_parse_allow_disallow(__a__, __b__, __c__, __d__, __e__) ast_parse_allow_disallow(__a__, __b__, __c__, __d__)
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.c:8690:4: note: in expansion of macro 'cc_parse_allow_disallow'
 8690 |    cc_parse_allow_disallow(&conf->prefs, &conf->capability, v->value, 1, cap);
      |    ^~~~~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'capi_eval_config':
chan_capi_fmt.h:222:29: error: 'AST_FORMAT_ULAW' undeclared (first use in this function); did you mean 'CC_FORMAT_ULAW'?
  222 | #define CC_FORMAT_ULAW      AST_FORMAT_ULAW
      |                             ^~~~~~~~~~~~~~~
chan_capi.c:8777:23: note: in expansion of macro 'CC_FORMAT_ULAW'
 8777 |     capi_capability = CC_FORMAT_ULAW;
      |                       ^~~~~~~~~~~~~~
In file included from chan_capi.h:27,
                 from chan_capi.c:32:
chan_capi.c: In function 'unload_module':
chan_capi.c:8850:2: error: 'AST_MODULE_SELF' undeclared (first use in this function); did you mean 'AST_MODULE_INFO'?
 8850 |  ast_module_user_hangup_all();
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.c:8883:4: warning: implicit declaration of function 'ast_smoother_free'; did you mean 'ast_std_free'? [-Wimplicit-function-declaration]
 8883 |    ast_smoother_free(i->smoother);
      |    ^~~~~~~~~~~~~~~~~
      |    ast_std_free
In file included from chan_capi.h:27,
                 from chan_capi.c:32:
chan_capi.c: In function 'load_module':
chan_capi.c:9009:2: error: 'AST_MODULE_SELF' undeclared (first use in this function); did you mean 'AST_MODULE_INFO'?
 9009 |  ast_register_application(commandapp, pbx_capicommand_exec, commandsynopsis, commandtdesc);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
chan_capi.c: In function 'pbx_capi_add_diva_protocol_independent_extension':
chan_capi.c:9096:32: error: invalid use of undefined type 'struct ast_channel'
 9096 |   if (cid_name == 0 && i->owner->cid.cid_name && *i->owner->cid.cid_name) {
      |                                ^~
chan_capi.c:9096:59: error: invalid use of undefined type 'struct ast_channel'
 9096 |   if (cid_name == 0 && i->owner->cid.cid_name && *i->owner->cid.cid_name) {
      |                                                           ^~
In file included from /usr/include/asterisk/asterisk.h:23,
                 from chan_capi.h:20,
                 from chan_capi.c:32:
chan_capi.c:9097:34: error: invalid use of undefined type 'struct ast_channel'
 9097 |   cid_name = ast_strdupa(i->owner->cid.cid_name);
      |                                  ^~
make[1]: *** [Makefile:198: chan_capi.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:3: build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2020-08-14T22:49:29Z

Finished
--------


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: armhf
Build Type: any
Build-Space: 1568
Build-Time: 15
Distribution: bullseye-staging
Fail-Stage: build
Host Architecture: armhf
Install-Time: 324
Job: asterisk-chan-capi_1.1.6-1
Machine Architecture: armhf
Package: asterisk-chan-capi
Package-Time: 405
Source-Version: 1.1.6-1
Space: 1568
Status: attempted
Version: 1.1.6-1
--------------------------------------------------------------------------------
Finished at 2020-08-14T22:49:29Z
Build needed 00:06:45, 1568k disk space