Ryan, Travis
2015-Sep-23 14:09 UTC
[asterisk-users] problems with PJSIP install on UBUNTU 14.04
Ok so now I'm getting this when doing a make in asterisk... travis at pcimphone1:~/downloads/asterisk-13.5.0$ make [LD] chan_pjsip.o pjsip/dialplan_functions.o -> chan_pjsip.so /usr/bin/ld: /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a(sip_inv.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[1]: *** [chan_pjsip.so] Error 1 make: *** [channels] Error 2> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] On Behalf Of Ryan, Travis > Sent: Wednesday, September 23, 2015 10:01 AM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU > 14.04 > > > > > -----Original Message----- > > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > > bounces at lists.digium.com] On Behalf Of Ryan, Travis > > Sent: Wednesday, September 23, 2015 9:55 AM > > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > > Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU > > 14.04 > > > > > > > > > > > -----Original Message----- > > > From: asterisk-users-bounces at lists.digium.com > > > [mailto:asterisk-users- bounces at lists.digium.com] On Behalf Of > > > Joshua Colp > > > Sent: Wednesday, September 23, 2015 9:39 AM > > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > > Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU > > > 14.04 > > > > > > Ryan, Travis wrote: > > > > I've built PJSIP a few months ago on a server that was 12.04 and > > > can't > > > > remember how I got past this same issue. I've looked at the links > > > I'll > > > > put below and the comments section where others had the issue, > but > > > > those tips aren't helping either. > > > > > > > > Basically everything seems to compile and install correctly, but > > > > then the "ldconfig -p | grep pj" doesn't show anything. So > > > > ldconfig when ran by itself isn't picking up on the install of > > > > pjsip. Also when going into the process of menuselect it shows > > > > that it's not available > > > as a resource. > > > > > > Do you have the pkg-config package installed? That is what the > build > > > system uses for finding the right stuff. > > > > > > Also what does the following show: > > > > > > ls /usr/lib/libpj*.so > > > ls /usr/local/lib/libpj*.so > > > > > > And what did you pass to the configure script for pjproject? > > > > > [Ryan, Travis] > > travis at pcimphone1:~$ ls /usr/lib/libpj*.so > > ls: cannot access /usr/lib/libpj*.so: No such file or directory > > travis at pcimphone1:~$ ls /usr/local/lib/libpj*.so > > ls: cannot access /usr/local/lib/libpj*.so: No such file or directory > > travis at pcimphone1:~$ ls /usr/lib/libpj*.so > > lib/ lib64/ > > travis at pcimphone1:~$ ls /usr/lib64/libpj*.so > > /usr/lib64/libpjlib-util.so /usr/lib64/libpjmedia-codec.so > > /usr/lib64/libpjmedia-videodev.so /usr/lib64/libpjsip-simple.so > > /usr/lib64/libpjsip-ua.so /usr/lib64/libpjsua2.so > > /usr/lib64/libpjmedia-audiodev.so /usr/lib64/libpjmedia.so > > /usr/lib64/libpjnath.so /usr/lib64/libpjsip.so > > /usr/lib64/libpj.so /usr/lib64/libpjsua.so > > > > > > As you can see it put them in the lib64 folder. I've done the command > > and recompiled so many times with the following attempts.... > > > > ./configure --prefix=/usr --enable-shared --disable-sound --disable- > > resample --disable-video --disable-opencore-amr CFLAGS='-O2 -DNDEBUG' > > ./configure > > ./configure --prefix=/usr > > ./configure --libdir=/usr/lib64 --prefix=/usr --enable-shared -- > > disable-sound --disable-resample --disable-video > > --disable-opencore-amr > > > > > Now for some reason they are showing after running the usual .configure > from the wiki. I swear to God it wasn't working last night. SMH [Ryan, > Travis] > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Joshua Colp
2015-Sep-23 14:12 UTC
[asterisk-users] problems with PJSIP install on UBUNTU 14.04
Ryan, Travis wrote:> Ok so now I'm getting this when doing a make in asterisk... > > travis at pcimphone1:~/downloads/asterisk-13.5.0$ make > [LD] chan_pjsip.o pjsip/dialplan_functions.o -> chan_pjsip.so > /usr/bin/ld: /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a(sip_inv.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC > /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status > make[1]: *** [chan_pjsip.so] Error 1 > make: *** [channels] Error 2It has picked up an install of pjproject which was not built with "--enable-shared". You need to remove all instances on your system to return it to a known state and then rebuild pjproject and install it. ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --enable-shared --with-external-speex --with-external-gsm --with-external-srtp --disable-sound --disable-resample --prefix=/usr Those are the options I use normally on Ubuntu 14.04. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Ryan, Travis
2015-Sep-23 14:50 UTC
[asterisk-users] problems with PJSIP install on UBUNTU 14.04
Ok that did it after I did the steps to completely remove everything and do a new install. Thanks!> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] On Behalf Of Joshua Colp > Sent: Wednesday, September 23, 2015 10:12 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] problems with PJSIP install on UBUNTU > 14.04 > > Ryan, Travis wrote: > > Ok so now I'm getting this when doing a make in asterisk... > > > > travis at pcimphone1:~/downloads/asterisk-13.5.0$ make > > [LD] chan_pjsip.o pjsip/dialplan_functions.o -> chan_pjsip.so > > /usr/bin/ld: > > /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a(sip_inv.o): > > relocation R_X86_64_32S against `.rodata' can not be used when making > > a shared object; recompile with -fPIC > > /usr/local/lib/libpjsip-ua-x86_64-unknown-linux-gnu.a: error adding > > symbols: Bad value > > collect2: error: ld returned 1 exit status > > make[1]: *** [chan_pjsip.so] Error 1 > > make: *** [channels] Error 2 > > It has picked up an install of pjproject which was not built with "-- > enable-shared". You need to remove all instances on your system to > return it to a known state and then rebuild pjproject and install it. > > ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --enable-shared --with- > external-speex --with-external-gsm --with-external-srtp --disable-sound > --disable-resample --prefix=/usr > > Those are the options I use normally on Ubuntu 14.04. > > -- > Joshua Colp > Digium, Inc. | Senior 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 -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users