Summary: | ERROR: media-libs/freeglut-2.4.0 failed | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Roberto Griso <griso.roberto> |
Component: | Mac OSX | Assignee: | Gentoo for Mac OS X <ppc-macos> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
changes made to the ebuild
Patch made to freeglut_joystick.c source file Configure Patch for OSX Joystick Code |
Description
Roberto Griso
2005-06-29 07:16:50 UTC
I don't have freeglut-2.4.0 in my portage (so it probably is brand new ;) ) however: cc1: warnings being treated as errors did you specify -Wall -W as CFLAGS in your /etc/make.conf? Otherwise the patch is quite simple, but I don't have the ebuild in my portage. Will check tomorrow. This is actually interesting. It seems there is OSX code for joystick support, but I can't find anything on their website of OSX support. So I assumed it was not mature enough, and went the X11 way. I fixed this compilation issue by making OSX treated equal to Linux, as shown in the sourcefile patch. This package uses no use flags. Original reporter, can you easily check whether this patch results in a working freeglut for your setup? Created attachment 62453 [details, diff]
changes made to the ebuild
Activates a patch which allow compilation to succeed on OSX Tiger
Created attachment 62454 [details, diff]
Patch made to freeglut_joystick.c source file
This patch allows compilation by treating OSX as linux. This results in X11
being used.
Created attachment 63046 [details, diff]
Configure Patch for OSX Joystick Code
Why not conditionally use your patch for USE=X and conditionally use the
following patch for USE=aqua?
I think it's a BAD thing to remove -Werror here. Someone compiling with a native compiler like icc or Sun cc would get confronted with fatal errors while gcc just continues. The -Werror is there for a good reason. Also, I have no evidence whatsoever that the TARGET_HOST_MAC_OSX is being set. I do have evidence that no matter what you put between a TARGET_HOST_MAC_OSX block is being ignored. As such, my conclusion is that upstream is not yet prepared to support OSX natively. Since there is no message for OSX on their website, I think it is safe to only support X here. I think X and aqua are mutual exclusive, how to deal with that? :wq freeglut-2.4.0 was already ~ppc-macos, hence I added my patch to allow compilation. |