zsh-workers
 help / color / mirror / code / Atom feed
* RE: Compile error
       [not found] <000901c102c9$4f55f540$450000c0@kenpc.cms.aust.com>
  2001-07-02  7:41 ` Compile error Andrej Borsenkow
@ 2001-07-03  8:37 ` Andrej Borsenkow
  1 sibling, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 2001-07-03  8:37 UTC (permalink / raw)
  To: ZSH Workers Mailing List

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]


>
>
gcc -c -I.  -DHAVE_CONFIG_H -D__sco  -Wall -Wno-implicit -Wmissing-prototype
s -O2  -o builtin.o builtin.c
> In file included from builtin.c:30:
> zsh.mdh:15: sigcount.h: No such file or directory
> In file included from builtin.c:30:
> zsh.mdh:30: builtin.epro: No such file or directory

...

Well, the immediate problem is that depenencies for zsh.mdh are missing in
generated Makemod :

zsh.mdh:
        @$(MAKE) -f $(makefile) $(MAKEDEFS) zsh.mdh.tmp
        @mv -f zsh.mdh.tmp zsh.mdh
        @echo "Updated \`zsh.mdh'."

instead of correct one:

zsh.mdh:  ../config.h system.h zsh.h sigcount.h signals.h prototypes.h
hashtable.h ztype.h  zsh.mdhi
        @$(MAKE) -f $(makefile) $(MAKEDEFS) zsh.mdh.tmp
        @mv -f zsh.mdh.tmp zsh.mdh
        @echo "Updated \`zsh.mdh'."

I have been staring at it for some time without avail. I can understand how
${headers} may disappear, but not zsh.mdhi; it is generated here:

        echo "${mddname}.mdh: ${modhdeps} ${headers} ${hdrdeps}
${mddname}.mdhi"
        echo "  @\$(MAKE) -f \$(makefile) \$(MAKEDEFS) ${mddname}.mdh.tmp"
        echo "  @mv -f ${mddname}.mdh.tmp ${mddname}.mdh"
        echo "  @echo \"Updated \\\`${mddname}.mdh'.\""

so if zsh.mdh appears there at all, it should have at least zsh.mdhi
dependency.

Makemod attached.

-andrej

