Hi, I’m having trouble compiling the demos that come with the Mesa3D code on FreeBSD.  I initially had trouble compiling the Mesa3D and glut libraries, but eventually they surrendered to my almighty power.  God, I’ve spent way too much time on a computer today.

 

Anyways, here’s my make:

 

make

gcc -I../../include -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 arbfplight.c -L../../lib -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm -o arbfplight

arbfplight.c: In function `Init':

arbfplight.c:236: warning: string length `900' is greater than the length `509' ISO C89 compilers are required to support

arbfplight.c:262: warning: string length `729' is greater than the length `509' ISO C89 compilers are required to support

/var/tmp//cc2Sp5DL.o(.text+0x1b): In function `Redisplay':

: undefined reference to `glClear'

/var/tmp//cc2Sp5DL.o(.text+0x4c): In function `Redisplay':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0x58): In function `Redisplay':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0x64): In function `Redisplay':

: undefined reference to `glDisable'

/var/tmp//cc2Sp5DL.o(.text+0x6c): In function `Redisplay':

: undefined reference to `glPushMatrix'

/var/tmp//cc2Sp5DL.o(.text+0x86): In function `Redisplay':

: undefined reference to `glRotatef'

/var/tmp//cc2Sp5DL.o(.text+0x94): In function `Redisplay':

: undefined reference to `glRotatef'

/var/tmp//cc2Sp5DL.o(.text+0xa7): In function `Redisplay':

: undefined reference to `glutSolidSphere'

/var/tmp//cc2Sp5DL.o(.text+0xac): In function `Redisplay':

: undefined reference to `glPopMatrix'

/var/tmp//cc2Sp5DL.o(.text+0xb1): In function `Redisplay':

: undefined reference to `glutSwapBuffers'

/var/tmp//cc2Sp5DL.o(.text+0xe3): In function `Redisplay':

: undefined reference to `glLightfv'

/var/tmp//cc2Sp5DL.o(.text+0xef): In function `Redisplay':

: undefined reference to `glDisable'

/var/tmp//cc2Sp5DL.o(.text+0xfb): In function `Redisplay':

: undefined reference to `glDisable'

/var/tmp//cc2Sp5DL.o(.text+0x107): In function `Redisplay':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0x119): In function `Redisplay':

: undefined reference to `glutGet'

/var/tmp//cc2Sp5DL.o(.text+0x1c1): In function `Idle':

: undefined reference to `glutPostRedisplay'

/var/tmp//cc2Sp5DL.o(.text+0x200): In function `Reshape':

: undefined reference to `glViewport'

/var/tmp//cc2Sp5DL.o(.text+0x20c): In function `Reshape':

: undefined reference to `glMatrixMode'

/var/tmp//cc2Sp5DL.o(.text+0x211): In function `Reshape':

: undefined reference to `glLoadIdentity'

/var/tmp//cc2Sp5DL.o(.text+0x248): In function `Reshape':

: undefined reference to `glFrustum'

/var/tmp//cc2Sp5DL.o(.text+0x255): In function `Reshape':

: undefined reference to `glMatrixMode'

/var/tmp//cc2Sp5DL.o(.text+0x25a): In function `Reshape':

: undefined reference to `glLoadIdentity'

/var/tmp//cc2Sp5DL.o(.text+0x270): In function `Reshape':

: undefined reference to `glTranslatef'

/var/tmp//cc2Sp5DL.o(.text+0x320): In function `Key':

: undefined reference to `glutPostRedisplay'

/var/tmp//cc2Sp5DL.o(.text+0x34b): In function `Key':

: undefined reference to `glutIdleFunc'

/var/tmp//cc2Sp5DL.o(.text+0x35a): In function `Key':

: undefined reference to `glutIdleFunc'

/var/tmp//cc2Sp5DL.o(.text+0x3b2): In function `Key':

: undefined reference to `glPolygonMode'

/var/tmp//cc2Sp5DL.o(.text+0x402): In function `SpecialKey':

: undefined reference to `glutPostRedisplay'

/var/tmp//cc2Sp5DL.o(.text+0x41e): In function `SpecialKey':

: undefined reference to `glutPostRedisplay'

/var/tmp//cc2Sp5DL.o(.text+0x435): In function `SpecialKey':

: undefined reference to `glutPostRedisplay'

/var/tmp//cc2Sp5DL.o(.text+0x498): In function `main':

: undefined reference to `glutInit'

/var/tmp//cc2Sp5DL.o(.text+0x4a3): In function `main':

: undefined reference to `glutInitWindowPosition'

/var/tmp//cc2Sp5DL.o(.text+0x4b4): In function `main':

: undefined reference to `glutInitWindowSize'

/var/tmp//cc2Sp5DL.o(.text+0x4c0): In function `main':

: undefined reference to `glutInitDisplayMode'

/var/tmp//cc2Sp5DL.o(.text+0x4c8): In function `main':

: undefined reference to `glutCreateWindow'

/var/tmp//cc2Sp5DL.o(.text+0x4d6): In function `main':

: undefined reference to `glutReshapeFunc'

/var/tmp//cc2Sp5DL.o(.text+0x4e4): In function `main':

: undefined reference to `glutKeyboardFunc'

/var/tmp//cc2Sp5DL.o(.text+0x4f2): In function `main':

: undefined reference to `glutSpecialFunc'

/var/tmp//cc2Sp5DL.o(.text+0x500): In function `main':

: undefined reference to `glutDisplayFunc'

/var/tmp//cc2Sp5DL.o(.text+0x51f): In function `main':

: undefined reference to `glutExtensionSupported'

/var/tmp//cc2Sp5DL.o(.text+0x539): In function `main':

: undefined reference to `glutExtensionSupported'

/var/tmp//cc2Sp5DL.o(.text+0x553): In function `main':

: undefined reference to `glutGetProcAddress'

/var/tmp//cc2Sp5DL.o(.text+0x573): In function `main':

: undefined reference to `glutGetProcAddress'

/var/tmp//cc2Sp5DL.o(.text+0x593): In function `main':

: undefined reference to `glutGetProcAddress'

/var/tmp//cc2Sp5DL.o(.text+0x5b3): In function `main':

: undefined reference to `glutGetProcAddress'

/var/tmp//cc2Sp5DL.o(.text+0x5d3): In function `main':

: undefined reference to `glutGetProcAddress'

/var/tmp//cc2Sp5DL.o(.text+0x5f3): more undefined references to `glutGetProcAddress' follow

/var/tmp//cc2Sp5DL.o(.text+0x6be): In function `main':

: undefined reference to `glGetIntegerv'

/var/tmp//cc2Sp5DL.o(.text+0x6c6): In function `main':

: undefined reference to `glGetError'

/var/tmp//cc2Sp5DL.o(.text+0x6f4): In function `main':

: undefined reference to `glGetString'

/var/tmp//cc2Sp5DL.o(.text+0x723): In function `main':

: undefined reference to `glutIdleFunc'

/var/tmp//cc2Sp5DL.o(.text+0x9d0): In function `main':

: undefined reference to `glGetIntegerv'

/var/tmp//cc2Sp5DL.o(.text+0x9d8): In function `main':

: undefined reference to `glGetError'

/var/tmp//cc2Sp5DL.o(.text+0xa06): In function `main':

: undefined reference to `glGetString'

/var/tmp//cc2Sp5DL.o(.text+0xb31): In function `main':

: undefined reference to `glClearColor'

/var/tmp//cc2Sp5DL.o(.text+0xb3d): In function `main':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0xb49): In function `main':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0xb55): In function `main':

: undefined reference to `glEnable'

/var/tmp//cc2Sp5DL.o(.text+0xb6e): In function `main':

: undefined reference to `glMaterialfv'

/var/tmp//cc2Sp5DL.o(.text+0xb87): In function `main':

: undefined reference to `glMaterialfv'

/var/tmp//cc2Sp5DL.o(.text+0xb9f): In function `main':

: undefined reference to `glMaterialf'

/var/tmp//cc2Sp5DL.o(.text+0xbab): In function `main':

: undefined reference to `glGetString'

/var/tmp//cc2Sp5DL.o(.text+0xbd0): In function `main':

: undefined reference to `glutMainLoop'

*** Error code 1