* git-shell build error
@ 2008-07-21 0:29 SungHyun Nam
2008-07-21 0:43 ` [PATCH] Fix git-shell build error when NO_SETENV is defined Stephan Beyer
0 siblings, 1 reply; 5+ messages in thread
From: SungHyun Nam @ 2008-07-21 0:29 UTC (permalink / raw)
To: git
Hello,
If NO_SETENV is defined, git-shell cannot be built.
Simply adding the 'compat/setenv.o' to the make rule fixes the problem.
Regards,
[master] ~/srcs/git[30]$ LANG= make
LINK git-shell
Undefined first referenced
symbol in file
gitsetenv exec_cmd.o
ld: fatal: Symbol referencing errors. No output written to git-shell
collect2: ld returned 1 exit status
make: *** [git-shell] Error 1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Fix git-shell build error when NO_SETENV is defined
2008-07-21 0:29 git-shell build error SungHyun Nam
@ 2008-07-21 0:43 ` Stephan Beyer
2008-07-21 1:23 ` Johannes Schindelin
0 siblings, 1 reply; 5+ messages in thread
From: Stephan Beyer @ 2008-07-21 0:43 UTC (permalink / raw)
To: SungHyun Nam; +Cc: git, gitster, Stephan Beyer
If NO_SETENV is defined, git-shell could not be built.
Thanks to SungHyun Nam for the hint.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
This was my mistake. I haven't tested with several build options.
Now I've tested with
NO_SETENV=1 NO_EXPAT=1 NO_MEMMEM=1 NO_STRTOUMAX=1 NO_MKDTEMP=1
NO_SYS_SELECT_H=1 NO_SYMLINK_HEAD=1
and compat/setenv.o seems to be the only one that was missing.
Regards.
Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 2b670d7..b650ee6 100644
--- a/Makefile
+++ b/Makefile
@@ -1203,7 +1203,8 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
-git-shell$X: compat/strlcpy.o abspath.o ctype.o exec_cmd.o quote.o strbuf.o usage.o wrapper.o shell.o
+git-shell$X: compat/strlcpy.o compat/setenv.o abspath.o ctype.o exec_cmd.o \
+ quote.o strbuf.o usage.o wrapper.o shell.o
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^)
$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
--
1.5.6.3.390.g7b30
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix git-shell build error when NO_SETENV is defined
2008-07-21 0:43 ` [PATCH] Fix git-shell build error when NO_SETENV is defined Stephan Beyer
@ 2008-07-21 1:23 ` Johannes Schindelin
2008-07-21 1:29 ` Stephan Beyer
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2008-07-21 1:23 UTC (permalink / raw)
To: Stephan Beyer; +Cc: SungHyun Nam, git, gitster
Hi,
On Mon, 21 Jul 2008, Stephan Beyer wrote:
> If NO_SETENV is defined, git-shell could not be built.
>
> Thanks to SungHyun Nam for the hint.
>
> Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
> ---
>
> This was my mistake. I haven't tested with several build options.
> Now I've tested with
> NO_SETENV=1 NO_EXPAT=1 NO_MEMMEM=1 NO_STRTOUMAX=1 NO_MKDTEMP=1
> NO_SYS_SELECT_H=1 NO_SYMLINK_HEAD=1
> and compat/setenv.o seems to be the only one that was missing.
Funny. It was not 24 hours ago that Hannes reported a related issue. And
he was testing with different options.
His fix to include COMPAT_OBJECTS made much more sense, too, than to pick
selectively a file here and a file there and then hoping that you catch
all.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix git-shell build error when NO_SETENV is defined
2008-07-21 1:23 ` Johannes Schindelin
@ 2008-07-21 1:29 ` Stephan Beyer
2008-07-21 1:33 ` Johannes Schindelin
0 siblings, 1 reply; 5+ messages in thread
From: Stephan Beyer @ 2008-07-21 1:29 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: SungHyun Nam, git, gitster
Johannes Schindelin wrote:
> Funny. It was not 24 hours ago that Hannes reported a related issue. And
> he was testing with different options.
Oh, seems that I have missed that topic. Gna :)
But fine if everything is working again then.
Regards.
--
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix git-shell build error when NO_SETENV is defined
2008-07-21 1:29 ` Stephan Beyer
@ 2008-07-21 1:33 ` Johannes Schindelin
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2008-07-21 1:33 UTC (permalink / raw)
To: Stephan Beyer; +Cc: SungHyun Nam, git, gitster
Hi,
On Mon, 21 Jul 2008, Stephan Beyer wrote:
> Johannes Schindelin wrote:
> > Funny. It was not 24 hours ago that Hannes reported a related issue. And
> > he was testing with different options.
>
> Oh, seems that I have missed that topic. Gna :)
>
> But fine if everything is working again then.
No, it is not.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-21 1:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 0:29 git-shell build error SungHyun Nam
2008-07-21 0:43 ` [PATCH] Fix git-shell build error when NO_SETENV is defined Stephan Beyer
2008-07-21 1:23 ` Johannes Schindelin
2008-07-21 1:29 ` Stephan Beyer
2008-07-21 1:33 ` Johannes Schindelin
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).