[Home]

Summary:ASTERISK-29739: Add compiler options for FreeBSD
Reporter:N A (InterLinked)Labels:
Date Opened:2021-11-14 11:42:19.000-0600Date Closed:
Priority:MinorRegression?
Status:Waiting for Feedback/In ProgressComponents:General
Versions:18.8.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:FreePBX maintains a set of ports that can be used to get Asterisk to correctly compile on FreeBSD.

Many of these are trivially incorporatable into Asterisk using a compiler option, which prevents these from lagging behind or falling out of date or otherwise becoming obsolete. The current trajectory is try to get these incorporated natively.

<links to code removed>

One example is libcrypt which causes linking to fail at the end. Asterisk fails to link without specifying ASTLDFLAGS=-lcrypt main.

Another example (currently hindering my installs), is SRTP issues cause pjproject to fail to compile:

{noformat}
checking for embedded jansson (may have to download)... configuring
checking for bundled jansson... yes
checking for embedded pjproject (may have to download)... configuring
[pjproject]  Rebuilding
[pjproject]  Configuring with --prefix=/opt/pjproject --disable-speex-codec --disable-speex-aec --disable-bcg729 --disable-gsm-codec --disable-ilbc-codec --disable-l16-codec --disable-g722-codec --disable-g7221-codec --disable-opencore-amr --disable-silk --disable-opus --disable-video --disable-v4l2 --disable-sound --disable-ext-sound --disable-sdl --disable-libyuv --disable-ffmpeg --disable-openh264 --disable-ipp --disable-libwebrtc --without-external-pa --with-external-srtp --disable-resample --disable-g711-codec
aconfigure: error: Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths
gmake: *** [Makefile:129: source/build.mak] Error 1
failed
configure: Unable to configure third-party/pjproject
configure: error: Re-run the ./configure command with 'NOISY_BUILD=yes' appended to see error details.
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2021-11-14 11:42:20.677-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Sean Bright (seanbright) 2021-11-15 08:52:09.688-0600

Please update this issue with the compilation errors you are experiencing on FreeBSD. If you want to attach a build log showing the failures that would be fine.

By: Sean Bright (seanbright) 2021-11-15 10:39:22.236-0600

I don't see how the patches you have on Gerrit could resolve this issue. Can you please post the errors you are receiving that are fixed by the patches you have uploaded to Gerrit?

By: N A (InterLinked) 2021-11-15 10:45:58.791-0600

I don't think these *specific* patches are related - they just happen to be in the port tree. Someone at FreeBSD probably can explain better than I.

As far as the SRTP thing, I am not quite sure which patch, if any, would address that, but it does seem to replicate on several systems. The FreeBSD full package, of course, supposedly installs without issue.

Basically, the SRTP issues I don't have a solution for yet, but there is the build log (above), and these other two I don't have a build log for at present, but there are those patches. How should we proceed?

By: Sean Bright (seanbright) 2021-11-15 10:52:53.168-0600

bq. Someone at FreeBSD probably can explain better than I.

You're the one submitting them for review - you need to be able to explain it. If you don't even know what they do then why are they here?