[MacPorts] #24067: zlib 1.2.4 causes build failures because off64_t is not defined on Mac OS X

MacPorts noreply at macports.org
Wed Mar 17 05:54:32 PDT 2010


#24067: zlib 1.2.4 causes build failures because off64_t is not defined on Mac OS X
--------------------------------+-------------------------------------------
 Reporter:  gellule.xg@…        |       Owner:  ryandesign@…           
     Type:  defect              |      Status:  assigned               
 Priority:  Normal              |   Milestone:                         
Component:  ports               |     Version:                         
 Keywords:                      |        Port:  zlib                   
--------------------------------+-------------------------------------------

Comment(by msm@…):

 i experienced this problem as well, but i found that off64_t is defined on
 osx in sys/dtrace.h. here is the solution i arrived at:

 {{{
 --- zconf.h.orig        2010-03-16 23:57:38.000000000 -0400
 +++ zconf.h     2010-03-17 08:49:15.000000000 -0400
 @@ -377,6 +377,9 @@

  #ifdef _LARGEFILE64_SOURCE
  #  include <sys/types.h>
 +#if defined(__APPLE__)
 +#  include <sys/dtrace.h>
 +#endif
  #endif

  #ifndef SEEK_SET
 }}}

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


More information about the macports-tickets mailing list