[-- Attachment #2: Makemod --]
[-- Type: application/octet-stream, Size: 21025 bytes --]

##### Makemod.in generated automatically by mkmakemod.sh
##### DO NOT EDIT!

##### ===== DEFINITIONS ===== #####

makefile = Makemod
dir_top = ..
subdir = Src

MODOBJS = modobjs.zsh
MODULES =
MDDS    = zsh.mdd
MDHS    = zsh.mdh
PROTOS  = proto.zsh
SUBDIRS = Builtins Modules Zle

ENTRYOBJ = $(dir_src)/modentry..o
NNTRYOBJ =
ENTRYOPT = -emodentry
NNTRYOPT =

##### ===== INCLUDING Makemod.in.in ===== #####

#
# Makemod.in.in
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose.  The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#

# ========== OVERRIDABLE VARIABLES ==========

# subdir is done by mkmakemod.sh
# dir_top is done by mkmakemod.sh
# SUBDIRS is done by mkmakemod.sh


#
# Makefile fragment for version numbers
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose.  The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#

# This must also serve as a shell script, so do not add spaces around the
# `=' signs.

VERSION=4.0.2
VERSION_DATE='June 25, 2001'

# source/build directories
sdir            = .
sdir_top        = ..
INSTALL         = .././install-sh -c


#
# Basic Makefile definitions
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose.  The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#

# fundamentals
SHELL = /bin/sh

EXEEXT = 

# install basename
tzsh            = zsh

# installation directories
prefix          = /usr/local
exec_prefix     = ${prefix}
bindir          = ${exec_prefix}/bin
libdir          = ${exec_prefix}/lib
MODDIR          = $(libdir)/$(tzsh)/$(VERSION)
infodir         = ${prefix}/info
mandir          = ${prefix}/man
datadir         = ${prefix}/share
fndir           = ${prefix}/share/zsh/${VERSION}/functions
sitefndir       = ${prefix}/share/zsh/site-functions
htmldir         = $(datadir)/$(tzsh)/htmldoc

# compilation
CC              = gcc
CPP             = gcc -E
CPPFLAGS        = 
DEFS            = -DHAVE_CONFIG_H
CFLAGS          = -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2
LDFLAGS         = 
EXTRA_LDFLAGS   = 
DLCFLAGS        = -fPIC
DLLDFLAGS       = 
LIBLDFLAGS      =  -s
EXELDFLAGS      =  -s
LIBS            = -lsocket -ldl -ltermcap -lm  -lc
DL_EXT          = so
DLLD            = gcc
EXPOPT          = 
IMPOPT          = 

# utilities
AWK             = nawk
YODL            = yodl
YODL2TXT        = $(YODL)2txt
YODL2HTML       = $(YODL)2html

# install utility
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA    = ${INSTALL} -m 644

# variables used in determining what to install
FUNCTIONS_SUBDIRS = no

# flags passed to recursive makes in subdirectories
MAKEDEFS = \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
libdir='$(libdir)' MODDIR='$(MODDIR)' infodir='$(infodir)' mandir='$(mandir)' \
datadir='$(datadir)' fndir='$(fndir)' htmldir='$(htmldir)' \
CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' \
LDFLAGS='$(LDFLAGS)' EXTRA_LDFLAGS='$(EXTRA_LDFLAGS)' \
DLCFLAGS='$(DLCFLAGS)' DLLDFLAGS='$(DLLDFLAGS)' \
LIBLDFLAGS='$(LIBLDFLAGS)' EXELDFLAGS='$(EXELDFLAGS)' \
LIBS='$(LIBS)' DL_EXT='$(DL_EXT)' DLLD='$(DLLD)' \
AWK='$(AWK)' YODL='$(YODL)' YODL2TXT='$(YODL2TXT)' YODL2HTML='$(YODL2HTML)' \
FUNCTIONS_INSTALL='$(FUNCTIONS_INSTALL)' tzsh='$(tzsh)'

# override built-in suffix list
.SUFFIXES:

sdir_src      = $(sdir_top)/Src
dir_src       = $(dir_top)/Src

# ========== COMPILATION RULES ==========

DNCFLAGS =

COMPILE     = $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $(DNCFLAGS)
DLCOMPILE   = $(CC) -c -I. $(CPPFLAGS) $(DEFS) -DMODULE $(CFLAGS) $(DLCFLAGS)
LINK        = $(CC) $(LDFLAGS) $(EXELDFLAGS) $(EXTRA_LDFLAGS) -o $@
DLLINK      = $(DLLD) $(LDFLAGS) $(LIBLDFLAGS) $(DLLDFLAGS) -o $@

KNR_OBJ=.o
KNROBJ=._foo_

ANSIOBJ=.o
ANSI_OBJ=._foo_

.SUFFIXES: .c .$(DL_EXT) ..o .._foo_ .o ._foo_ .syms .pro .epro

.c$(ANSIOBJ):
	$(COMPILE) -o $@ $<
	@rm -f $(dir_src)/stamp-modobjs

.c$(KNROBJ):
	$(dir_src)/ansi2knr $< > $@.c
	$(COMPILE) -o $@ $@.c
	rm -f $@.c
	@rm -f $(dir_src)/stamp-modobjs

.c.$(ANSIOBJ):
	$(DLCOMPILE) -o $@ $<

.c.$(KNROBJ):
	$(dir_src)/ansi2knr $< > $@.c
	$(DLCOMPILE) -o $@ $@.c
	rm -f $@.c

.c.syms:
	$(AWK) -f $(sdir_src)/makepro.awk $< $(subdir) > $@

.syms.epro:
	(echo '/* Generated automatically */'; sed -n '/^E/{s/^E//;p;}' < $<) \
		> $@
	(echo '/* Generated automatically */'; sed -n '/^L/{s/^L//;p;}' < $<) \
		> `echo $@ | sed 's/\.epro$$/.pro/'`

PROTODEPS = $(sdir_src)/makepro.awk

# ========== DEPENDENCIES FOR BUILDING ==========

all: modobjs modules
.PHONY: all

modobjs: $(MODOBJS)
modules: $(MODULES)
headers: $(MDHS)
proto: $(PROTOS)
.PHONY: modobjs modules headers proto

prep:
	@case $(sdir_top) in \
	    /*) top_srcdir=$(sdir_top) ;; \
	    *) top_srcdir=$(subdir)/$(sdir_top) ;; \
	esac; \
	export top_srcdir; \
	cd $(dir_top) || exit 1; \
	subdirs='$(SUBDIRS)'; \
	for subdir in $$subdirs; do \
	    dir=$(subdir)/$$subdir; \
	    test -d $$dir || mkdir $$dir; \
	    $(SHELL) $$top_srcdir/Src/mkmakemod.sh $$dir Makefile || exit 1; \
	    ( cd $$dir && $(MAKE) $(MAKEDEFS) $@ ) || exit 1; \
	done
.PHONY: prep

headers prep: $(dir_src)/modules.stamp
$(dir_src)/modules.stamp: $(MDDS)
	echo 'timestamp for *.mdd files' > $@
.PHONY: headers

FORCE:
.PHONY: FORCE

# ========== DEPENDENCIES FOR INSTALLING ==========

install: install.bin install.modules
uninstall: uninstall.bin uninstall.modules
.PHONY: install uninstall

install.bin: install.bin-here
uninstall.bin: uninstall.bin-here
install.modules: install.modules-here
uninstall.modules: uninstall.modules-here
.PHONY: install.bin uninstall.bin install.modules uninstall.modules

install.bin-here uninstall.bin-here:
install.modules-here uninstall.modules-here:
.PHONY: install.bin-here install.modules-here

# ========== DEPENDENCIES FOR CLEANUP ==========


#
# Makefile fragment for cleanup
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose.  The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#

mostlyclean: mostlyclean-recursive mostlyclean-here
clean:       clean-recursive       clean-here
distclean:   distclean-recursive   distclean-here
realclean:   realclean-recursive   realclean-here

mostlyclean-here:
clean-here: mostlyclean-here
distclean-here: clean-here
realclean-here: distclean-here

mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
	@subdirs='$(SUBDIRS)'; if test -n "$$subdirs"; then \
	  target=`echo $@ | sed s/-recursive//`; \
	  for subdir in $$subdirs; do \
	    (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
	  done; \
	fi

mostlyclean-here:
	rm -f *.o *.export *.$(DL_EXT)
.PHONY: mostlyclean-here

clean-here:
	rm -f *.o.c *.syms *.pro *.epro *.mdh *.mdhi *.mdhs *.mdh.tmp
.PHONY: clean-here

distclean-here:
	rm -f $(makefile) $(makefile).in
.PHONY: distclean-here

# ========== RECURSIVE MAKES ==========

install.bin uninstall.bin install.modules uninstall.modules \
modobjs modules headers proto:
	@subdirs='$(SUBDIRS)'; for subdir in $$subdirs; do \
	  ( cd $$subdir && $(MAKE) $(MAKEDEFS) $@ ) || exit 1; \
	done

# ========== DEPENDENCIES FOR MAINTENANCE ==========

$(makefile): $(makefile).in $(dir_top)/config.status
	@case $(sdir_top) in \
	    /*) top_srcdir=$(sdir_top) ;; \
	    *) top_srcdir=$(subdir)/$(sdir_top) ;; \
	esac; \
	export top_srcdir; \
	echo 'cd $(dir_top) && $(SHELL)' \
	    '$$top_srcdir/Src/mkmakemod.sh -m $(subdir) $(makefile)'; \
	cd $(dir_top) && \
	    $(SHELL) $$top_srcdir/Src/mkmakemod.sh -m $(subdir) $(makefile)

$(makefile).in: $(sdir_src)/mkmakemod.sh $(sdir_src)/Makemod.in.in $(MDDS) \
	$(dir_top)/config.modules
	@case $(sdir_top) in \
	    /*) top_srcdir=$(sdir_top) ;; \
	    *) top_srcdir=$(subdir)/$(sdir_top) ;; \
	esac; \
	export top_srcdir; \
	echo 'cd $(dir_top) && $(SHELL)' \
	    '$$top_srcdir/Src/mkmakemod.sh -i $(subdir) $(makefile)'; \
	cd $(dir_top) && \
	    $(SHELL) $$top_srcdir/Src/mkmakemod.sh -i $(subdir) $(makefile)


##### ===== DEPENDENCIES GENERATED FROM zsh.mdd ===== #####

MODOBJS_zsh = builtin.o compat.o cond.o exec.o glob.o hashtable.o hist.o init.o input.o jobs.o lex.o linklist.o loop.o math.o mem.o module.o options.o params.o parse.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o watch.o
MODDOBJS_zsh = builtin..o compat..o cond..o exec..o glob..o hashtable..o hist..o init..o input..o jobs..o lex..o linklist..o loop..o math..o mem..o module..o options..o params..o parse..o pattern..o prompt..o signals..o signames..o string..o subst..o text..o utils..o watch..o  $(NNTRYOBJ)
SYMS_zsh = builtin.syms compat.syms cond.syms exec.syms glob.syms hashtable.syms hist.syms init.syms input.syms jobs.syms lex.syms linklist.syms loop.syms math.syms mem.syms module.syms options.syms params.syms parse.syms pattern.syms prompt.syms signals.syms signames.syms string.syms subst.syms text.syms utils.syms watch.syms 
EPRO_zsh = builtin.epro compat.epro cond.epro exec.epro glob.epro hashtable.epro hist.epro init.epro input.epro jobs.epro lex.epro linklist.epro loop.epro math.epro mem.epro module.epro options.epro params.epro parse.epro pattern.epro prompt.epro signals.epro signames.epro string.epro subst.epro text.epro utils.epro watch.epro
INCS_zsh = $(EPRO_zsh) 
EXPIMP_zsh =  $(EXPOPT)zsh.export
NXPIMP_zsh =
LINKMODS_zsh = 
NOLINKMODS_zsh = 

proto.zsh: $(EPRO_zsh)
$(SYMS_zsh): $(PROTODEPS)

zsh.export: $(SYMS_zsh)
	( echo '#!'; cat $(SYMS_zsh) | sed -n '/^X/{s/^X//;p;}' | sort -u ) > $@

modobjs.zsh: $(MODOBJS_zsh)
	echo '' $(MODOBJS_zsh) >> $(dir_src)/stamp-modobjs.tmp

zsh.mdhi: zsh.mdhs $(INCS_zsh)
	@test -f $@ || echo 'do not delete this file' > $@

zsh.mdhs: zsh.mdd
	@$(MAKE) -f $(makefile) $(MAKEDEFS) zsh.mdh.tmp
	@if cmp -s zsh.mdh zsh.mdh.tmp; then \
	    rm -f zsh.mdh.tmp; \
	    echo "\`zsh.mdh' is up to date."; \
	else \
	    mv -f zsh.mdh.tmp zsh.mdh; \
	    echo "Updated \`zsh.mdh'."; \
	fi
	echo 'timestamp for zsh.mdh against zsh.mdd' > $@

zsh.mdh: 
	@$(MAKE) -f $(makefile) $(MAKEDEFS) zsh.mdh.tmp
	@mv -f zsh.mdh.tmp zsh.mdh
	@echo "Updated \`zsh.mdh'."

zsh.mdh.tmp:
	@( \
	    echo '#ifndef have_zshQsmain_module'; \
	    echo '#define have_zshQsmain_module'; \
	    echo; \
	    echo '# ifndef IMPORTING_MODULE_zshQsmain'; \
	    if test no = yes; then \
		echo '#  ifndef MODULE'; \
	    fi; \
	    echo '#   define boot_ boot_zshQsmain'; \
	    echo '#   define cleanup_ cleanup_zshQsmain'; \
	    echo '#   define setup_ setup_zshQsmain'; \
	    echo '#   define finish_ finish_zshQsmain'; \
	    if test no = yes; then \
		echo '#  endif /* !MODULE */'; \
	    fi; \
	    echo '# endif /* !IMPORTING_MODULE_zshQsmain */'; \
	    echo; \
	    echo '/* Extra headers for this module */'; \
	    for hdr in ../config.h system.h zsh.h sigcount.h signals.h prototypes.h hashtable.h ztype.h; do \
		if test -f $$hdr; then \
		    echo '# include "'$$hdr'"'; \
		else \
		    echo '# include "$(sdir)/'$$hdr'"'; \
		fi; \
	    done; \
	    echo; \
	    echo '# undef mod_import_variable'; \
	    echo '# undef mod_import_function'; \
	    echo '# if defined(IMPORTING_MODULE_zshQsmain) &&  defined(MODULE)'; \
	    echo '#  define mod_import_variable '; \
	    echo '#  define mod_import_function '; \
	    echo '# else'; \
	    echo '#  define mod_import_function'; \
	    echo '#  define mod_import_variable'; \
	    echo '# endif /* IMPORTING_MODULE_zshQsmain && MODULE */'; \
	    for epro in $(EPRO_zsh); do \
		echo '# include "'$$epro'"'; \
	    done; \
	    echo '# undef mod_import_variable'; \
	    echo '# define mod_import_variable'; \
	    echo '# undef mod_import_variable'; \
	    echo '# define mod_import_variable'; \
	    echo '# ifndef mod_export'; \
	    echo '#  define mod_export '; \
	    echo '# endif /* mod_export */'; \
	    echo; \
	    echo '#endif /* !have_zshQsmain_module */'; \
	) > $@

