From: Jack U. <jd...@gm...> - 2007-10-31 01:18:36
|
On 10/29/07, Sam Steingold <sd...@gn...> wrote: > > * Yaroslav Kavenchuk <xnirapuhx@wragl.ol> [2007-10-29 10:25:49 +0200]: > > > In file included from wildcard.c:4: > > config.h:147:1: warning: "fnmatch" redefined > > In file included from wildcard.c:1: > > ../clisp.h:127:1: warning: this is the location of the previous definition > > wildcard.c:5:21: fnmatch.h: No such file or directory > > this should be fixed in the CVS. After updating and rebuilding, it looks like build/gllib/fnmatch.h is not being found by gcc when compiling wildcard.c, so perhaps we're just missing an additional -I directive? gcc -mno-cygwin -I/usr/local/include -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive -optimizations -falign-functions=4 -D_WIN32 -DUNICODE -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI -I. -I.. -c wildcard.c In file included from wildcard.c:1: ../clisp.h:613: warning: register used for two global register variables wildcard.c:5:21: fnmatch.h: No such file or directory wildcard.c: In function `module__wildcard__init_function_2': wildcard.c:55: error: `gnu_fnmatch' undeclared (first use in this function) wildcard.c:55: error: (Each undeclared identifier is reported only once wildcard.c:55: error: for each function it appears in.) make[1]: *** [wildcard.o] Error 1 make[1]: Leaving directory `/d/projects/third_party/working-dirs/clisp/build/wildcard' make: *** [wildcard] Error 2 The following works for me but presumably there is some automake magic needed instead: RCS file: /cvsroot/clisp/clisp/modules/wildcard/Makefile.in,v retrieving revision 1.14 diff -r1.14 Makefile.in 25c25 < $(CC) $(CPPFLAGS) $(CFLAGS) -I$(INCLUDES) -c wildcard.c --- > $(CC) $(CPPFLAGS) $(CFLAGS) -I$(INCLUDES) -I../gllib -c wildcard.c -- Jack Unrue |