Date: Sun, 03 Jun 2001 22:43:00 -0700 From: Peter Wemm <peter@wemm.org> To: mjacob@feral.com Cc: current@FreeBSD.ORG Subject: Re: compiler bug or source bug? Message-ID: <20010604054300.1F1DE380E@overcee.netplex.com.au> In-Reply-To: <Pine.BSF.4.21.0106032228220.78535-100000@beppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <fetch.h>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010604054300.1F1DE380E>