From owner-freebsd-current Sun Jun 3 22:43: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 453CB37B401 for ; Sun, 3 Jun 2001 22:43:00 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f545h0M40592 for ; Sun, 3 Jun 2001 22:43:00 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 1F1DE380E; Sun, 3 Jun 2001 22:43:00 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: mjacob@feral.com Cc: current@FreeBSD.ORG Subject: Re: compiler bug or source bug? In-Reply-To: Date: Sun, 03 Jun 2001 22:43:00 -0700 From: Peter Wemm Message-Id: <20010604054300.1F1DE380E@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Jacob wrote: > > This has been going on for at least a week for alpha: > > cc -O -pipe -mcpu=ev4 -Wall -pedantic -c /usr/src/usr.bin/fetch/fetch.c > /usr/src/usr.bin/fetch/fetch.c: In function `stat_display': > /usr/src/usr.bin/fetch/fetch.c:131: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:131: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:134: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:134: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c: In function `stat_end': > /usr/src/usr.bin/fetch/fetch.c:173: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:173: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c: In function `fetch': > /usr/src/usr.bin/fetch/fetch.c:301: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:301: warning: long long int format, off_t arg > (arg 2) > /usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg > (arg 4) > /usr/src/usr.bin/fetch/fetch.c:358: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:358: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:361: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:361: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg > (arg 4) > /usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg > (arg 3) > /usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll' > length modifier > /usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg > (arg 4) These are a false alarm. FWIW, in the alpha: peter@ashburton[10:39pm]~-126> ./s sizeof(int) = 4 sizeof(long) = 8 sizeof(long long) = 8 We could make off_t a long long on the alpha. Otherwise the formats need: printf("%lld", (long long) pos); /* or %qd to shut up the ANSI warning */ > /usr/src/usr.bin/fetch/fetch.c: In function `main': > /usr/src/usr.bin/fetch/fetch.c:758: `fetchAuthMethod' undeclared (first use i n > this function) > /usr/src/usr.bin/fetch/fetch.c:758: (Each undeclared identifier is reported > only once > /usr/src/usr.bin/fetch/fetch.c:758: for each function it appears in.) > *** Error code 1 > > Can somebody decide what's right here and let me know? It's blocking > buildwords for alphas. This is something broken in your build tree. fetchAuthMethod is declared in . src/Makefile.inc1 does a 'make beforeinstall' in libfetch to install fetch.h into the include tree. fetch(1) should see it just the same as on the i386. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message