[asterisk-users] Can't comile bundled PJSIP on CentOS 7

Olivier oza.4h07 at gmail.com
Thu Jan 12 06:28:16 CST 2017


I removed my /usr/src/asterisk-13.13.1 directory and rebuilt from scratch:
everything worked OK.

There must be a reason why previous attempts failed with libsrtp but my
knowledge of make and Asterisk building is too limited to allow me to
constructive findings
(which is very frustrating and rebuilding everything from scratch won't
help me to learn anything).

Thank you all very much for your previous help.


2017-01-10 14:24 GMT+01:00 George Joseph <gjoseph at digium.com>:

>
>
> On Mon, Jan 9, 2017 at 5:15 PM, Olivier <oza.4h07 at gmail.com> wrote:
>
>> Hello,
>>
>> I'm setting up an Asterisk 13.13.1 cluster on two CentOS boxes.
>>
>> I followed this:
>> cd /usr/src
>> wget  ... asterisk-13.13.1.tar.gz
>> tar zxf asterisk-13.13.1.tar.gz
>> cd asterisk-13.13.1
>> ASTERISK_CONFIGURE="--libdir=/usr/lib64 --prefix=/usr"
>> ./configure ${ASTERISK_CONFIGURE}  --with-pjproject-bundled
>> make menuselect (shows res-srtp is available)
>> make
>>
>> latest make command fails with (see [1]:
>>
>>    [GENERATE] libasteriskpj.exports
>>    [LD] libasteriskpj.o -> libasteriskpj.so.2
>> /bin/ld: cannot find -lsrtp-x86_64-unknown-linux-gnu
>>
>>
>> So I also build a simple VM box in which I also install CentOS and
>> Asterisk 13.3.1 but I could run the above instructions successfully.
>>
>>
>> Suggestions ?
>>
>
> Could you have had installed pjproject into the system locations
> previously?  Specifically, are there any libpj* files in /usr/lib64 or pj*
> files or directories in /usr/include?  If so, try uninstalling it before
> building --with-pjproject-bundled.  There may be a conflict.
>
> The newest versions of pjproject require libsrtp 2 which doesn't ship with
> most distributions so pjproject attempts to build it's own internal
> version.   Because we handle srtp in Asterisk itself not pjproject, we made
> a change to the bundled version of pjproject to not build that internal
> libsrtp.  If you look in third-party/pjproject/patches/config_site.h you
> should see "#define PJMEDIA_HAS_SRTP 0".   It's possible that when the
> bundled version is being built it's picking up something from the system
> directories it shouldn't and looking for the internal version of libsrtp
> which it didn't build.
>
> If removing the system pjproject fixes your issue, let me know and I'll
> open a ticket to look further at the conflict.
>
>
>
>
>
>
>
>
>
>
>
>>
>> Best regards
>>
>> [1] Original error message was localised.
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
>
> --
> George Joseph
> Digium, Inc. | Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170112/873d3698/attachment.html>


More information about the asterisk-users mailing list