[MacPorts] #17527: ffmpeg @15261_0 fails to build on Mac OS X 10.5/PPC

MacPorts noreply at macports.org
Sun Dec 7 14:46:30 PST 2008


#17527: ffmpeg @15261_0 fails to build on Mac OS X 10.5/PPC
-----------------------------------+----------------------------------------
 Reporter:  takanori@…             |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:  Port Bugs                            
Component:  ports                  |     Version:  1.8.0                                
 Keywords:  ffmpeg compat(5)       |        Port:  ffmpeg                               
-----------------------------------+----------------------------------------

Comment(by devans@…):

 OK, patch two does the trick for me.  I assume this works for Leopard as
 well (without the compat stuff)?  If so, I vote to commit it.

 Will do so if no one complains.

 For the record, the compat implementation on Tiger is quite different from
 Leopard.  Instead of _DARWIN_C_SOURCE there is _APPLE_C_SOURCE
 and (from man page)
 {{{
      Defining any of _POSIX_C_SOURCE, _APPLE_C_SOURE, or __LP64__ causes
      library and kernel calls to conform to Version 3 of the Single UNIX
      Specification (``SUSv3'') standards even if doing so would alter the
      behavior of functions used in 10.3.  Defining _POSIX_C_SOURCE also
      removes functions, types, and other interfaces that are not part of
      Version 3 of the Single UNIX Specification (``SUSv3'') from the
 normal C
      namespace, while _APPLE_C_SOURE does not.
 }}}

 so _APPLE_C_SOURCE would have to replace _POSIX_C_SOURCE and the results
 of that might be more wide spread.  This fix is
 a bit brute force but it addresses the problem where it is located without
 messing with the rest of the code too much.

-- 
Ticket URL: <http://trac.macports.org/ticket/17527#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list