From owner-freebsd-current@FreeBSD.ORG Fri Apr 16 08:30:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D4F816A4CE for ; Fri, 16 Apr 2004 08:30:37 -0700 (PDT) Received: from mail.dt.e-technik.uni-dortmund.de (mail.dt.e-technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA0DA43D58 for ; Fri, 16 Apr 2004 08:30:36 -0700 (PDT) (envelope-from matthias.andree@gmx.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])679B711A1C; Fri, 16 Apr 2004 17:30:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 5BB0C92FB1; Fri, 16 Apr 2004 17:30:26 +0200 (CEST) Received: from merlin.emma.line.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23826-05-5; Fri, 16 Apr 2004 17:30:19 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 363ACAC1FA; Fri, 16 Apr 2004 17:30:16 +0200 (CEST) To: Sam Varshavchik In-Reply-To: (Sam Varshavchik's message of "Fri, 09 Apr 2004 17:53:46 -0400") References: From: Matthias Andree Date: Fri, 16 Apr 2004 17:30:13 +0200 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: by amavisd-new at m2a2.dyndns.org X-Mailman-Approved-At: Sat, 17 Apr 2004 06:09:44 -0700 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: courier-cone@lists.sourceforge.net cc: freebsd-current@freebsd.org Subject: GCC flaw in FreeBSD5? Cone 0.58 does not compile (was: [cone] Cone 0.58 released.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 15:30:37 -0000 --=-=-= Sam Varshavchik writes: > Download: http://www.courier-mta.org/download.php#cone > > This release expands support to many more East Asian character sets; > adds the capability to search within the currently shown message; a > configuration option for the default "post-and-mail" setting for netnews > posts; and view/modify IMAP access control lists. > > Note: the new poll()-based internal I/O processing is not fully tested > and may cause regressions on some platforms. 0.58 - without any patches - does not compile on FreeBSD 5-CURRENT: gmake[2]: Entering directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail' gmake all-am gmake[3]: Entering directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail' Compiling mbox.C mbox.C: In member function `bool mail::mbox::scan(mail::file&, mail::file*, bool, std::set, std::allocator >*, bool, mail::callback*)': mbox.C:1246: error: base operand of `->' has non-pointer type `mail::file' mbox.C:1283: error: base operand of `->' has non-pointer type `mail::file' gmake[3]: *** [mbox.o] Error 1 gmake[3]: Leaving directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail' gmake[2]: *** [all] Error 2 The code looks fine and compiles fine on SuSE Linux 8.2 with an updated vanilla GCC 3.3.3. Given that mail::file has an operator FILE *() that returns the FILE* pointer, I don't see what the compiler wants to tell me. Cc:'ing FreeBSD-current. > 1149 bool mail::mbox::scan(mail::file &scanFile, > 1150 mail::file *saveFile, ... 1243 // Remember how big the saveFile was, 1244 // originally. 1245 > 1246 if (fstat(fileno(*saveFile), &stat_buf) < 0) 1247 { 1248 return false; 1249 } 1250 ... 1280 { 1281 // Potential short cut. 1282 > 1283 if (fstat(fileno(scanFile), &stat_buf) < 0) 1284 { 1285 return false; 1286 } 1287 -bash-2.05b# gmake --version GNU Make 3.80 -bash-2.05b# gcc --version (g++ is the same version, I checked) gcc (GCC) 3.3.3 [FreeBSD] 20031106 Config.log is attached. -- Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95 --=-=-=--