Re: Build failure with fastcgi module

Sam Steingold <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <m1h93ku40x.fsf@clr-sds>
> * Jerry James <[email protected]> [2017-02-20 12:29:24 -0700]:
>
> The clisp package is currently failing to build in Fedora Rawhide, due
> to this build failure in the fastcgi module:
>
> In file included from
> /builddir/build/BUILD/clisp-2.49/modules/fastcgi/fastcgi_wrappers.c:24:0:
> /builddir/build/BUILD/clisp-2.49/build/gllib/unistd.h:139:3: error:
> #error "Please include config.h first."
>   #error "Please include config.h first."
>    ^~~~~
>
> Is this perhaps related to the recent gnulib update?  Simply adding
> "#include <config.h>" to the top of fastcgi_wrappers.c fixed the
> problem for me.  Regards,

gnulib itself fails to compile with the same error:

--8<---------------cut here---------------start------------->8---
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
depbase=`echo c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -DHAVE_CONFIG_H -I. -I../../src/gllib -I..   -I/usr/local/include -I/usr/local/opt/readline/include  -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type -Wmissing-declarations -Wimplicit -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -ggdb -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT  -fno-common -DPIC  -MT c-ctype.o -MD -MP -MF $depbase.Tpo -c -o c-ctype.o ../../src/gllib/c-ctype.c &&\
        mv -f $depbase.Tpo $depbase.Po
clang: warning: optimization flag '-falign-functions=4' is not supported
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:29:3: error: "Please include config.h first."
 #error "Please include config.h first."
  ^
../../src/gllib/c-ctype.h:31:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
../../src/gllib/c-ctype.h:168:15: error: expected ';' after top level declarator
C_CTYPE_INLINE bool
              ^
              ;
../../src/gllib/c-ctype.h:182:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:182:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:197:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:197:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:214:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:214:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:220:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:220:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:232:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:232:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:244:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:244:16: error: expected identifier or '('
C_CTYPE_INLINE bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:244:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:244:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:259:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:259:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:271:1: error: unknown type name '_GL_EXTERN_INLINE'
C_CTYPE_INLINE bool
^
../../src/gllib/c-ctype.c:2:24: note: expanded from macro 'C_CTYPE_INLINE'
#define C_CTYPE_INLINE _GL_EXTERN_INLINE
                       ^
In file included from ../../src/gllib/c-ctype.c:3:
../../src/gllib/c-ctype.h:271:16: error: expected identifier or '('
C_CTYPE_INLINE bool
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h:31:14: note: expanded from macro 'bool'
#define bool _Bool
             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [c-ctype.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [gllib] Error 2
--8<---------------cut here---------------end--------------->8---




-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net
http://camera.org http://think-israel.org http://americancensorship.org
Parachute for sale, used once, never opened, small stain.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.