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).