[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 13:58:01 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 gellule.xg@…):

 Also, a "zconf.h" patch should actually be applied to zconf.h.in
 (processed by configure into zconf.h) as follows:

 {{{
 --- zconf.h.in.orig     2010-03-17 10:32:37.000000000 -1000
 +++ zconf.h.in  2010-03-17 10:33:13.000000000 -1000
 @@ -377,6 +377,9 @@

  #ifdef _LARGEFILE64_SOURCE
  #  include <sys/types.h>
 +#  ifdef __APPLE__
 +#    define off64_t off_t
 +#  endif
  #endif

  #ifndef SEEK_SET
 }}}

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


More information about the macports-tickets mailing list