git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* compile problem with gcc 2.95
@ 2005-08-29 18:28 Dave Hansen
  2005-08-29 19:10 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Hansen @ 2005-08-29 18:28 UTC (permalink / raw)
  To: Git Mailing List

I know it's an ancient compiler, but last time I checked it is still
faster at runtime than the 3.x versions.  If it's not going to be
supported, it would probably be nice to at least detect that in the
build system.  I've confirmed that it works just fine with gcc 3.3.

dave@spirit:~/bin/git$ make
gcc -o rev-cache.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'
rev-cache.c
In file included from rev-cache.c:2:
cache.h:107: field `name' has incomplete type
cache.h:290: field `base' has incomplete type
cache.h:303: field `pack_name' has incomplete type
cache.h:318: field `name' has incomplete type
make: *** [rev-cache.o] Error 1
dave@spirit:~/bin/git$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

> struct cache_entry {
...
>         char name[]; <--- cache.h:107
> };


-- Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-30  4:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29 18:28 compile problem with gcc 2.95 Dave Hansen
2005-08-29 19:10 ` Junio C Hamano
2005-08-30  4:39   ` [HOWTO] Reverting an existing commit Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).