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

MacPorts noreply at macports.org
Thu Mar 18 01:38: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 andre.david@…):

 Replying to [comment:28 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
 > }}}


 This allows me to continue building `qt4-mac`.

 ps - I noticed that there is a `zconf.h.in` and a `zconf.h.cmakein`. In my
 case patching the former was enough.

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


More information about the macports-tickets mailing list