@ad8jl I’m glad you go this working on x86. It seems there is some desire in the community to get ASL working on more recent versions of Debian. I have had this running on Raspberry Pi OS, 64bit (aarch64) Debian 11.6, kernel 5.15.32 for some time now, with my own source code modifications. Maybe I’ll message you to see if you want to collaborate on getting the ASL project up to speed with Bullseye. Below I’ll just put a couple of notes about things you ran into that I also ran into.
ke5gdb already did a patch to the Dahdi source for it to work on kernels 5.9 and above. See this pull request:Fixed compilation issues on 5.9+ kernel versions by ke5gdb · Pull Request #1 · AllStarLink/ASL-DAHDI · GitHub
I tried getting the admins to merge the pull request, but for some reason they were not convinced yet. If you could test the patch, mabye you want to add a comment or bump to that pull request, you can let them know that the patch works and would have helped you.
The approach I took here was to just do the research to see what the packages had been renamed to. I think this would be preferable to adding packages from a previous release. Here is what works for me on the Bullseye repo for installing build dependencies:
apt -y install quilt libreadline-dev libgsm1-dev libssl-dev libasound2-dev libpq-dev \
unixodbc-dev libpri-dev libvpb-dev libnewt-dev libsqlite3-dev libspeex-dev \
libspeexdsp-dev libcurl4-openssl-dev libpopt-dev libiksemel-dev freetds-dev libvorbis-dev \
libsnmp-dev libcap-dev libi2c-dev libjansson-dev build-essential libtonezone-dev \
git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy libusb-dev
You can let me know if this works for you.
If you want to try it, here is my branch that I build for my own aarch64 device: GitHub - encbar5/ASL-Asterisk at mydevelop
Looks like Artemia76 also attempted changes for this in the following pull request: Aarch64 portage by Artemia76 · Pull Request #35 · AllStarLink/ASL-Asterisk · GitHub
I ran into this problem as well, and have it in this commit on my repo: Kbuild change hostprogs-y to hostprogs · encbar5/ASL-DAHDI@4158740 · GitHub
I didn’t create a pull request, because as you note this syntax is compiler version dependent, so it only makes sense to merge this for a repo that’s dedicated to Debian 11 compatibility.
This just adds warnings to the compiler output but doesn’t modify code, right? I definitely didn’t add this to my build, so I’m just curious what prompted you to make this change, in case I’m missing something.
Again, nice work and thanks for sharing all your effort!