git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Next: Johannes Schindelin
Message 1 of 4 in “Broken dependencies..”
  1. Linus TorvaldsFeb 27, 2007
  2. Johannes SchindelinFeb 27, 2007
  3. Andy ParkinsFeb 28, 2007
  4. Johannes SchindelinFeb 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.