problems compiling hopengl on freebsd

Chris Moline <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
hi. i am trying to compile hopengl on freebsd. however the compilation fails with

------------------------------------------------------------------------^M
gmake all - --no-print-directory;^M
in /usr/home/chris/HOpenGL-1.03/examples/misc^M
------------------------------------------------------------------------^M
"/usr/local/bin/ghc" -i../../lib -I../../lib -syslib util -fglasgow-exts    -I/u
rm -f Main.hi^M
"/usr/local/bin/ghc" -o Info -i../../lib -I../../lib -syslib util -fglasgow-exts
../../lib/libHOpenGL.a(GLUT_Init__76.o): In function `sf91_ret':^M
GLUT_Init__76.o(.text+0x221): undefined reference to `glutInit'^M
../../lib/libHOpenGL.a(GLUT_Init__85.o): In function `sfrc_ret':^M
GLUT_Init__85.o(.text+0x132): undefined reference to `glutInitWindowSize'^M
../../lib/libHOpenGL.a(GLUT_Init__85.o): In function `sfrh_ret':^M
GLUT_Init__85.o(.text+0x1fe): undefined reference to `glutInitWindowPosition'^
../../lib/libHOpenGL.a(GLUT_Init__85.o): In function `sfrl_ret':^M
GLUT_Init__85.o(.text+0x2c3): undefined reference to `glutInitDisplayMode'^M
../../lib/libHOpenGL.a(GLUT_Window__13.o): In function `GLUTzuWindow_getWindow_f
GLUT_Window__13.o(.text+0x3f): undefined reference to `glutGetWindow'^M
../../lib/libHOpenGL.a(GLU_Init__2.o): In function `GLUzuInit_zdwzdfGettableVarG
GLU_Init__2.o(.text+0x47): undefined reference to `gluGetString'^M
../../lib/libHOpenGL.a(GLU_Init__3.o): In function `GLUzuInit_zdwzdfGettableVarG
GLU_Init__2.o(.text+0x47): undefined reference to `gluGetString'^M
../../lib/libHOpenGL.a(GLU_Init__3.o): In function `GLUzuInit_zdwzdfGettableVarG
GLU_Init__3.o(.text+0x47): undefined reference to `gluGetString'^M
../../lib/libHOpenGL.a(GL_Query__2.o): In function `GLzuQuery_zdwzdfGettableVarG
GL_Query__2.o(.text+0x47): undefined reference to `glGetString'^M
../../lib/libHOpenGL.a(GL_Query__24.o): In function `GLzuQuery_zdwzdfGettableVar
GL_Query__24.o(.text+0x47): undefined reference to `glGetString'^M
../../lib/libHOpenGL.a(GL_Query__70.o): In function `safR_1_alt':^M
GL_Query__70.o(.text+0x68): undefined reference to `glGetString'^M
../../lib/libHOpenGL.a(GL_Query__70.o): In function `safR_2_alt':^M
GL_Query__70.o(.text+0x94): undefined reference to `glGetString'^M
../../lib/libHOpenGL.a(GL_QueryUtils__4.o): In function `scdP_ret':^M
GL_QueryUtils__4.o(.text+0xc6): undefined reference to `glGetBooleanv'^M
../../lib/libHOpenGL.a(GL_QueryUtils__7.o): In function `sce1_ret':^M
GL_QueryUtils__7.o(.text+0xc6): undefined reference to `glGetIntegerv'^M
../../lib/libHOpenGL.a(GLUT_CBWindow__151.o): In function `GLUTzuCBWindow_zzdwcc
GLUT_CBWindow__151.o(.text+0x52): undefined reference to `glutDisplayFunc'^M
../../lib/libHOpenGL.a(GLUT_Init__83.o): In function `GLUTzuInit_zdLrf1szzdwccal
GLUT_Init__83.o(.text+0x23): undefined reference to `glutCreateWindow'^M
gmake[2]: *** [Info] Error 1^M
gmake[1]: *** [all] Error 1^M
gmake: *** [all] Error 1^M

i am thinking its because configure is having trouble finding some libraries

checking for main in -lm... yes^M
checking for library containing glEnd... no^M
checking for library containing gluNewQuadric... no^M
checking for library containing glXWaitX... no^M
checking for library containing glutMainLoop... no^M

i have mesa-3.4.2_2. i am running freebsd 4.5 release. any hints on what to do would be greatly appreciated.

sincerly,
chris moline
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.