Ok, the below posted error accures, if you use -Werror in ./configure If you comment it out, you recieve another error. The error is posted below this one. i686-gentoo-freebsd6.1-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=athlon-xp -pipe -O2 -Wall -pedantic -Werror -c freeglut_main.c -MT libglut_la-freeglut_main.lo -MD -MP -MF .deps/libglut_la-freeglut_main.TPlo -fPIC -DPIC -o .libs/libglut_la-freeglut_main.lo freeglut_joystick.c: In function `fghJoystickRawRead': freeglut_joystick.c:659: warning: suggest parentheses around + or - inside shift freeglut_joystick.c:661: warning: suggest parentheses around + or - inside shift freeglut_joystick.c: In function `fghJoystickOpen': freeglut_joystick.c:1063: warning: unused variable `counter' gmake[2]: *** [libglut_la-freeglut_joystick.lo] Error 1 gmake[2]: *** Waiting for unfinished jobs.... i686-gentoo-freebsd6.1-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=athlon-xp -pipe -O2 -Wall -pedantic -Werror -c freeglut_main.c -MT libglut_la-freeglut_main.lo -MD -MP -MF .deps/libglut_la-freeglut_main.TPlo -o libglut_la-freeglut_main.o >/dev/null 2>&1 mv -f .libs/libglut_la-freeglut_main.lo libglut_la-freeglut_main.lo gmake[2]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0' gmake: *** [all] Error 2 !!! ERROR: media-libs/freeglut-2.4.0 failed. ------------------- Error with -Werror commented out: i686-gentoo-freebsd6.1-gcc -march=athlon-xp -pipe -O2 -Wall -pedantic -o .libs/CallbackMaker CallbackMaker-CallbackMaker.o -Wl,--export-dynamic ../../../src/.libs/libglut.so -lm -L/usr/lib /usr/lib/libGLU.so /usr/lib/opengl/xorg-x11/lib/libGL.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libXmu.so /usr/lib/libXt.so /usr/lib/libXi.so -lpthread /usr/lib/libXxf86vm.so /usr/lib/libX11.so /usr/lib/libXext.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lrpcsvc -Wl,--rpath -Wl,/usr/lib/opengl/xorg-x11/lib ../../../src/.libs/libglut.so: undefined reference to `hid_start_parse' ../../../src/.libs/libglut.so: undefined reference to `hid_end_parse' ../../../src/.libs/libglut.so: undefined reference to `hid_get_data' ../../../src/.libs/libglut.so: undefined reference to `hid_report_size' ../../../src/.libs/libglut.so: undefined reference to `hid_get_report_desc' ../../../src/.libs/libglut.so: undefined reference to `hid_get_item' collect2: ld returned 1 exit status gmake[4]: *** [CallbackMaker] Error 1 gmake[4]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0/progs/demos/CallbackMaker' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0/progs/demos' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0/progs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/freeglut-2.4.0/work/freeglut-2.4.0' gmake: *** [all] Error 2
try linking with libusbhid (-lusbhid)
(In reply to comment #1) > try linking with libusbhid (-lusbhid) > Yes, this helped a lot. Thank you! But you still have to remove -Werror from configure.
*** Bug 147846 has been marked as a duplicate of this bug. ***
This is fixed i the overlay, waiting for upstream to apply the patch to get it merged in portage.