Re: [ANNOUNCE] GIT 1.6.1
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Dec 25, 2008, 11:42 UTC
- Message-ID
- <49537197.1000805@lsrfire.ath.cx>
- In-Reply-To
- <20081225102527.GB8451@b2j>
bill lam schrieb:
Show 26 quoted lines
>> Why are you building with NO_UINTMAX_T to begin with? Isn't ubuntu 8.10 a >> recent enough platform that ships with modern enough header files that >> define ANSI uintmax_t type? > > No, I did not do anything on that, > > make clean > ./configure --prefix=/usr > make > > and this is the error logged. > > GIT_VERSION = 1.6.1 > * new build flags or prefix > In file included from /usr/include/netinet/in.h:24, > from git-compat-util.h:78, > from builtin.h:4, > from fast-import.c:142: > /usr/include/stdint.h:136: error: conflicting types for ‘uint32_t’ > /usr/include/stdint.h:52: error: previous declaration of ‘uint32_t’ was here > fast-import.c: In function ‘parse_progress’: > fast-import.c:2339: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result > make: *** [fast-import.o] Error 1 > > version of gcc: > gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2
I don't get any error on Ubuntu 8.10 on x86_64 (but several of those warnings about ignored return values), neither with the tar file nor a cloned repository (in the former case I had to add a "make configure" step, though).
Line 52 of /usr/include/stdint.h: typedef unsigned int uint32_t;
Lines 134-136 of /usr/include/stdint.h: #if __WORDSIZE == 64 typedef long int intmax_t; typedef unsigned long int uintmax_t;
If you get to line 136, you probably are on a 64 bit installation, too, correct?
configure seems to be confused. What happens if you take it out of the equation, i.e. run the following commands?
$ make distclean $ make prefix=/usr
René