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 ? Best regards [1] Original error message was localised. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170110/e7b4afa0/attachment.html>
Anton Teyhrib
2017-Jan-10 04:30 UTC
[asterisk-users] Can't comile bundled PJSIP on CentOS 7
Maybe libsrtp package is missing on your machine? 10 ???. 2017 ?. 5:16 AM ???????????? "Olivier" <oza.4h07 at gmail.com> ???????:> 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 ? > > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170110/e552d0f0/attachment.html>
On Tuesday 10 Jan 2017, Olivier 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-gnuYou probably need to install a package called something like "srtp-devel" or "libsrtp-devel". (I'm not certain of the exact package name on a Fedora-like system, as I'm coming from Ubuntuland ;) ) Re-run the configure script after installing it. Asterisk always used (pre-10!) to be distributed with a script called "install_prereq" which was meant to install all the necessary packages for a full install with everything, at least on a on Fedora-like or Debian-like distro; not sure if this is still included anymore, as it seemed a bit flaky. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .
2017-01-10 5:30 GMT+01:00 Anton Teyhrib <teihrib at gmail.com>:> Maybe libsrtp package is missing on your machine? >libsrtp-devel was installed and I could check it was installed with menuselect (Resources Modules/res_srtp)> 10 ???. 2017 ?. 5:16 AM ???????????? "Olivier" <oza.4h07 at gmail.com> > ???????: > >> 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 ? >> >> 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 >> > > -- > _____________________________________________________________________ > -- 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/20170110/e2d0ec90/attachment.html>
Historically, I didn't use "install_prereq" but I also used it yesterday. As make fails with "[LD] libasteriskpj.o -> libasteriskpj.so.2" which is the first of its "kind", I still wonder if issue comes from libsrtp somehow, or from a missing option in ./configure (such as --prefix). 2017-01-10 10:31 GMT+01:00 A J Stiles <asterisk_list at earthshod.co.uk>:> On Tuesday 10 Jan 2017, Olivier 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 > > You probably need to install a package called something like "srtp-devel" > or > "libsrtp-devel". (I'm not certain of the exact package name on a > Fedora-like > system, as I'm coming from Ubuntuland ;) ) Re-run the configure script > after > installing it. > > Asterisk always used (pre-10!) to be distributed with a script called > "install_prereq" which was meant to install all the necessary packages for > a > full install with everything, at least on a on Fedora-like or Debian-like > distro; not sure if this is still included anymore, as it seemed a bit > flaky. > > -- > AJS > > Note: Originating address only accepts e-mail from list! If replying off- > list, change address to asterisk1list at earthshod dot co dot uk . > > -- > _____________________________________________________________________ > -- 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/20170110/7a28d4b5/attachment.html>
George Joseph
2017-Jan-10 13:24 UTC
[asterisk-users] Can't comile bundled PJSIP on CentOS 7
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170110/e0933bcd/attachment.html>
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>