Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#66342 closed defect (fixed)

libsdl2 @2.26.0_0+x11 build fail on OS X 10.8

Reported by: chillin- Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: chillin-, RobK88
Port: libsdl2

Description

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:91:98: error: expected ')'
        CVDisplayLinkSetOutputCallback(self->displayLink, &DisplayLinkCallback, (__bridge void * _Nullable) self);
                                                                                                 ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:91:81: note: to match this '('
        CVDisplayLinkSetOutputCallback(self->displayLink, &DisplayLinkCallback, (__bridge void * _Nullable) self);
                                                                                ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:103:107: error: no visible @interface for 'SDLOpenGLContext' declares the selector 'pixelFormat'
        CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(self->displayLink, [self CGLContextObj], [[self pixelFormat] CGLPixelFormatObj]);
                                                                                                     ~~~~ ^~~~~~~~~~~
2 errors generated.
make: *** [build/SDL_cocoaopengl.lo] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0" && /usr/bin/make -j4 -w all V=1 
Exit code: 2
Error: Failed to build libsdl2: command execution failed

Macmini5,2

OS X 10.8.5

Xcode 5.1.1

Attachments (3)

main.log (493.9 KB) - added by chillin- 22 months ago.
libsdl2 build fail main.log
main.2.log (493.9 KB) - added by chillin- 22 months ago.
second mail.log
main.3.log (494.6 KB) - added by chillin- 22 months ago.
maij.log 3

Download all attachments as: .zip

Change History (16)

Changed 22 months ago by chillin-

Attachment: main.log added

libsdl2 build fail main.log

comment:1 Changed 22 months ago by chillin-

Summary: libsdl2 build fail on OS X 10.8libsdl2 @2.26.0_0+x11 build fail on OS X 10.8

comment:2 Changed 22 months ago by jmroot (Joshua Root)

Keywords: libsdl2 removed
Owner: set to jmroot
Status: newaccepted

comment:3 Changed 22 months ago by RobK88

FYI -- It also fails to build on Lion 10.7.5

comment:4 Changed 22 months ago by RobK88

Cc: RobK88 added

comment:5 Changed 22 months ago by jmroot (Joshua Root)

comment:6 Changed 22 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: acceptedclosed

In cfe6853b501a817a1a6606027d15eb3be4ce6636/macports-ports (master):

libsdl2: build fix for Xcode < 7

Closes: #66342

Changed 22 months ago by chillin-

Attachment: main.2.log added

second mail.log

comment:7 Changed 22 months ago by chillin-

still fail

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:91:98: error: expected ')'
        CVDisplayLinkSetOutputCallback(self->displayLink, &DisplayLinkCallback, (__bridge void * _Nullable) self);
                                                                                                 ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:91:81: note: to match this '('
        CVDisplayLinkSetOutputCallback(self->displayLink, &DisplayLinkCallback, (__bridge void * _Nullable) self);
                                                                                ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0/src/video/cocoa/SDL_cocoaopengl.m:103:107: error: no visible @interface for 'SDLOpenGLContext' declares the selector 'pixelFormat'
        CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(self->displayLink, [self CGLContextObj], [[self pixelFormat] CGLPixelFormatObj]);
                                                                                                     ~~~~ ^~~~~~~~~~~
2 errors generated.
make: *** [build/SDL_cocoaopengl.lo] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.26.0" && /usr/bin/make -j4 -w all V=1 
Exit code: 2
Error: Failed to build libsdl2: command execution failed

comment:8 Changed 22 months ago by chillin-

Resolution: fixed
Status: closedreopened

comment:9 Changed 22 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

Your log doesn't show any of the new patches I added being applied.

Changed 22 months ago by chillin-

Attachment: main.3.log added

maij.log 3

comment:10 Changed 22 months ago by chillin-

Does this one?

Sorry, I thought I waited long enough. How long does it usually take to replicate?

comment:11 Changed 22 months ago by jmroot (Joshua Root)

Now you have the first fix but not the second. I'm not sure exactly how long it takes for rsync to update (and it would depend on which mirror you use.) Probably give it a couple hours to be completely sure.

comment:12 Changed 22 months ago by chillin-

Thanks, will do. sleep 7200

comment:13 Changed 22 months ago by chillin-

All good. Thanks again.

Note: See TracTickets for help on using tickets.