Can't install OpenGLRaw-1.1.0.1 on OS X

给你一囗甜甜゛ 提交于 2019-12-25 05:09:26

问题


When I run

$ cabal install OpenGLRaw

I get the following errors.

... ... ...

cbits/HsOpenGLRaw.c:78:20:
     error: stdlib.h: No such file or directory

cbits/HsOpenGLRaw.c:79:19:
     error: dlfcn.h: No such file or directory
cbits/HsOpenGLRaw.c: In function ‘hs_OpenGLRaw_getProcAddress’:

cbits/HsOpenGLRaw.c:97:0:
     error: ‘NULL’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:97:0:
     error: (Each undeclared identifier is reported only once

cbits/HsOpenGLRaw.c:97:0:  error: for each function it appears in.)

cbits/HsOpenGLRaw.c:104:0:
     warning: implicit declaration of function ‘dlopen’

cbits/HsOpenGLRaw.c:104:0:
     error: ‘RTLD_LAZY’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:104:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:115:0:
     warning: implicit declaration of function ‘dlsym’

cbits/HsOpenGLRaw.c:115:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:126:0:
     warning: return makes pointer from integer without a cast
cabal: Error: some packages failed to install:
OpenGLRaw-1.1.0.1 failed during the building phase. The exception was:
ExitFailure 1

I just installed the latest Haskell Platform for OS X and ran cabal update for good measure.


回答1:


Looks to me like ticket #5011 - XCode 4 on Mac + GHC 7.0.2 fails to link.

This is fixed in GHC 7.0.3 which will be part of the mid-April release of the Haskell Platform.

And alternative fix is to downgrade to the 2010.2 Haskell Platform.



来源:https://stackoverflow.com/questions/5626339/cant-install-openglraw-1-1-0-1-on-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!