[gs-bugs] [Bug 691315] 'make so' fails with "ld: fatal: relocations remain against allocatable but non-writable sections"

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue May 18 03:31:45 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691315

--- Comment #1 from Hin-Tak Leung <hintak at ghostscript.com> 2010-05-18 03:31:45 UTC ---
(In reply to comment #0)
> In trying to "make so" the linking fails.
> 
> I changed the link line for the last step and got it to work:
> 
> diff soobj/ldt.tr soobj/foo.tr
> 1c1
> < gcc -shared -Wl,-soname=libgs.so.8 -o ./bin/../sobin/libgs.so.8.71
> ./obj/../soobj/gsromfs1.o ./obj/../soobj/gs.o ./obj/../soobj/gp_getnv.o \
> ---
> > gld -shared -soname=libgs.so.8 -o ./bin/../sobin/libgs.so.8.71 ./obj/../soobj/gsromfs1.o ./obj/../soobj/gs.o ./obj/../soobj/gp_getnv.o \

Those two are equivalent if your gcc is built to use GNU ld. I suspect that
your gcc was built against the Sun linker, rather than GNU ld, so I would like
the output of your "gcc -v".

Note that you have to do "./configure --enable-dynamic" for "make so" to work
at all. (this was an oversight in the documentation and has been corrected
recently.)

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list