#1712: unknown symbol “glutGet”
-------------------------------------------+--------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:  Sven Panne <[EMAIL 
PROTECTED]>
        Type:  bug                         |       Status:  new                 
             
    Priority:  normal                      |    Milestone:  Not GHC             
             
   Component:  Compiler                    |      Version:  6.8                 
             
    Severity:  normal                      |   Resolution:                      
             
    Keywords:                              |   Difficulty:  Unknown             
             
          Os:  Linux                       |     Testcase:                      
             
Architecture:  x86                         |  
-------------------------------------------+--------------------------------
Comment (by guest):

 Replying to [comment:3 igloo]:
 > This looks most likely to be a problem with your GLUT package to me.
 Does the output of {{{ghc-pkg describe GLUT}}} look right (in particular,
 do the cc-options, ld-options, library-dirs, frameworks and framework-dirs
 look like they ought to work)?
 Here is the complete output:
 {{{
 name: GLUT
 version: 2.1.1
 license: BSD3
 copyright:
 maintainer: Sven Panne <[EMAIL PROTECTED]>
 stability:
 homepage: http://www.haskell.org/HOpenGL/
 package-url:
 description: A Haskell binding for the OpenGL Utility Toolkit, a window
              system independent toolkit for writing OpenGL programs. For
 more
              information about the C library on which this binding is
 based,
              please see:
 <http://www.opengl.org/resources/libraries/glut/>.
 category: Graphics
 author:
 exposed: True
 exposed-modules: Graphics.UI.GLUT Graphics.UI.GLUT.Begin
                  Graphics.UI.GLUT.Callbacks
 Graphics.UI.GLUT.Callbacks.Global
                  Graphics.UI.GLUT.Callbacks.Window
 Graphics.UI.GLUT.Colormap
                  Graphics.UI.GLUT.Debugging Graphics.UI.GLUT.DeviceControl
                  Graphics.UI.GLUT.Fonts Graphics.UI.GLUT.GameMode
                  Graphics.UI.GLUT.Initialization Graphics.UI.GLUT.Menu
                  Graphics.UI.GLUT.Objects Graphics.UI.GLUT.Overlay
                  Graphics.UI.GLUT.State Graphics.UI.GLUT.Window
 hidden-modules: Graphics.UI.GLUT.Callbacks.Registration
                 Graphics.UI.GLUT.Constants Graphics.UI.GLUT.Extensions
                 Graphics.UI.GLUT.QueryUtils Graphics.UI.GLUT.Types
 import-dirs: $GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/GLUT-2.1.1
 library-dirs: $GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/GLUT-2.1.1
 hs-libraries: HSGLUT-2.1.1
 extra-libraries:
 extra-ghci-libraries:
 include-dirs:
 $GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/GLUT-2.1.1/include
 includes: HsGLUT.h
 depends: base-3.0 array-0.1 containers-0.1 OpenGL-2.2.1
 hugs-options:
 cc-options:
 ld-options:
 framework-dirs:
 frameworks:
 haddock-interfaces:
 $GHC_INSTALL_DIR/share/doc/ghc/libraries/GLUT-2.1.1/GLUT.haddock
 haddock-html: $GHC_INSTALL_DIR/share/doc/ghc/libraries/GLUT-2.1.1
 }}}
 > If you compile with -v, does the linker commandline look right?
 The linker command for an example program is as follows:
 {{{
 /usr/lib/gcc/i486-linux-gnu/4.1.2/collect2
 --eh-frame-hdr
 -m elf_i386
 -dynamic-linker /lib/ld-linux.so.2
 -o Main
 -u base_GHCziBase_Izh_static_info
 -u base_GHCziBase_Czh_static_info
 -u base_GHCziFloat_Fzh_static_info
 -u base_GHCziFloat_Dzh_static_info
 -u base_GHCziPtr_Ptr_static_info
 -u base_GHCziWord_Wzh_static_info
 -u base_GHCziInt_I8zh_static_info
 -u base_GHCziInt_I16zh_static_info
 -u base_GHCziInt_I32zh_static_info
 -u base_GHCziInt_I64zh_static_info
 -u base_GHCziWord_W8zh_static_info
 -u base_GHCziWord_W16zh_static_info
 -u base_GHCziWord_W32zh_static_info
 -u base_GHCziWord_W64zh_static_info
 -u base_GHCziStable_StablePtr_static_info
 -u base_GHCziBase_Izh_con_info
 -u base_GHCziBase_Czh_con_info
 -u base_GHCziFloat_Fzh_con_info
 -u base_GHCziFloat_Dzh_con_info
 -u base_GHCziPtr_Ptr_con_info
 -u base_GHCziPtr_FunPtr_con_info
 -u base_GHCziStable_StablePtr_con_info
 -u base_GHCziBase_False_closure
 -u base_GHCziBase_True_closure
 -u base_GHCziPack_unpackCString_closure
 -u base_GHCziIOBase_stackOverflow_closure
 -u base_GHCziIOBase_heapOverflow_closure
 -u base_GHCziIOBase_NonTermination_closure
 -u base_GHCziIOBase_BlockedOnDeadMVar_closure
 -u base_GHCziIOBase_BlockedIndefinitely_closure
 -u base_GHCziIOBase_Deadlock_closure
 -u base_GHCziIOBase_NestedAtomically_closure
 -u base_GHCziWeak_runFinalizzerBatch_closure
 -u base_GHCziConc_ensureIOManagerIsRunning_closure
 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o
 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o
 /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbegin.o
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/haskell98-1.0.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/process-1.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/unix-2.2
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/random-1.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/directory-1.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/filepath-1.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/old-time-1.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/old-locale-1.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/GLUT-2.1.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/OpenGL-2.2.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/containers-0.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/array-0.1
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019/lib/base-3.0
 -L$GHC_INSTALL_DIR/lib/ghc-6.8.0.20071019
 -L/usr/lib/gcc/i486-linux-gnu/4.1.2
 -L/usr/lib/gcc/i486-linux-gnu/4.1.2
 -L/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib
 -L/lib/../lib
 -L/usr/lib/../lib
 Main.o
 MyUtilities.o
 -lHShaskell98-1.0.1
 -lHSprocess-1.0
 -lHSunix-2.2
 -lHSrandom-1.0
 -lHSdirectory-1.0
 -lHSfilepath-1.1
 -lHSold-time-1.0
 -lHSold-locale-1.0
 -lHSGLUT-2.1.1
 -lHSOpenGL-2.2.1
 -lHScontainers-0.1
 -lHSarray-0.1
 -lHSbase-3.0
 -lHSrts
 -lm
 -lgmp
 -ldl
 -lrt
 -lgcc
 --as-needed
 -lgcc_s
 --no-as-needed
 -lc
 -lgcc
 --as-needed
 -lgcc_s
 --no-as-needed
 /usr/lib/gcc/i486-linux-gnu/4.1.2/crtend.o
 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o
 }}}
 > From the error I'd expect any trivial GLUT program to fail to link. Is
 that the case?
 The following program does not fail:
 {{{
 import Graphics.Rendering.OpenGL
 import Graphics.UI.GLUT

 main = return ()
 }}}
 > This doesn't look like a GHC bug to me, so I'm remilestoning it
 appropriately.
 However, note that these problems appear in a binary release of GHC.  Is
 such a binary release compiled against a specific OpenGL implementation?
 What if the user uses a different one?

 Please contact me if you need any further information.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1712#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to