[OpenIndiana-discuss] "strange" linking error

Apostolos Syropoulos asyropoulos at yahoo.com
Thu Mar 7 13:31:06 UTC 2013


Hello,

I have downloaded the latest version of live555 (http://www.live555.com/) and
I tried to compile it using the config-solaris-64bit configuration. The compilation
process tries to create 4 static libraries which are created with a command of
the form:

ld -olibliveMedia.a -L. -64 -r -dn \
    Media.o MediaSource.o FramedSource.o ....

Three our of four libraries are created with no problem but for one linking fails
and gives

ld: fatal: relocation error: R_AMD64_64: file AVIFileSink.o: section [40].rela.eh_frame: symbol .text._ZN16SubsessionBufferD2Ev (section): symbol has been discarded with discarded section: [16].text._ZN16SubsessionBufferD2Ev
ld: fatal: relocation error: R_AMD64_64: file AVIFileSink.o: section [40].rela.eh_frame: symbol .text._ZN16SubsessionBufferD0Ev (section): symbol has been discarded with discarded section: [18].text._ZN16SubsessionBufferD0Ev
make[1]: *** [libliveMedia.a] Error 1


Before posting I used Google to see whether someone has experienced a similar
problem, but I could not find anything. So, I am wondering whether anyone
could provide some help and/or assistance.

BTW, creating an archive with ar cru and ranlib works but the resulting
library is useless. 


Regards,

Apostolos

 
----------------------
Apostolos Syropoulos
Xanthi, Greece


More information about the OpenIndiana-discuss mailing list