$(MODOBJS_zsh) $(MODDOBJS_zsh): zsh.mdh


#
# Makefile fragment for building Makefiles
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose.  The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#

config: Makefile
	@subdirs='$(SUBDIRS)'; for subdir in $$subdirs; do \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
	done

CONFIG_INCS = \
$(dir_top)/Config/clean.mk $(dir_top)/Config/config.mk \
$(dir_top)/Config/defs.mk $(dir_top)/Config/version.mk

Makefile: Makefile.in $(dir_top)/config.status $(CONFIG_INCS)
	cd $(dir_top) && \
	  CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(dir_top)/Config/defs.mk: $(sdir_top)/Config/defs.mk.in $(dir_top)/config.status
	cd $(dir_top) && \
	  CONFIG_FILES=Config/defs.mk CONFIG_HEADERS= $(SHELL) ./config.status

signames.c: signames1.awk signames2.awk ../config.h /usr/include/sys/signal.h
	$(AWK) -f $(sdir)/signames1.awk /usr/include/sys/signal.h >sigtmp.c
	$(CPP) sigtmp.c >sigtmp.out
	$(AWK) -f $(sdir)/signames2.awk sigtmp.out > $@
	rm -f sigtmp.c sigtmp.out

sigcount.h: signames.c
	grep 'define.*SIGCOUNT' signames.c > $@

