Hi,

I've just installed hugs 1.4 beta using the configuration parameters

 ./configure --prefix=/public/languages/hugs-1.4beta --with-readline --with-plugins

on Solaris 2.5 using X11R6.1 and gcc 2.7.2. During >>make install<< I
got an error while executing the command:

 gcc -shared -nostdlib  -o Xlib.so Xlib.o -L/public/lib -R /public/lib  -lX11  -lnsl 
-lsocket

The error message was:
--------
Text relocation remains                       referenced
    against symbol                  offset      in file
<unknown>                           0x598       Xlib.o
...
ld: fatal: relocations remain against allocatable but non-writable sections
--------

This is due to the fact that compilation of Xlib.c lacked the -fPIC
parameter. After changing a line in the Makefile from
-------------
Xlib$(OBJ)      : Xlib.c $(PLUGIN_INCLUDES)
                  $(CC) $(CFLAGS) $(X_CFLAGS) Xlib.c -c
-------------
to
-------------
Xlib$(OBJ)      : Xlib.c $(PLUGIN_INCLUDES)
                  $(CC) $(CFLAGS) -fPIC $(X_CFLAGS) Xlib.c -c
-------------

everything was OK. You may want to change that in the next release. I'm
not sure whether this corresponds only to gcc.

Bye,

Nils
--
Nils Ellmenreich ___________________ http://www.uni-passau.de/~ellmenre
[EMAIL PROTECTED], Dept. of Computer Science, Univ. of Passau, Germany

Reply via email to