Dear Hugs user, I am trying to install the SOE graphics library for Solaris, but I am having no success. Everything compiles fine, but at run-time I get an error:
ERROR "graphics-2.0.4/lib/x11/Xlib_StdDIS.hs" - Error while importing DLL "/.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/hugs/soe/graphics-2.0.4/lib/x11/Xlib_StdDIS.so": ld.so.1: runhugs: fatal: relocation error: file /usr/X11/lib/libX11.so.6.1: symbol authdes_create: referenced symbol not found <<<
First, I thought it was a dynamic linking problem, so I added "-B static" to linker flags, recompiled, and then I got the following error:
ERROR "graphics-2.0.4/lib/x11/Xlib.hs" - Error while importing DLL "/.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/hugs/soe/graphics-2.0.4/lib/x11/Xlib.so": ld.so.1: runhugs: fatal: relocation error: file /.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/hugs/soe/graphics-2.0.4/lib/x11/Xlib.so: symbol XAllPlanes: referenced symbol not found <<<
And then I gave up (I am not a Makefile hero). Anyone who has done this before who can help me? Thanks, /Koen. -- Koen Claessen http://www.cs.chalmers.se/~koen Chalmers University, Gothenburg, Sweden.
[quick reply - the ICSE deadline is tonight. If this brings no joy, I'll look into it more thoroughly tomorrow.]
Dear Hugs user, I am trying to install the SOE graphics library for Solaris, but I am having no success. Everything compiles fine, but at run-time I get an error:
/usr/X11/lib/libX11.so.6.1: symbol authdes_create: referenced symbol not found
This sounds familiar. IIRC, Solaris needs an additional library. I don't recall which one but you can find out by running: nm -A /usr/lib/*.so* /usr/X11R6/lib/*.so* 2> /dev/null | grep authdes_create Once you know which library, add the library to the link line. Suppose the above reported a library called /usr/lib/libauth.so.42, then you'd do this: make clean make LDFLAGS=-lauth
Anyone who has done this before who can help me?
I know I've answered this problem before (and we figured out exactly which library to use) but don't remember who I told the answer to so if it was you and you remember the fix, can you let Koen and I know? -- Alastair
In local.hugs-users, you wrote:
/usr/X11/lib/libX11.so.6.1: symbol authdes_create: referenced symbol not found
This sounds familiar. IIRC, Solaris needs an additional library. I don't recall which one but
Are you sure? I built hugs and the graphics package on our Sun and the HelloWorld-example runs out of the box (using the SunOS- option in the Makefile of graphics). Perhaps it is indeed a local problem. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
Koen Claessen wrote:
I am trying to install the SOE graphics library for Solaris, but I am having no success. Everything compiles fine, but at run-time I get an error:
ERROR "graphics-2.0.4/lib/x11/Xlib_StdDIS.hs" - Error while importing DLL "/.../chalmers.se/fs/cab/cs/work/proj/multi/home/src/hugs/soe/graphics-2.0.4/lib/x11/Xlib_StdDIS.so": ld.so.1: runhugs: fatal: relocation error: file /usr/X11/lib/libX11.so.6.1: symbol authdes_create: referenced symbol not found <<<
authdes_create is part of the Sun RPC API. On Linux/GNU, the function
is in libc itself; on other systems it may be in one of libsun, libnsl
librpc, or librpclib.
You need to determine which library provides this function (e.g. by
using "nm", or by running "ldd" on libX11.so), then add the
appropriate "-l" switch to the Makefile. The output from running "ldd"
on the resulting *.so files should include a reference to this
library.
--
Glynn Clements
participants (4)
-
Alastair Reid -
Glynn Clements -
Koen Claessen -
Volker Stolz