graphics/libglut busted?

Daniel O'Connor doconnor at
Tue Sep 28 17:12:04 PDT 2004

I have this _weird_ compiler error with libglut..
midget# make
===>  Vulnerability check disabled
===>  Extracting for libglut-6.0.1
>> Checksum OK for MesaDemos-6.0.1.tar.bz2.
===>  Patching for libglut-6.0.1
/bin/cp /usr/ports/graphics/libglut/files/Makefile /tmp/work/usr/ports/graphics/libglut/work/Mesa-6.0.1/src/glut/glx/
===>   libglut-6.0.1 depends on shared library: X11.6 - found
===>  Configuring for libglut-6.0.1
===>  Building for libglut-6.0.1
Warning: Object directory not changed from original /usr/tmp/work/usr/ports/graphics/libglut/work/Mesa-6.0.1/src/glut/glx
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_8x13.c -o glut_8x13.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_9x15.c -o glut_9x15.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_bitmap.c -o glut_bitmap.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_bwidth.c -o glut_bwidth.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_cindex.c -o glut_cindex.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_cmap.c -o glut_cmap.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_cursor.c -o glut_cursor.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_dials.c -o glut_dials.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_dstr.c -o glut_dstr.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_event.c -o glut_event.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_ext.c -o glut_ext.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_fbc.c -o glut_fbc.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_fullscrn.c -o glut_fullscrn.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_gamemode.c -o glut_gamemode.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_get.c -o glut_get.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_glxext.c -o glut_glxext.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_hel10.c -o glut_hel10.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_hel12.c -o glut_hel12.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_hel18.c -o glut_hel18.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_init.c -o glut_init.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_input.c -o glut_input.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_joy.c -o glut_joy.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_key.c -o glut_key.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_keyctrl.c -o glut_keyctrl.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_keyup.c -o glut_keyup.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_menu.c -o glut_menu.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_menu2.c -o glut_menu2.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_mesa.c -o glut_mesa.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_modifier.c -o glut_modifier.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_mroman.c -o glut_mroman.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_overlay.c -o glut_overlay.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_roman.c -o glut_roman.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_shapes.c -o glut_shapes.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_space.c -o glut_space.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_stroke.c -o glut_stroke.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_swap.c -o glut_swap.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_swidth.c -o glut_swidth.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_tablet.c -o glut_tablet.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_teapot.c -o glut_teapot.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_tr10.c -o glut_tr10.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_tr24.c -o glut_tr24.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_util.c -o glut_util.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_vidresize.c -o glut_vidresize.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_warp.c -o glut_warp.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_win.c -o glut_win.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_winmisc.c -o glut_winmisc.o
cc -O -pipe   -I../../../include -I/usr/X11R6/include  -c layerutil.c -o layerutil.o
building static glut library
ranlib libglut.a
cc -fpic -DPIC -O -pipe   -I../../../include -I/usr/X11R6/include  -c glut_8x13.c -o glut_8x13.So
/usr/libexec/elf/ld: cannot find -lGL
*** Error code 1

Why the heck is it looking for GL anyway? :(

Ahh ->

midget# make -dl
echo "Warning: Object directory not changed from original /usr/tmp/work/usr/ports/graphics/libglut/work/Mesa-6.0.1/src/glut/glx"
Warning: Object directory not changed from original /usr/tmp/work/usr/ports/graphics/libglut/work/Mesa-6.0.1/src/glut/glx
cc -fpic -DPIC -O -pipe  -I../../../include -I/usr/X11R6/include  -c glut_cursor.c -o glut_cursor.So
ld  -L/usr/X11R6/lib -lGLU -lX11 -lXext -lGL -lXmu -lXi -o glut_cursor.So.tmp -x -r glut_cursor.So
/usr/libexec/elf/ld: cannot find -lGL
*** Error code 1

Anyway, if I do 'make -k' then make it actually builds the library.


Daniel O'Connor software and network engineer
for Genesis Software -
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list