[OpenIndiana-discuss] "strange" linking error

Richard Lowe richlowe at richlowe.net
Thu Mar 7 18:29:49 UTC 2013


This looks a lot like: https://www.illumos.org/issues/3436  I have no
idea whether that fix is in OpenIndiana.  One workaround is to stop
using ld -r.

I have no idea what your build process is doing though, because it
appears to believe it's building an archive library, but is using ld
-r, so is actually building a relocatable object with a name ending
'.a'.  Someone, somewhere, is very confused...

-- Rich


2013/3/7 Apostolos Syropoulos <asyropoulos at yahoo.com>:
> 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
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the OpenIndiana-discuss mailing list