Broken dependencies..
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 27, 2007, 23:46 UTC
- Message-ID
- <Pine.LNX.4.64.0702271543080.12485@woody.linux-foundation.org>
Try this on the current git archive:
git checkout master make clean make ... git checkout next make
and at least I get
... gcc -g -O2 -Wall -DSHA1_HEADER='<openssl/sha.h>' -DETC_GITCONFIG='"/home/torvalds/etc/gitconfig"' -DNO_STRLCPY -o git-local-fetch local-fetch.o fetch.o libgit.a xdiff/lib.a -lz -lcrypto fetch.o: In function `process_object': /home/torvalds/git/fetch.c:137: undefined reference to `type_names' fetch.o: In function `typename': /home/torvalds/git/object.h:46: undefined reference to `type_names' collect2: ld returned 1 exit status
apparently because fetch.c wasn't recompiled and it used the old fetch.o.
Ugh. I take full blame for the Makefile being a total mess, and us not doing proper dependencies, but I'm too lazy to fix it. Any ideas on how to generate real dependency data so that we don't have these kinds of things (I bet there are other files than just fetch.c that lack the full header file dependencies, this one just happened to trigger now)?
Linus