FS#25991 - haskell-glut: undefined references to pretty much all glut functions

Attached to Project: Arch Linux
Opened by Peter Jankuliak (inetic) - Tuesday, 13 September 2011, 18:19 GMT
Last edited by Thomas Dziedzic (tomd123) - Saturday, 03 March 2012, 17:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Ronald van Haren (pressh)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

(Original, with solution is here: https://bbs.archlinux.org/viewtopic.php?id=121045)

I can't compile a simple haskell program that uses GLUT. See output below. Googling suggests that it wasn't compiled correctly.

cat main.hs
import qualified Graphics.Rendering.OpenGL as GL
import qualified Graphics.UI.GLUT as GLUT
main = do
(progname, _) <- GLUT.getArgsAndInitialize
GLUT.createWindow "Hello World"
GLUT.mainLoop
$ ghc main.hs
Linking main ...
/usr/lib/ghc-7.0.2/site-local/GLUT-2.1.2.1/libHSGLUT-2.1.2.1.a(Begin__8.o): In function `sv8I_info':
(.text+0x84): undefined reference to `glutMainLoop'
/usr/lib/ghc-7.0.2/site-local/GLUT-2.1.2.1/libHSGLUT-2.1.2.1.a(Initialization__17.o): In function `swEN_info':
(.text+0x161): undefined reference to `glutInit'
/usr/lib/ghc-7.0.2/site-local/GLUT-2.1.2.1/libHSGLUT-2.1.2.1.a(Window__47.o): In function `scgo_info':
(.text+0x2a): undefined reference to `glutCreateWindow'
collect2: ld returned 1 exit status

Additional info:



Steps to reproduce:
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Saturday, 03 March 2012, 17:10 GMT
Reason for closing:  Won't fix
Additional comments about closing:  moved to the aur

Loading...