All of lore.kernel.org
 help / color / mirror / Atom feed
* Broken dependencies..
@ 2007-02-27 23:46 Linus Torvalds
  2007-02-27 23:55 ` Johannes Schindelin
  2007-02-28  9:00 ` Andy Parkins
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Torvalds @ 2007-02-27 23:46 UTC (permalink / raw)
  To: Junio C Hamano, Git Mailing List


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

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

* Re: Broken dependencies..
  2007-02-27 23:46 Broken dependencies Linus Torvalds
@ 2007-02-27 23:55 ` Johannes Schindelin
  2007-02-28  9:00 ` Andy Parkins
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2007-02-27 23:55 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Junio C Hamano, Git Mailing List

Hi,

On Tue, 27 Feb 2007, Linus Torvalds wrote:

> 	/home/torvalds/git/fetch.c:137: undefined reference to `type_names'
> 	fetch.o: In function `typename':

I realized that too, and forgot to send out the patch:

-- snip --
[PATCH] fetch.o depends on the headers, too.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

---

 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 20acc78..ce284fa 100644
--- a/Makefile
+++ b/Makefile
@@ -788,7 +788,7 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
 	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
 		$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
 
-$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
+$(LIB_OBJS) $(BUILTIN_OBJS) fetch.o: $(LIB_H)
 $(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
 $(DIFF_OBJS): diffcore.h
 
-- snap --

Ciao,
Dscho

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

* Re: Broken dependencies..
  2007-02-27 23:46 Broken dependencies Linus Torvalds
  2007-02-27 23:55 ` Johannes Schindelin
@ 2007-02-28  9:00 ` Andy Parkins
  2007-02-28 15:00   ` Johannes Schindelin
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Parkins @ 2007-02-28  9:00 UTC (permalink / raw)
  To: git; +Cc: Linus Torvalds, Junio C Hamano

On Tuesday 2007 February 27 23:46, Linus Torvalds wrote:

> 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)?

Would gcc's "-MM" help?  I think qmake uses them when it's generating 
Makefiles.


Andy

-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

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

* Re: Broken dependencies..
  2007-02-28  9:00 ` Andy Parkins
@ 2007-02-28 15:00   ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2007-02-28 15:00 UTC (permalink / raw)
  To: Andy Parkins; +Cc: git, Linus Torvalds, Junio C Hamano

Hi,

On Wed, 28 Feb 2007, Andy Parkins wrote:

> On Tuesday 2007 February 27 23:46, Linus Torvalds wrote:
> 
> > 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)?
> 
> Would gcc's "-MM" help?  I think qmake uses them when it's generating 
> Makefiles.

Would that play nicely with Sun' CC some people seem to use to compile 
Git?

Ciao,
Dscho

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

end of thread, other threads:[~2007-02-28 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 23:46 Broken dependencies Linus Torvalds
2007-02-27 23:55 ` Johannes Schindelin
2007-02-28  9:00 ` Andy Parkins
2007-02-28 15:00   ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.