Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136134 - freeglut-2.4.0 fails in two different ways
Summary: freeglut-2.4.0 fails in two different ways
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 18:19 UTC by Simon Koenig
Modified: 2006-10-07 10:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Koenig 2006-06-08 18:19:18 UTC
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
Comment 1 David Keijser 2006-06-16 06:57:53 UTC
try linking with libusbhid (-lusbhid)
Comment 2 Simon Koenig 2006-06-17 20:09:54 UTC
(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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-16 14:04:36 UTC
*** Bug 147846 has been marked as a duplicate of this bug. ***
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-07 10:17:14 UTC
This is fixed i the overlay, waiting for upstream to apply the patch to get it merged in portage.