-----Original Message----- From: glasgow-haskell-bugs-admin@haskell.org [mailto:glasgow-haskell-bugs-admin@haskell.org] On Behalf Of Ralf Hinze Sent: 31 May 2003 14:35 To: glasgow-haskell-bugs@haskell.org 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 Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs