From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VwGTm-00052g-JU for ptxdist@pengutronix.de; Thu, 26 Dec 2013 20:20:23 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VwGTk-00015k-KF for ptxdist@pengutronix.de; Thu, 26 Dec 2013 20:20:20 +0100 Received: from p5DCBEB37.dip0.t-ipconnect.de ([93.203.235.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Dec 2013 20:20:20 +0100 Received: from felix.mellmann by p5DCBEB37.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Dec 2013 20:20:20 +0100 From: Felix Mellmann Date: Thu, 26 Dec 2013 19:19:54 +0000 (UTC) Message-ID: References: <20131207184035.GA14105@static.117.165.47.78.clients.your-server.de> <20131209141310.GB2415@pengutronix.de> Mime-Version: 1.0 Subject: Re: [ptxdist] 32 or 64 bits file offsets? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Michael Olbrich writes: > > > Don't add an extra option. Just use PTXCONF_GLOBAL_LARGE_FILE. > > Michael > At last, I didn't investigate on how to enable proper large file support for Apache Portable Runtime (apr), but I'd like to suggest a patch which will override sizeof(off_t) to be in line with sizeof(size_t). In case of a 64 bit cross compiling host, sizeof(off_t) will lead to a value of 8 instead of 4. In my particular case, using subversion (svn) fails with unexpected errors. Since APR is used by apache webserver as well, modifing sizeof(off_t) will also have an effect on apache but this is untested. The maintainers may add my address and name as signed-off. Regards, Felix diff -urdN ptxdist-2013.12.0/rules/apr.make ptxdist-2013.12.0.debugged/rules/apr.make --- ptxdist-2013.12.0/rules/apr.make 2013-12-18 10:48:42.000000000 +0100 +++ ptxdist-2013.12.0.debugged/rules/apr.make 2013-12-26 20:05:11.205107001 +0100 @@ -32,6 +32,7 @@ APR_CONF_ENV := \ $(CROSS_ENV) \ ac_cv_file__dev_zero=yes \ + ac_cv_sizeof_off_t=4 \ ac_cv_sizeof_size_t=4 \ ac_cv_sizeof_ssize_t=4 \ ac_cv_struct_rlimit=yes \ -- ptxdist mailing list ptxdist@pengutronix.de