FW: ANNOUNCE: GHC version 6.0

"Simon Peyton-Jones" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <DE924A789E3C124F8C8A319F273357E701C689DF@lon-msg-01.europe.corp.microsoft.com>

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ralf Hinze
Sent: 31 May 2003 14:35
To: [email protected]
Subject: Re: ANNOUNCE: GHC version 6.0

> Compiling 6.0 from source fails with:
>
> ../../ghc/compiler/ghc-inplace -H16m -O -Wall -fffi -Iinclude
'-#include
> "HsOpenGL.h"' -cpp -I/usr/X11R6/include -DCALLCONV=ccall
> '-DGET_PROC_ADDRESS="glXGetProcAddressARB"' -package-name OpenGL -O
> -Rghc-timing  -package base -split-objs    -c
> Graphics/Rendering/OpenGL/GL/Extensions.hs -o
> Graphics/Rendering/OpenGL/GL/Extensions.o  -ohi
> Graphics/Rendering/OpenGL/GL/Extensions.hi
> Graphics/Rendering/OpenGL/GL/Extensions.hs:42: parse error on input
> `glXGetProcAddressARB' <<ghc: 3261568 bytes, 2 GCs, 20548/20548
avg/max
> bytes residency (1 samples), 5M in use, 0.00 INIT (0.00 elapsed), 0.01
MUT
> (0.09 elapsed), 0.01 GC (0.03 elapsed) :ghc>> make[2]: ***
> [Graphics/Rendering/OpenGL/GL/Extensions.o] Fehler 1
> make[1]: *** [all] Fehler 1
> make[1]: Leaving directory
> `/var/tmp/portage/ghc-6.0/work/stage2-build/libraries' make: ***
[build]
> Fehler 1

The following patch worked for me (but does it cure the problem?)

irrwisch root # diff
libraries/OpenGL/Graphics/Rendering/OpenGL/GL/Extensions.hs
libraries/OpenGL/Graphics/Rendering/OpenGL/GL/Extensions.hs-orig
42c42
< foreign import CALLCONV unsafe GET_PROC_ADDRESS ::
---
> foreign import CALLCONV unsafe GET_PROC_ADDRESS glXGetProcAddressARB
::

Cheers, Ralf

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.