You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@rdu26-58-158.nc.rr.com> on 2001/07/27 18:48:46 UTC

server/Makefile.in, exports.c broken on some systems

(sorry if this is a dup; just sent it from wrong system, and it
is sure to get held until somebody can verify)

I've seen this on OS/390 and Solaris...

*.h in this section

EXPORT_FILES = $(top_srcdir)/include/*.h \
       $(top_srcdir)/os/$(OS_DIR)/*.h \
       $(top_srcdir)/srclib/apr/include/*.h \
       $(top_srcdir)/srclib/apr-util/include/*.h

exports.c: $(EXPORT_FILES)
        $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES)
        > $@

is not being expanded by make, and it bails out with a message like
this since there is no file foo/*.h:

make: Error -- FSUM9415 Don't know how to make
/u/trawick/apache/httpd-2.0/include/*.h

I haven't looked into this yet.  Maybe somebody knows a trick to get
the wildcards expanded?
--
Jeff Trawick

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: server/Makefile.in, exports.c broken on some systems

Posted by Jeff Trawick <tr...@attglobal.net>.
Jeff Trawick <tr...@rdu26-58-158.nc.rr.com> writes:

> I've seen this on OS/390 and Solaris...
> 
> *.h in this section
> 
> EXPORT_FILES = $(top_srcdir)/include/*.h \
>        $(top_srcdir)/os/$(OS_DIR)/*.h \
>        $(top_srcdir)/srclib/apr/include/*.h \
>        $(top_srcdir)/srclib/apr-util/include/*.h
> 
> exports.c: $(EXPORT_FILES)
>         $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES)
>         > $@
> 
> is not being expanded by make, and it bails out with a message like
> this since there is no file foo/*.h:
> 
> make: Error -- FSUM9415 Don't know how to make
> /u/trawick/apache/httpd-2.0/include/*.h

I can't seem to fix this in a timely manner.  I tried something like
this in Makefile[.in] but it isn't always run:

exports.c:
        @bldit="0" ; \
        echo "what to do? " ; \
        if test -f exports.c ; then \
            echo "looking for newer headers" ; \
            headers="`find $(top_srcdir) -name '*.h' -newer
        exports.c`" ; \
            echo "headers $$headers" ; \
            if test -n "$$headers"; then \
                echo Found newer headers.  Will rebuild exports.c ; \
                bldit="1" ; \
            fi ; \
        else \
            bldit="1" ; \
        fi ; \
        if test "$$bldit" = "1" ; then \
        $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES)
        > $@ ; \
        fi

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...