On 05/25/11 14:44, Reuben Thomas wrote:
On 9 May 2011 17:19, Bruce Korb<[email protected]>  wrote:
On 05/08/11 15:24, Reuben Thomas wrote:

Still missing a header:

...

In file included from lposix.c:25:0:
/usr/local/include/libposix/glob.h:381:23: fatal error: glob-libc.h:
No such file or directory

The derived file "glob.h" unconditionally sources "glob-libc.h".
Therefore, whenever "glob.h" gets used, this file must be handled.
The make file fragment does not ensure this:

Ping? Or were you expecting me to do something?

Well, I don't know what needs to change in the Makefile fragment.
I could figure it out by reverse engineering the mechanism, but
I've not gotten to it.  Either EXTRA_HEADERS or some flavor of
*pkginclude_HEADERS (both?) needs to have glob-libc.h added to it.
My focus on computing life right now is my new job......Sorry.




Makefile.am:
nodist_pkginclude_HEADERS += $(GLOB_H)
EXTRA_HEADERS += glob.h

BUILT_SOURCES += $(GLOB_H)

# We need the following in order to create <glob.h> when the system
# doesn't have one that works with the given compiler.
if GL_GENERATE_GLOB_H
glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) 
$(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
              < $(srcdir)/glob.in.h; \
        } > $@-t && \
        mv -f $@-t $@
else
glob.h: $(top_builddir)/config.status
        rm -f $@
endif
MOSTLYCLEANFILES += glob.h glob.h-t

Reply via email to