We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1248

Summary: GLhandleARB double symbol definition on Mac OSX Lion
Product: SDL Reporter: Joé Dupuis <joe.dupuis>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus, Jack.Jansen
Version: 2.0.0   
Hardware: x86_64   
OS: Mac OS X (All)   
Attachments: Mercurial bundle for the GLhandleARB double symbol definition

Description Joé Dupuis 2011-07-20 12:48:33 UTC
Created attachment 650 [details]
Mercurial bundle for the GLhandleARB double symbol definition

SDL 1.3 is not building on Mac OSX 10.7  because there is a double symbol definition of GLhandleARB in SDL_OpenGL.h (from the include folder).

It looks like GLhandleARB is always defined on Lion regardless of whether GL_ARB_shader_objects is defined or not (in glext.h or gltype.h depending on the case). So I striped out with preprocessor (on OSX 10.7 and later only) the GLhandleARB declaration in SDL_OpenGL.h and included the new required opengl header file. 

I am not sure if it was the right thing to do, but in case it was, I attached my patch as a mercurial bundle to this bug report.

I hope it helped!
Comment 1 Joé Dupuis 2011-07-29 10:59:28 UTC
*** Bug 1255 has been marked as a duplicate of this bug. ***
Comment 2 Ryan C. Gordon 2011-08-21 10:19:49 UTC
This was fixed in hg changeset 68eb59d8baed.

Thanks!

--ryan.