[asterisk-dev] beta2 compile failure

Paul Albrecht palbrecht at glccom.com
Tue Sep 23 09:15:45 CDT 2014


On Sep 22, 2014, at 3:47 PM, Joshua Colp <jcolp at digium.com> wrote:

> Paul Albrecht wrote:
>> 
>> Asterisk 13 beta2 compile fails:
>> 
>> .
>> .
>> .
>> [CC] chan_pjsip.c -> chan_pjsip.o
>> [CC] pjsip/dialplan_functions.c -> pjsip/dialplan_functions.o
>> [LD] chan_pjsip.o pjsip/dialplan_functions.o -> chan_pjsip.so
>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libpjsip-ua-x86_64-pc-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/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libpjsip-ua-x86_64-pc-linux-gnu.a:
>> could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> make[1]: *** [chan_pjsip.so] Error 1
>> make: *** [channels] Error 2
> 
> Your environment does not seem have a suitable pjproject. It should not 
> be trying to link in any static. Did you follow the wiki to build 
> pjproject? Do you have an old install as well as a new?

Oops, my bad, I didn’t setup pjproject. However, the configure script didn’t complain so I assumed I was good to go and proceeded to make asterisk.  Shouldn’t the configure script catch this and not allow someone to proceed to make? Thought that was a function of the configure script, that is, it verifies software dependancies before the build step.

Another thing … the README int the top level directory doesn’t seem to have been updated in a while and doesn’t mention pjproject. If there’s an external requirement like pjproject shouldn’t that go in the README? 

> 
> -- 
> 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 --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140923/9461a7bb/attachment.html>


More information about the asterisk-dev mailing list