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 <[email protected]>: > 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 > [email protected] > http://openindiana.org/mailman/listinfo/openindiana-discuss ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
