Debian 10 with kernel 4.19.235-1. compiling the full driver with the following command has errors.
./Setup builddeb --silent --with-zaptel=/usr/src/dahdi-linux --with-linux=/usr/src/linux-headers --protocols=FR-CHDLC-PPP-MFR-MPROT-X25-AFT_TE1-AFT_TE3-ADSL-ATM-TDM
Note that the --with-linux directory /usr/src/linux-headers is the combination of the two debian headers packages, linux-headers-4.19.0-20-amd64 and linux-headers-4.19.0-20-common. This was required to compile the TDM driver.
see attached for full details
setup_drv_compile.tgz (3.8 KB)