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 - GLhandleARB double symbol definition on Mac OSX Lion
Summary: GLhandleARB double symbol definition on Mac OSX Lion
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.0
Hardware: x86_64 Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
: 1255 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-20 12:48 UTC by Joé Dupuis
Modified: 2011-08-21 10:19 UTC (History)
2 users (show)

See Also:


Attachments
Mercurial bundle for the GLhandleARB double symbol definition (7.14 MB, application/octet-stream)
2011-07-20 12:48 UTC, Joé Dupuis
Details

Note You need to log in before you can comment on or make changes to this bug.
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.