init.o: bltinmods.list zshpaths.h zshxmods.h

init.o params.o: version.h

version.h: $(sdir_top)/Config/version.mk
	echo '#define ZSH_VERSION "'$(VERSION)'"' > $@

zshpaths.h: Makemod $(CONFIG_INCS)
	@echo '#define MODULE_DIR "'$(MODDIR)'"' > zshpaths.h.tmp
	@if test x$(sitefndir) != xno; then \
	  echo '#define SITEFPATH_DIR "'$(sitefndir)'"' >> zshpaths.h.tmp; \
	fi
	@if test x$(fndir) != xno; then \
	  echo '#define FPATH_DIR "'$(fndir)'"' >> zshpaths.h.tmp; \
	  if test x$(FUNCTIONS_SUBDIRS) != x -a \
	  x$(FUNCTIONS_SUBDIRS) != xno; then \
	    fpath_tmp="`grep ' functions=.' \
	    $(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
	    -e 's/^.* functions=//'`"; \
	    fpath_tmp=`for f in $$fpath_tmp; do \
	      echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%' -e 's%/\*%%'; \
	    done | sort | uniq`; \
	    fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
	    echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \
	    >>zshpaths.h.tmp; \
	  fi; \
	fi
	@if cmp -s zshpaths.h zshpaths.h.tmp; then \
	    rm -f zshpaths.h.tmp; \
	    echo "\`zshpaths.h' is up to date." ; \
	else \
	    mv -f zshpaths.h.tmp zshpaths.h; \
	    echo "Updated \`zshpaths.h'." ; \
	fi

