You are not logged in.

#1 2011-06-17 06:50:50

kjslag
Member
Registered: 2009-11-03
Posts: 43

haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]

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

Last edited by kjslag (2011-06-17 06:57:00)

Offline

#2 2011-06-17 06:56:00

kjslag
Member
Registered: 2009-11-03
Posts: 43

Re: haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]

rebuilding the package myself (no PKGBUILD changes necessary) fixed the problem

Offline

#3 2011-06-17 16:59:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]

Did you rebuild haskell-glut or ghc ?

either way, please create a bug report at flyspray


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2011-08-18 15:27:13

inetic
Member
Registered: 2007-08-28
Posts: 8

Re: haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]

Confirming that rebuilding haskell-glut from PKGBUILD solves the problem.

Offline

#5 2011-08-20 02:36:13

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2011-09-13 18:41:42

inetic
Member
Registered: 2007-08-28
Posts: 8

Re: haskell-glut programs don't compile [non-ideal SOLVED: rebuild needed]

Offline

Board footer

Powered by FluxBB