Hi Sven,

Do you still maintain the OpenGL and GLUT packages?  Problem and solution described below.

Thanks,
   - Conal

---------- Forwarded message ----------
From: Sigbjorn Finne <sigbjorn.finne@gmail.com>
Date: Thu, Oct 30, 2008 at 7:52 PM
Subject: Re: different glut32 problem
To: Conal Elliott <conal@conal.net>
Cc: Ivan Tomac <ivan.tomac@gmail.com>, David Sankel <camior@gmail.com>, Matti Niemenmaa <matti.niemenmaa+news@iki.fi>, Mark Wassell <mwassell@bigpond.net.au>, Jefferson Heard <jefferson.r.heard@gmail.com>


Cool; looks as if there were some Cabal-related changes, so that
bit mb fell on the floor (and non-Windows users aren't bitten by it.)
Package data for older GHCen have it, but in the ld-options field.

If you could fwd the mod to the maintainers, that'd be great.

--sigbjorn


On 10/30/2008 19:23, Conal Elliott wrote:
Problem solved, thanks to a suggestion from Sigbjorn.

The OpenGL.buildinfo.in <http://OpenGL.buildinfo.in> and GLUT.buildinfo.in <http://GLUT.buildinfo.in> files were missing entries for 'extra-libraries'.  Once I added these entries, everything works.


I wonder why other people aren't having the same problem.  Any theories?

 - Conal

On Wed, Oct 29, 2008 at 6:24 PM, Conal Elliott <conal@conal.net <mailto:conal@conal.net>> wrote:

   I'm getting some more information now on failure with glut32 (not
   freeglut).  After getting cygwin out of the way, now GLUT fails to
   load in ghci (rather than crashing).  Quitting ghci shows a
   missing symbol:

   *Main> main
   Loading package syb ... linking ... done.
   Loading package array-0.2.0.0 ... linking ... done.
   Loading package containers-0.2.0.0 ... linking ... done.
   Loading package OpenGL-2.2.1.1 ... linking ... done.
   Loading package GLUT-2.1.1.2 ... linking ... : unable to load
   package `GLUT-2.1.1.2'
   *Main> :q
   Leaving GHCi.
   <interactive>:
   c:/Haskell/packages\GLUT-2.1.1.2\ghc-6.11.20081024\HSGLUT-2.1.1.2.o:
   unknown symbol `_glutGet'

   bash-3.1$ which glut32.dll
   /c/WINDOWS/system32/glut32.dll

   When I hide glut32.dll (rename it) and try again, I get the same
   result.  Same result again when I copy glut32.dll into the
   directory containing the Haskell test module.

   Any ideas?

   Thanks,  - Conal