Hugs graphics not working

Josef Svenningsson josefs@cs.chalmers.se
Wed, 8 May 2002 15:23:44 +0200 (MET DST)


On 8 May 2002, Alastair Reid wrote:

>
> > Hi.  We're trying to use Haskell Graphics library for X on our
> > solaris machines. Compiling works fine but when we're trying to run
> > the example we get the following error message:
>
> It looks like you'll need to tweak the HGL build process as follows:
>
> 1) Find out which library provides authdes_create.
>    On my Linux box, I use the following command to find it.
>
>      $ nm -A /usr/lib/*.a | grep authdes_create
>      /usr/lib/libc.a:auth_des.o:00000000 T authdes_create
>      /usr/lib/libnsl.a:ypclnt.o:         U authdes_create
>
>    Looks like libnsl requires the symbol and libc provides it.
>    Since you're presumably linking against libc already, it must
>    be in a different library on Solaris.
>
Well, I finally managed to get it to work. On our machines it's libnsl
that provides authdes_create so I linked against it. I had to link against
a few others as well. Here's the list:

Lib		Symbol
nsl		authdes_create
X11		XAllPlanes
socket		getsockname

Thanks alot!

	/Josef