[MacPorts] #15123: py-game tries to use framework version of libsdl

MacPorts trac at macosforge.org
Fri Apr 25 06:11:24 PDT 2008


#15123: py-game tries to use framework version of libsdl
---------------------------------+------------------------------------------
  Reporter:  cpettitt at gmail.com  |       Owner:  jmr at macports.org        
      Type:  defect              |      Status:  closed                  
  Priority:  Normal              |   Milestone:  Port Bugs               
 Component:  ports               |     Version:  1.6.0                   
Resolution:  fixed               |    Keywords:  py-game libsdl-framework
---------------------------------+------------------------------------------
Comment (by cpettitt at gmail.com):

 Thanks jmr. I was not familiar with the "framework" distinction. Your
 patch did indeed remove the dependency.

 I'm seeing a new error now where py-gaem's display extension is trying to
 use X11, but X11 is not being included.

 {{{
 --->  Building py-game with target build
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_python_py-game/work/pygame-1.8.0release" &&
 /opt/local/bin/python2.4 setup.py build " returned error 1
 Command output: /opt/local/include/SDL/SDL_syswm.h:86: warning: no
 semicolon at end of struct or union
 /opt/local/include/SDL/SDL_syswm.h:87: warning: type defaults to 'int' in
 declaration of 'window'
 /opt/local/include/SDL/SDL_syswm.h:87: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:98: error: parse error before
 'fswindow'
 /opt/local/include/SDL/SDL_syswm.h:98: warning: type defaults to 'int' in
 declaration of 'fswindow'
 /opt/local/include/SDL/SDL_syswm.h:98: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:99: error: parse error before
 'wmwindow'
 /opt/local/include/SDL/SDL_syswm.h:99: warning: type defaults to 'int' in
 declaration of 'wmwindow'
 /opt/local/include/SDL/SDL_syswm.h:99: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:102: error: parse error before '*'
 token
 /opt/local/include/SDL/SDL_syswm.h:102: warning: type defaults to 'int' in
 declaration of 'gfxdisplay'
 /opt/local/include/SDL/SDL_syswm.h:102: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:103: error: parse error before '}'
 token
 /opt/local/include/SDL/SDL_syswm.h:103: warning: type defaults to 'int' in
 declaration of 'x11'
 /opt/local/include/SDL/SDL_syswm.h:103: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:104: error: parse error before '}'
 token
 /opt/local/include/SDL/SDL_syswm.h:104: warning: type defaults to 'int' in
 declaration of 'info'
 /opt/local/include/SDL/SDL_syswm.h:104: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:105: error: parse error before '}'
 token
 /opt/local/include/SDL/SDL_syswm.h:105: warning: type defaults to 'int' in
 declaration of 'SDL_SysWMinfo'
 /opt/local/include/SDL/SDL_syswm.h:105: warning: data definition has no
 type or storage class
 /opt/local/include/SDL/SDL_syswm.h:205: error: parse error before '*'
 token
 /opt/local/include/SDL/SDL_syswm.h:205: warning: function declaration
 isn't a prototype
 src/display.c: In function 'get_wm_info':
 src/display.c:310: error: parse error before 'info'
 src/display.c:314: error: request for member 'version' in something not a
 structure or union
 src/display.c:314: error: request for member 'version' in something not a
 structure or union
 src/display.c:314: error: request for member 'version' in something not a
 structure or union
 src/display.c:309: warning: unused variable 'tmp'
 error: command '/usr/bin/gcc-4.0' failed with exit status 1

 Error: Status 1 encountered during processing.
 }}}

 There is a patch in gentoo to disable X11
 (http://bugs.gentoo.org/show_bug.cgi?id=89486), but I'm not familiar
 enough with py-game to know if that is appropriate for the py-game port.

 An alternative, which worked for me, was to modify Setup. I changed:

 {{{
 SDL = -I/opt/local/include/SDL -L/opt/local/lib -Ddarwin  -lSDL
 }}}

 to:

 {{{
 SDL = -I/opt/local/include/SDL -I/usr/X11R6/include -L/opt/local/lib
 -Ddarwin  -lSDL
 }}}

 Should I open a new bug for this? Do you have any guidance on the right
 way to approach this?

 Many thanks,
 Chris

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15123#comment:4>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list