[Home]

Summary:DAHTOOL-00086: dahdi-tools fails to build against musl due to backtrace() (failure to include execinfo.h)
Reporter:Jaco Kroon (jkroon)Labels:patch
Date Opened:2020-03-23 03:54:32Date Closed:
Priority:MinorRegression?
Status:Triage/NewComponents:General
Versions:3.1.0 Frequency of
Occurrence
Related
Issues:
Environment:Gentoo Linux with musl libc.Attachments:( 0) dahdi-tools-3.1.0-cplusplusexternc.patch
( 1) dahdi-tools-3.1.0-execinfo.patch
Description:The musl team on Gentoo picked up that dahdi-tools 3.1.0 won't compile against musl.  Note I've marked affected version as 3.0.0 due to lack of 3.1.0 on the drop-down.

The issue is simply that execinfo.h isn't available.  I've engaged them regarding possible solutions and will provide a patch soonest possible.
Comments:By: Jaco Kroon (jkroon) 2020-03-28 16:03:07.486-0500

adds configure.ac check for execinfo.h and simply disable ability to print backtrace in the absence of execinfo.h.

configure itself is not updated by the patch, only configure.ac.

By: Jaco Kroon (jkroon) 2020-03-28 16:05:07.366-0500

__BEGIN_DECLS and __END_DECLS are seemingly glibc specific (musl at least doesn't follow this).

Both patches is required to build successfully with musl.