From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roger Mc Murtrie Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile-1.8.3 Intel Mac Leopard compilation fails due to no off64_t Date: Wed, 9 Jan 2008 14:09:15 +1100 Message-ID: <2D5BB484-47AC-4D05-B8D7-2F65A3A75FBA@iinet.net.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199848171 17072 80.91.229.12 (9 Jan 2008 03:09:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 03:09:31 +0000 (UTC) To: Roger Mc Murtrie , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jan 09 04:09:51 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCRKA-0002eZ-6h for guile-bugs@m.gmane.org; Wed, 09 Jan 2008 04:09:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCRJm-0004uX-V8 for guile-bugs@m.gmane.org; Tue, 08 Jan 2008 22:09:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCRJi-0004sC-Lh for bug-guile@gnu.org; Tue, 08 Jan 2008 22:09:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCRJf-0004rB-RY for bug-guile@gnu.org; Tue, 08 Jan 2008 22:09:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCRJf-0004r8-Ne for bug-guile@gnu.org; Tue, 08 Jan 2008 22:09:19 -0500 Original-Received: from outbound.icp-qv1-irony-out3.iinet.net.au ([203.59.1.148]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCRJf-00071r-4O for bug-guile@gnu.org; Tue, 08 Jan 2008 22:09:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAJrJg0fL2Tu0/2dsb2JhbAAIqVs X-IronPort-AV: E=Sophos;i="4.24,260,1196607600"; d="scan'208";a="211562492" Original-Received: from unknown (HELO [10.0.1.2]) ([203.217.59.180]) by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 09 Jan 2008 12:09:15 +0900 In-Reply-To: X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3674 Archived-At: Similiar problem with filesys.c Compiles by changing in _scm.h #define dirent_or_dirent64 CHOOSE_LARGEFILE(dirent,dirent64) to #define dirent_or_dirent64 dirent Now some resulting link problems to sort out! Regards Roger On 09/01/2008, at 2:00 PM, Roger Mc Murtrie wrote: > Compilation of guile-1.8.3 fports.c failed as the stat64 package in > Mac OSX Leopard does not seem to declare off64_t. > only off_t seems to be declared. > > From fstat64 man: > > int > fstat64(int fildes, struct stat64 *buf); > > The buf argument is a pointer to a stat or stat64 structure as > defined by > > struct stat64 { > dev_t st_dev; /* ID of device containing > file */ > mode_t st_mode; /* Mode of file (see > below) */ > nlink_t st_nlink; /* Number of hard links */ > ino64_t st_ino; /* File serial number */ > uid_t st_uid; /* User ID of the file */ > gid_t st_gid; /* Group ID of the file */ > dev_t st_rdev; /* Device ID */ > struct timespec st_atimespec; /* time of last access */ > struct timespec st_mtimespec; /* time of last data > modification */ > struct timespec st_ctimespec; /* time of last status > change */ > struct timespec st_birthtimespec; /* time of file > creation(birth) */ > off_t st_size; /* file size, in bytes */ > blkcnt_t st_blocks; /* blocks allocated for > file */ > blksize_t st_blksize; /* optimal blocksize for I/ > O */ > uint32_t st_flags; /* user defined flags for > file */ > uint32_t st_gen; /* file generation number */ > int32_t st_lspare; /* RESERVED: DO NOT USE! */ > int64_t st_qspare[2]; /* RESERVED: DO NOT USE! */ > }; > > HISTORY > An lstat() function call appeared in 4.2BSD. The stat64(), > fstat64(), and lstat64() system calls first > appeared in Mac OS X 10.5 (Leopard). > > Note: > off_t st_size; /* file size, in bytes */ > is the same as in the struct stat > > To get fports.c to compile: > In _scm.h I changed > #define off_t_or_off64_t > CHOOSE_LARGEFILE(off_t,off64_t) > to > #define off_t_or_off64_t off_t > and in fports.c fport_seek I changed > off64_t to off_t > > Possibly one of the many bugs in Mac OSX Leopard? > > Regards > Roger