Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: #include problem for generated files included in system.h



On Tue, May 10, 2011 at 05:45:10PM +0100, Peter Stephenson wrote:
> > > While we're at it the name "system.h" has always seemed a bit
> > > generic to me, and therefore likely to clash with something.
> > I'll see if I can do that separately.
> Seems trivial, so I've renamed it to zsh_system.h.
Have you tried to build a fresh cvs/git checkout?  I am getting:

make[2]: Entering directory `/usr/src/RPM/BUILD/zsh-4.3.11/Src'
i586-alt-linux-gcc -c -I. -I../Src -I../Src -I../Src/Zle -I. -I/usr/include/pcre -DHAVE_CONFIG_H -pipe -Wall -g -O2 -march=i586 -mtune=i686  -o builtin.o builtin.c
In file included from zsh.mdh:17:0,
                 from builtin.c:33:
zsh_system.h:868:26: fatal error: zshcurses.h: No such file or directory
compilation terminated.
make[2]: *** [builtin.o] Error 1

Attached patch fixes this.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index a1c0edc..1dc017b 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -98,6 +98,8 @@ zshpaths.h: Makemod $(CONFIG_INCS)
 	    echo "Updated \`zshpaths.h'." ; \
 	fi
 
+zsh_system.h: zshcurses.h zshterm.h
+
 bltinmods.list: modules.stamp mkbltnmlst.sh $(dir_top)/config.modules
 	srcdir='$(sdir)' CFMOD='$(dir_top)/config.modules' \
 	  $(SHELL) $(sdir)/mkbltnmlst.sh $@

Attachment: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author