bltinmods.list: modules.stamp mkbltnmlst.sh $(dir_top)/config.modules
	srcdir='$(sdir)' CFMOD='$(dir_top)/config.modules' \
	  $(SHELL) $(sdir)/mkbltnmlst.sh $@

zshxmods.h: $(dir_top)/config.modules
	@echo "Creating \`$@'."
	@( \
	    for q_mod in `grep ' load=yes' $(dir_top)/config.modules | \
	      grep ' link=static' | sed -e '/^#/d' -e 's/ .*//' \
	        -e 's/^name=//' -e 's,Q,Qq,g;s,_,Qu,g;s,/,Qs,g'`; do \
		test x$q_mod = xzshQsmain && continue; \
	        echo "#define LINKED_XMOD_$$q_mod 1"; \
	    done; \
	    for q_mod in `grep ' load=yes' $(dir_top)/config.modules | \
	      grep ' link=dynamic' | sed -e '/^#/d' -e 's/ .*//' \
	        -e 's/^name=//' -e 's,Q,Qq,g;s,_,Qu,g;s,/,Qs,g'`; do \
		test x$q_mod = x && continue; \
	        echo "#ifdef DYNAMIC"; \
		echo "# define UNLINKED_XMOD_$$q_mod 1"; \
		echo "#endif"; \
	    done; \
	) > $@

