Linker error: unresolvable relocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This does not seem to resolve the problem.

Brunner, Brian T. schreef op 20/11/2014 15:44:
> In your linker command, change your $(LIBS) or whatever to $(LIBS) 
> $(LIBS).  Listing libraries multiple times does no harm, and allows 
> circular dependencies to be resolved.
> ------------------------------------------------------------------------
> *From:* pjsip [pjsip-bounces at lists.pjsip.org] on behalf of David 
> Desopper [david.desopper at live.be]
> *Sent:* Thursday, November 20, 2014 9:10 AM
> *To:* pjsip at lists.pjsip.org
> *Subject:* Re: [pjsip] Linker error: unresolvable relocation
>
> This is still not resolved, but now I'm thinking this has something to 
> do with the sequence of the linked libraries. I use the following order:
> pjsua
> pjsua2
> pjsip-ua
> pjsip-simple
> pjsip
> pjsdp
> pjmedia
> pjmedia-codec
> pjmedia-audiodev
> speex
> gsmcodec
> srtp
> libccodec
> resample
> pjnath
> pjlib-util
> pj
> m
> rt
> pthread
> asound
>
> Any thoughts? The unresolved symbol resides in 
> third_party/srtp/crypto/rng/ctr_prng.c
>
> Any help will be greatly appreciated.
>
> On 2014-10-28 14:42, David Desopper wrote:
>> Hello all,
>>
>> I'm trying to write a very small, very simple project using PJSIP in 
>> C++. But I'm already stuck on the first step, incorporating PJSIP in 
>> my project. I'm trying to build and compile on a Ubuntu 14.04 system 
>> using an arm-linux-gnueabihf-gcc cross compiler. For the coding 
>> itself I'm using Eclipse CDT, but the crosscompiling part is working 
>> in a normal order.
>>
>> I downloaded de pjproject-2.3 folder to my system, configured it with 
>> this command:
>>
>> |    ./configure --host=arm-linux-gnueabihf CFLAGS='--sysroot=/home/david/rpi/rootfs' LDFLAGS='--sysroot=/home/david/rpi/rootfs'
>> |
>>
>> The /home/david/rpi/rootfs folder is where I copied the rootsystem of 
>> my Pi. I then ran 'make dep' and 'make'. I copied all the static 
>> libraries *.a to my Eclipse project folder and added the libraries to 
>> the linker (-l).
>>
>> But when I want to build I get the following error:
>>
>> |Invoking: Cross G++ Linker
>> arm-linux-gnueabihf-g++ -L"/home/david/workspace/VoIPBenchmark" -L/home/david/rpi/rootfs/usr/lib -L/home/david/rpi/rootfs/usr/lib/arm-linux-gnueabihf --sysroot=/home/david/rpi/rootfs/ -o "VoIPBenchmark"  ./src/SipImplemantation.o ./src/SipImplementationPJ.o ./src/Timer.o  ./main.o   -lpjsua2-arm-unknown-linux-gnueabihf -lpjsua-arm-unknown-linux-gnueabihf -lpjsip-ua-arm-unknown-linux-gnueabihf -lpjsip-simple-arm-unknown-linux-gnueabihf -lpjsip-arm-unknown-linux-gnueabihf -lpjsdp-arm-unknown-linux-gnueabihf -lpjmedia-audiodev-arm-unknown-linux-gnueabihf -lportaudio-arm-unknown-linux-gnueabihf -lpjmedia-codec-arm-unknown-linux-gnueabihf -lpjmedia-arm-unknown-linux-gnueabihf -lspeex-arm-unknown-linux-gnueabihf -lgsmcodec-arm-unknown-linux-gnueabihf -lsrtp-arm-unknown-linux-gnueabihf -lilbccodec-arm-unknown-linux-gnueabihf -lresample-arm-unknown-linux-gnueabihf -lpjnath-arm-unknown-linux-gnueabihf -lpjlib-util-arm-unknown-linux-gnueabihf -lpj-arm-unknown-linux-gnueabihf -lpthread -lm -lrt
>>
>> -lasound -llinphone
>> /home/david/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: /home/david/workspace/VoIPBenchmark/libsrtp-arm-unknown-linux-gnueabihf.a(ctr_prng.o)(.text+0x8c): unresolvable R_ARM_ABS32 relocation against symbol `ctr_prng'
>> /home/david/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: error: ld returned 1 exit status
>> make: *** [VoIPBenchmark] Error 1
>> |
>>
>> I googled some and tried to add -fPIC to the CFLAG in the ./configure 
>> step above, recopied the libraries, but without result. Does anyone 
>> know what this message is saying me, and better yet, knows a solution?
>>
>>
>>
>>
>> _______________________________________________
>> Visit our blog:http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------------------------------------------------------------- 
>
>
> Confidentiality Requirement: This communication, including any 
> attachment(s), may contain confidential information and is for the 
> sole use of the intended recipient(s). If you are not the intended 
> recipient, you are hereby notified that you have received this 
> communication in error and any unauthorized review, use, disclosure, 
> dissemination, distribution or copying of it or its contents is 
> strictly prohibited.  If you have received this communication in 
> error, please notify the sender immediately by telephone or e-mail and 
> destroy all copies of this communication and any attachments.
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141121/b33cb062/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux