building problems on Suns

Anyone know how to resolve this:

dirichlet> gcc openGL1.c -lglut -lGLU -lGL -I/usr/local/glut/include
ld: warning: file /usr/local/lib/libglut.a(glut_event.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
glutInitWindowPosition /var/tmp/cc4HeN4V.o
glutCreateWindow /var/tmp/cc4HeN4V.o
glutMainLoop /var/tmp/cc4HeN4V.o
glutDisplayFunc /var/tmp/cc4HeN4V.o
glutInitDisplayMode /var/tmp/cc4HeN4V.o
glutInitWindowSize /var/tmp/cc4HeN4V.o
glutInit /var/tmp/cc4HeN4V.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

This is a developer question so this is not the right forum.

You can try with cc instead of gcc or rebuild the glut library.