[GHC] #10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac

GHC ghc-devs at haskell.org
Thu Jun 25 22:02:57 UTC 2015


#10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac
-------------------------------+-----------------------------------------
        Reporter:  George      |                   Owner:
            Type:  bug         |                  Status:  infoneeded
        Priority:  normal      |               Milestone:  7.10.2
       Component:  Compiler    |                 Version:  7.10.1
      Resolution:              |                Keywords:
Operating System:  MacOS X     |            Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |               Test Case:
      Blocked By:              |                Blocking:
 Related Tickets:              |  Differential Revisions:
-------------------------------+-----------------------------------------

Comment (by George):

 Replying to [comment:4 trommler]:
 > Hmm, this issue is different. In #10322 we are linking temporary shared
 libraries. Here the problem is that the shared library for package GLUT
 cannot be loaded because of a missing symbol.
 >
 > Which shared library defines the missing `_glutBitmap8By13` ?
 Not sure if this helps but from https://github.com/haskell-
 opengl/GLUT/issues/19:

  tried loading the OSX's GLUT.framework manually:
  $ ghci -framework GLUT -package GLUT
  but it produces the same error message.

  ghci -framework GLUT -package GLUT
  GHCi, version 7.10.1.20150612: http://www.haskell.org/ghc/  :? for help
  <command line>: can't load .so/.DLL for:
 /Library/Haskell/ghc-7.10.1.20150612-x86_64
 /lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1-4wlNyqnZsQF9mL67dfVCyA-
 ghc7.10.1.20150612.dylib
 (dlopen(/Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
 -4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib, 5): Symbol not found:
 _glutBitmap8By13
  Referenced from:
 /Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
 -4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib
   Expected in: flat namespace
  in
 /Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
 -4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib)

  To be sure I checked the OSX's GLUT.framework, it does contain the
 _glutBitmap8By13 symbol.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10568#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list