Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 93709 invoked from network); 12 May 2006 20:47:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 20:47:58 -0000 Received: (qmail 44669 invoked by uid 500); 12 May 2006 20:47:56 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 44627 invoked by uid 500); 12 May 2006 20:47:56 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 44616 invoked by uid 99); 12 May 2006 20:47:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 13:47:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [63.85.107.47] (HELO gate.altair.com) (63.85.107.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 13:47:55 -0700 Received: from trexch.prog.altair.com (trexch.prog.altair.com [204.235.24.100]) by gate.altair.com (Postfix) with ESMTP id 35E7E1ED3A; Fri, 12 May 2006 16:47:34 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Compiling with __USE_LARGEFILE64 on linux (RH8). Date: Fri, 12 May 2006 16:47:33 -0400 Message-ID: <91FBE7AEE91B454282AE05FE79413A4A03678363@trexch.prog.altair.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Compiling with __USE_LARGEFILE64 on linux (RH8). Thread-Index: AcZ16/A9SM5xgS0dRHquLQmIRsscnQAFo3GQ From: "Scott Greig" To: "Garrett Rooney" Cc: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I tried rebuilding apr(1.1.1) with LFS enabled. There seemed to be a problem with simply passing '--enable-lfs' to configure. The configure script temporarily adds the -D__USE_LARGEFILE64 then removes it using $apr_save_CPPFLAGS? So I forced it to add -D__USE_LARGEFILE64 to CPPFLAGS and setting APR_HAS_LARGE_FILES=3D1. Still the apr_dir_read fails to return the correct file names.=20 After further investigation I found that linux has a readdir64 function that takes a dirent64 structure neither appear to be used by apr/file_io/unix/dir.c? I'm looking into adding support to apr_arch_file_io.h Let me know if I'm missing something. Thanks - Scott > -----Original Message----- > From: rooneg@gmail.com [mailto:rooneg@gmail.com] On Behalf Of=20 > Garrett Rooney > Sent: Friday, May 12, 2006 1:46 PM > To: Scott Greig > Cc: dev@apr.apache.org > Subject: Re: Compiling with __USE_LARGEFILE64 on linux (RH8). >=20 > On 5/12/06, Scott Greig wrote: > > > > I'm building an application that requires large file=20 > support enabled=20 > > (__USE_LARGEFILE64). I'm finding apr_dir_read does not populate=20 > > apr_finfo_t correctly and as a result the fname field=20 > contains garbage. > > If I remove the __USE_LARGEFILE64 flag it work correctly. > > > > I thought I'd check if anyone else has had this problem=20 > before I look=20 > > for a solution. >=20 > If I understand correctly, you can't just define=20 > __USE_LARGEFILE64 and expect APR to work with large files. =20 > Depending on the version of APR you're using you can compile=20 > it with LFS support, and then it will work, but that's not=20 > quite the same thing. >=20 > -garrett >=20