Can't compile dahdi on Ubuntu 14.04.4 Server

Use manual from FreePBX. http://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+Ubuntu+Server+14.04.2+LTS

Get error:
collect2: error: ld returned 1 exit status

Output details:
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz tar xvfz dahdi-linux-complete-current.tar.gz rm -f dahdi-linux-complete-current.tar.gz cd dahdi-linux-complete-* make all ... hdlcstress.c: In function ‘send_packet’: hdlcstress.c:115:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, buf, len + 2); ^ hdlcstress.c:142:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, outbuf, pos); ^ CCLD hdlcstress CC hdlctest.o CCLD hdlctest CC hdlcgen.o CCLD hdlcgen CC hdlcverify.o CCLD hdlcverify CC dahdi_test.o CCLD dahdi_test CC dahdi_maint.o CC version.o CCLD dahdi_maint CC dahdi_monitor.o CCLD dahdi_monitor CC dahdi_cfg.o CCLD dahdi_cfg ./.libs/libtonezone.so: undefined reference tosin’
./.libs/libtonezone.so: undefined reference to cos' ./.libs/libtonezone.so: undefined reference topow’
collect2: error: ld returned 1 exit status
make[3]: *** [dahdi_cfg] Ошибка 1
make[3]: Выход из каталога /usr/src/dahdi-linux-complete-2.11.0+2.11.0/tools' make[2]: *** [all-recursive] Ошибка 1 make[2]: Выход из каталога/usr/src/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[1]: *** [all] Ошибка 2
make[1]: Выход из каталога `/usr/src/dahdi-linux-complete-2.11.0+2.11.0/tools’
make: *** [all] Ошибка 2

`

Howdy,

There’s a new 2.11.1-rc1 tag that should fix this problem. If you’re eager to pull it out of Git, you can go ahead and do that now [1], or you can wait a few days and it should show up on the downloads site [2].

1 - https://github.com/asterisk/dahdi-tools & https://github.com/asterisk/dahdi-linux
2 - http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/

1 Like

thx, I compiled from git, but downloads site is preferable.