@brackenhill-mob Upon further investigation it seems like archlinux c-client does not include imap/linkage.c. You can manually build a package that includes it like this (maybe the paths might not be right, but you should be able to follow along):
mkdir -p ~/builds
cd ~/builds
git clone --single-branch -b packages/imap https://github.com/archlinux/svntogit-packages.git ~/builds/c-client
cd ~/builds/c-client/trunk
# Add the following line to PKGBUILD at the end of the `package_c-client` function:
# install -D -m644 c-client/c-client.a $pkgdir/usr/lib/c-client.a
makepkg
sudo pacman -U c-client-2007f-*.tar.xz
The last line installs the newly build package including the linkage.c file.
I had to change the PKGBUILD of the asterisk package, too:
Replace
./menuselect/menuselect --disable BUILD_NATIVE
with
./menuselect/menuselect --disable BUILD_NATIVE --enable app_voicemail_imap
I guess as long as getting imap/linkage.c is a manual process it won't be possible for the asterisk package to officially enable the IMAP support.
This has been added as a bug report: https://bugs.archlinux.org/task/69016
Pinned Comments
caleb commented on 2020-02-22 06:10
PSA: I've started hosting this and all its dependencies as prebuilt packages (x86_86 only) in my repository for those that want to install them using
pacman
without messing around with building from the AUR.