Compiling DAHDI on Ubuntu 20.04.1

  • kernel version is 5.4.0-66-generic

I tried to make dahdi-3.1.0 and make failed with linux/pci-asm.h not found

Then using dahdi-3.0.0 make failed with

- make[2]: Entering directory '/usr/src/linux-headers-5.4.0-66-generic'
make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-66-generic'
make[1]: *** [Makefile:74: modules] Error 2

Hola creo que te falta algĂșn compilador, yo lo instalo asĂ­:
apt-get install unixodbc tdsodbc default-libmysqlclient-dev dh-autoreconf gcc g++ -y
apt-get install wget libnewt-dev linux-headers-$(uname -r) binutils git -y

apt install debconf-utils -y

apt-get install libtool autoconf automake mlocate sqlite unzip git gnupg2 curl -y
apt-get install libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev -y
apt-get install pkg-config build-essential libjansson-dev libxml2-dev uuid-dev subversion -y
apt-get install libmysqlclient-dev sox mpg123 -y
apt-get install unixodbc-dev -y
apt-get install jq lame -y
apt-get install php php-mysql -y

para luego no tener problemas.

Well, first thing I did was to download asterisk and then run the install_prereq script to ensure the prerequisites are installed.

I will try as you said. Which versions of DAHDI & Asterisk and Linux are you using?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.