[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] [perl bindings] Bizarre copy of UNKNOWN in subroutine

From: Stéphane Gaudreault <stephane_at_archlinux.org>
Date: Thu, 7 Jul 2011 06:48:49 -0400

Le 6 juillet 2011 05:42:15, Philip Martin a écrit :
> Stéphane Gaudreault <stephane_at_archlinux.org> writes:
> > # apr-1-config --cflags
> >
> > -pthread
> >
> > # apr-1-config --cppflags
> >
> > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
>
> So that is the standard APR with large-file support. APR doesn't use
> -D_FILE_OFFSET_BITS=64 because it defines its own 64bit apr_off_t and
> uses that. Subversion follows APR and also uses apr_off_t. The Swig
> generated code should only depend on APR/Subversion types.
>
> I don't know what has gone wrong.
>
> What is the typdef line for apr_off_t in apr.h? It should be something
> that is 64bit irrespective of _FILE_OFFSET_BITS.

typedef off64_t apr_off_t;

> Are there any occurences of plain off_t in the Swig generated code?
>
> grep '[^_]off_t' subversion/bindings/swig/perl/native/*c

No.

apr version 1.4.5, apr-util version 1.3.12.
Received on 2011-07-07 12:49:26 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.