linking problem on Solaris 2.5.1

Jim Blandy (jimb@red-bean.com)
Tue, 26 Aug 1997 18:47:44 -0500

Does the link work if you omit -lqt from the command line?

>When trying to install guile-tcltk, I am getting this error on
>
>SunOS element 5.5.1 Generic_103640-04 sun4u sparc SUNW,Ultra-1
>
>and I didn't get in on a Linux i586 machine. Any hints?
>
>/usr/ccs/bin/ld -G -z text -h libgtcltk.so.0 -o .libs/libgtcltk.so.0.0.0 guile-tcl.lo guile-tk.lo gtcltk-module.lo -ltcl7.5 -ltk4.1 -ltcl7.5 -lguile -lqt -lnsl -lsocket -ldl -lm -lX11 -L/user/bakicale/hsnp/install/lib -L/usr/openwin/lib
>Text relocation remains referenced
> against symbol offset in file
>abort 0x74 /user/bakicale/hsnp/install/lib/libqt.a(qt.o)
>qt_vstart 0x48 /user/bakicale/hsnp/install/lib/libqt.a(qt.o)
>qt_vstart 0x44 /user/bakicale/hsnp/install/lib/libqt.a(qt.o)
>qt_error 0x9c /user/bakicale/hsnp/install/lib/libqt.a(qtmds.o)
>qt_error 0x5c /user/bakicale/hsnp/install/lib/libqt.a(qtmds.o)
>ld: fatal: relocations remain against allocatable but non-writable sections
>gmake: *** [libgtcltk.la] Error 1