Asterisk 15.1.2 & pjproject-2.6

Greetings! :slight_smile:

I try to install Asterisk 15.1.2 on the FreeBSD 11.1

cd /home/jora_cornev
wget  http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-15.1.2.tar.gz
tar -zxvf asterisk-15.1.2.tar.gz
cd asterisk-15.1.2
./configure

But, in the first step arise errors:

./configure

checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking whether char is unsigned… no
checking for uname… /usr/bin/uname
checking for g++… no
checking for c++… c++
checking whether we are using the GNU C++ compiler… yes
checking whether c++ accepts -g… yes
checking how to run the C preprocessor… cc -E
checking how to run the C++ preprocessor… c++ -E
checking for a sed that does not truncate output… /usr/bin/sed
checking for egrep… grep -E
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for gawk… no
checking for mawk… no
checking for nawk… nawk
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking for ranlib… ranlib
checking for GNU make… gmake
checking for egrep… (cached) /usr/bin/grep -E
checking for strip… strip
checking for ar… ar
checking for bison… :
checking for cmp… /usr/bin/cmp
checking for cat… /bin/cat
checking for flex… /usr/bin/flex
checking for grep… (cached) /usr/bin/grep
checking for python… :
checking for find… /usr/bin/find
checking for compress… /usr/bin/compress
checking for basename… /usr/bin/basename
checking for dirname… /usr/bin/dirname
checking for sh… /bin/sh
checking for ln… /bin/ln
checking for doxygen… :
checking for dot… :
checking for wget… /usr/local/bin/wget
checking for curl… :
checking for rubber… :
checking for catdvi… :
checking for kpsewhich… :
checking for xmllint… :
checking for xmlstarlet… :
checking for bash… :
checking for git… :
checking for alembic… :
checking for bzip2… /usr/bin/bzip2
checking for tar… /usr/bin/tar
checking for patch… /usr/bin/patch
checking for sed… (cached) /usr/bin/sed
checking for nm… /usr/bin/nm
checking for ldconfig… /sbin/ldconfig
checking for sha1sum… /home/jora_cornev/asterisk-15.1.2/build_tools/sha1sum-sh
checking for openssl… /usr/bin/openssl
checking for bison that supports parse-param…
checking for soxmix… no
checking for md5… md5
checking for a sed that does not truncate output… (cached) /usr/bin/sed
checking whether cc is Clang… yes
checking whether Clang needs flag to prevent “argument unused” warning when linking with -pthread… no
checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads… no
checking for PTHREAD_PRIO_INHERIT… yes
checking for RAII support… checking for clang -fblocks… yes
checking for clang strsep/strcmp optimization… prevent use of __string2_1bptr_p / strsep / strcmp from bits/string2.h
checking for embedded pjproject (may have to download)… configuring
[pjproject] Verifying /tmp/pjproject-2.6.tar.bz2
[pjproject] Verify successful
[pjproject] Unpacking /tmp/pjproject-2.6.tar.bz2
[pjproject] Applying patches
1 out of 1 hunks failed–saving rejects to pjsip/src/pjsip/sip_transaction.c.rej
gmake: *** [Makefile:130: source/.unpacked] 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.

In the next step, I run ./configure with NOISY_BUILD=yes
If correctly understand, the LOG installation information locate in the config.log:
https://pastebin.com/fj9kTb4Z
https://pastebin.com/raw/fj9kTb4Z

Does anyone know how to fix this ?
Thanks in advance!

FreeBSD is not a platform used by many in the Asterisk project and not supported by the normal community. It is possible that things don’t work properly currently on it. In this case it appears as though a patch failed (that does work on Linux).