Hugs graphics not working

Alastair Reid reid@cs.utah.edu
08 May 2002 11:25:48 +0100


> 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.

2) Tell Make where to find authdes_create

   For example, if you needed to add libc, you'd use this to
   invoke the Makefile

     gmake -C graphics-2.0.4/lib/x11 system=SunOS LDFLAGS=-lc

   (other flags may be requires as suggested in graphics-2.0.4/Install)

Hope this helps.  Please let me know if this works or needs modified
so that I can improve the instructions or build process.

--
Alastair Reid