[Home]

Summary:DAHTOOL-00095: xtalk_sync: multiple definition of member
Reporter:N A (InterLinked)Labels:
Date Opened:2022-03-19 04:48:13Date Closed:
Priority:BlockerRegression?
Status:Triage/NewComponents:General
Versions:3.1.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:This started popping up sometime within the last week or prior and I have been unable to compile DAHDI Tools since. I get as far as this, with the patch in DAHTOOL-94 + all next branch patches; otherwise, it fails prior to this:

{noformat}
 CCLD     xtalk_raw_test
 CC       xtalk_send-xtalk_send.o
 CCLD     xtalk_send
make[3]: Leaving directory '/usr/src/dahdi-tools-3.1.0/xpp/xtalk'
make[3]: Entering directory '/usr/src/dahdi-tools-3.1.0/xpp'
 CC       astribank_tool-astribank_tool.o
 CC       libastribank_la-astribank.lo
 CC       libastribank_la-mpptalk.lo
 CC       libastribank_la-astribank_license.lo
 CCLD     libastribank.la
 CCLD     astribank_tool
/usr/bin/ld: ./.libs/libastribank.a(libxtalk_la-xtalk_sync.o):/usr/src/dahdi-tools-3.1.0/xpp/xtalk/xtalk_sync.c:63: multiple definition of `member                                                   s'; ./.libs/libastribank.a(libastribank_la-mpptalk.o):/usr/src/dahdi-tools-3.1.0/xpp/mpptalk.c:240: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:747: astribank_tool] Error 1
make[3]: Leaving directory '/usr/src/dahdi-tools-3.1.0/xpp'
make[2]: *** [Makefile:1061: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/dahdi-tools-3.1.0/xpp'
make[1]: *** [Makefile:1138: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/dahdi-tools-3.1.0'
make: *** [Makefile:681: all] Error 2
{noformat}
Comments:By: N A (InterLinked) 2022-04-01 07:08:24.358-0500

It appears this may be kernel related.

I was able to more or less install DAHDI fine on the following (output of uname -a):
Linux voip 5.10.0-0.bpo.9-cloud-amd64 (Debian 10)

It also works on:
Linux debian10 4.19.0-19-amd64 (Debian 10)

However, it fails on:
Linux debian11 5.10.0-12-amd64 (Debian 11)

DAHDI *used* to compile fine on Debian 11 but maybe something changed which is now causing the issue...

By: Harald Welte (laforge) 2022-04-24 11:24:19.768-0500

Unfortuantely Digium appears to have given up on maintaining DAHDI (kernel and tools).  And to make things worse, they ignore pull requests and issues filed here.

At osmocom, we continuously fix dahdi bugs and make it build against modern Linux distributions and kernels.  The bug you describe has been fixed back in february in https://gerrit.osmocom.org/c/dahdi-tools/+/27273  - feel free to cherry pick it to your local tree or to switch to https://gitea.osmocom.org/retronetworking/dahdi-tools

By: N A (InterLinked) 2022-04-24 20:54:17.852-0500

This does work. Thanks Harald! Yes, I've cherry picked it for now, I'm hopeful that with recent nudges, Sangoma will get its act together soon here...