clean-here: clean.zsh
clean.zsh:
	rm -f sigcount.h signames.c bltinmods.list version.h zshpaths.h zshxmods.h

# This is not properly part of this module, but it is built as if it were.
main.o: main.c zsh.mdh main.epro
	$(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) -o $@ $(sdir)/main.c

main.syms: $(PROTODEPS)
proto.zsh: main.epro

##### End of Makemod.in

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

* RE: Compile error
       [not found] <000901c102c9$4f55f540$450000c0@kenpc.cms.aust.com>
@ 2001-07-02  7:41 ` Andrej Borsenkow
  2001-07-03  8:37 ` Andrej Borsenkow
  1 sibling, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 2001-07-02  7:41 UTC (permalink / raw)
  To: ZSH Workers Mailing List, Ken Moorley


[Moved to zsh-workers]

Please, send complete typescript of make. For some reason none of scripts
run. Do you use GNU make or native make? I'm afraid, native make will not
work (I could not make it work on my system).

-andrej

> -----Original Message-----
> From: Ken Moorley [mailto:kmoorley@cms.aust.com]
> Sent: Monday, July 02, 2001 11:34 AM
> To: zsh Users
> Subject: Compile error
>
>
> zsh version               : 4.0.2
> host operating system     : i686-pc-sco3.2v5.0.5
> source code location      : .
> compiler                  : gcc
> preprocessor flags        :
> executable compiler flags
> : -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O
> 2
> executable linker flags   :   -s
> library flags             : -lsocket -ldl -ltermcap -lm  -lc
> installation basename     : zsh
> binary install path       : /usr/local/bin
> man page install path     : /usr/local/man
> info install path         : /usr/local/info
> functions install path    : /usr/local/share/zsh/4.0.2/functions
> See config.modules for installed modules and functions.
>
> creating Config/defs.mk
> creating Makefile
> creating Doc/Makefile
> creating Etc/Makefile
> creating Src/Makefile
> creating Test/Makefile
> creating config.h
> config.h is unchanged
>
>
> Would some one please help with the following compile error:-
>
> gcc -c -I.  -DHAVE_CONFIG_H -D__sco  -Wall -Wno-implicit
> -Wmissing-prototype
> s -O
> 2  -o builtin.o builtin.c
> In file included from builtin.c:30:
> zsh.mdh:15: sigcount.h: No such file or directory
> In file included from builtin.c:30:
> zsh.mdh:30: builtin.epro: No such file or directory
> zsh.mdh:31: compat.epro: No such file or directory
> zsh.mdh:32: cond.epro: No such file or directory
> zsh.mdh:33: exec.epro: No such file or directory
> zsh.mdh:34: glob.epro: No such file or directory
> zsh.mdh:35: hashtable.epro: No such file or directory
> zsh.mdh:36: hist.epro: No such file or directory
> zsh.mdh:37: init.epro: No such file or directory
> zsh.mdh:38: input.epro: No such file or directory
> zsh.mdh:39: jobs.epro: No such file or directory
> zsh.mdh:40: lex.epro: No such file or directory
> zsh.mdh:41: linklist.epro: No such file or directory
> zsh.mdh:42: loop.epro: No such file or directory
> zsh.mdh:43: math.epro: No such file or directory
> zsh.mdh:44: mem.epro: No such file or directory
> zsh.mdh:45: module.epro: No such file or directory
> zsh.mdh:46: options.epro: No such file or directory
> zsh.mdh:47: params.epro: No such file or directory
> zsh.mdh:48: parse.epro: No such file or directory
> zsh.mdh:49: pattern.epro: No such file or directory
> zsh.mdh:50: prompt.epro: No such file or directory
> zsh.mdh:51: signals.epro: No such file or directory
> zsh.mdh:52: signames.epro: No such file or directory
> zsh.mdh:53: string.epro: No such file or directory
> zsh.mdh:54: subst.epro: No such file or directory
> zsh.mdh:55: text.epro: No such file or directory
> zsh.mdh:56: utils.epro: No such file or directory
> zsh.mdh:57: watch.epro: No such file or directory
> builtin.c:31: builtin.pro: No such file or directory
> make[2]: *** [builtin.o] Error 1
> make[2]: Leaving directory `/data2/u2/work/ken/src/zsh/zsh-4.0.2/Src'
> make[1]: *** [modobjs] Error 2
> make[1]: Leaving directory `/data2/u2/work/ken/src/zsh/zsh-4.0.2/Src'
> make: *** [all] Error 1
>
>
>
> Regards,
>
> Ken Moorley
> Computer Management Services
> Tel: 02 9488 5759
> Fax: 02 9488 5770
> Email: kmoorley@cms.aust.com
> WWW: www.cms-sols.com.au
>
>


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

end of thread, other threads:[~2001-07-03  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <000901c102c9$4f55f540$450000c0@kenpc.cms.aust.com>
2001-07-02  7:41 ` Compile error Andrej Borsenkow
2001-07-03  8:37 ` Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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