[Home]

Summary:ASTERISK-27641: BuildSystem: Enable Better Backtraces in FreeBSD.
Reporter:Alexander Traud (traud)Labels:patch
Date Opened:2018-01-30 09:29:58.000-0600Date Closed:2018-03-19 10:03:50
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:13.19.0 Frequency of
Occurrence
Related
Issues:
Environment:FreeBSD 11.1Attachments:( 0) FreeBSD_enable_better-backtraces.patch
Description:{{./configure}} does not detect the function _dladdr(.)_, because it asks for the shared library _libdl.so_ which is not available on FreeBSD.

Attached is a fix for those using FreeBSD and do not use the Asterisk port but built Asterisk themselves: {code}fetch --no-verify-peer https://issues.asterisk.org/jira/secure/attachment/57050/FreeBSD_enable_better-backtraces.patch
patch -p0 <./FreeBSD_enable_better-backtraces.patch
./bootstrap.sh
./configure{code}It is a specific fix for FreeBSD, which cannot be added to Asterisk in general. The correct approach would be to change {{configure.ac}}, either by adding yet another state or by re-writing that whole part.

Hopefully someone actually using Better Backtraces, shares his time to do this change here.
Comments:By: Friendly Automation (friendly-automation) 2018-03-19 10:03:51.356-0500

Change 8489 merged by Jenkins2:
BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD.

[https://gerrit.asterisk.org/8489|https://gerrit.asterisk.org/8489]

By: Friendly Automation (friendly-automation) 2018-03-19 10:11:29.007-0500

Change 8491 merged by Jenkins2:
BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD.

[https://gerrit.asterisk.org/8491|https://gerrit.asterisk.org/8491]

By: Friendly Automation (friendly-automation) 2018-03-19 11:14:56.496-0500

Change 8490 merged by George Joseph:
BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD.

[https://gerrit.asterisk.org/8490|https://gerrit.asterisk.org/8490]