|
From: Sam S. <sd...@gn...> - 2011-07-26 14:59:48
|
> * Yaroslav Kavenchuk <xni...@tz...> [2011-07-26 09:54:51 +0300]:
>
>>> #include "lispbibl.c"
>>> #undef listen
>>> #undef close
>>> #undef select
should be fixed.
>>> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
>>> regex.h: No such file or directory
>>> compilation terminated.
>>> make[1]: *** [regexi.o] Error 1
>>> make[1]: Leaving directory `/home/src/clisp/clisp/build-full-debug/regexp'
>>> make: *** [regexp] Error 2
>>
>> does it work if you add -I/home/src/clisp/clisp/src/gllib to CPPFLAGS in
>> build-full-debug/regexp/Makefile?
>
> no:
>
> regexp/Makefile:
>
> CC = gcc
> CPPFLAGS = -I/home/src/clisp/clisp/src/gllib
> CFLAGS = -g -O2
> CLISP = /home/src/clisp/clisp/build-full-debug/clisp -K boot -E UTF-8
> -Emisc 1:1 -Epathname 1:1 -norc -norc -q
> CLISP_LIBDIR = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\
> CLISP_LINKKIT = G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit
> ...
> regexi.o : regexi.m.c config.h
> $(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) \
> -c regexi.m.c -o regexi.o
>
>
> out:
> cd regexp ; make clisp-module CC="gcc"
> CPPFLAGS="-I/usr/local/include
> -I/home/src/clisp/clisp/build-full-debug/gllib
> -I/home/src/clisp/clisp/build-full-debug" CFLAGS="-g -O2 -W -Wswitch
> -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
> -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral
> -falign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
> -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/include
> -DDYNAMIC_FFI -I." CLFLAGS="" LIBS="-lintl
> /usr/local/lib/libreadline.dll.a -L/usr/local/lib -ltermcap -ldl
> /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -luser32 -lole32
> -loleaut32 -luuid -liconv -L/usr/local/lib -lsigsegv libgnu.a -lws2_32"
> RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.dll
> make[1]: Entering directory `/home/src/clisp/clisp/build-full-debug/regexp'
> gcc -I/usr/local/include -I/home/src/clisp/clisp/build-full-debug/gllib
> -I/home/src/clisp/clisp/build-full-debug -g -O2 -W -W
> switch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
> -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -fal
> ign-functions=4 -D_WIN32 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
> -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -I/usr/local/includ
> e -DDYNAMIC_FFI -I.
> -IG:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\linkkit \
> -c regexi.m.c -o regexi.o
> g:/gnu/home/src/clisp/clisp/modules/regexp/regexi.c:12:19: fatal error:
> regex.h: No such file or directory:\
why do I not see -I/home/src/clisp/clisp/src/gllib in the gcc command
line above?
btw, how come msys tools report the path
G:\\gnu\\home\\src\\clisp\\clisp\\build-full-debug\\
as
/home/src/clisp/clisp/build-full-debug/
how are these paths converted?
>> did the top-level configure find readline?
>
> yes
>
>> what findings did it report?
>
> Configure findings:
> FFI: yes (user requested: default)
> readline: yes (user requested: yes)
> libsigsegv: yes
> ./makemake --with-dynamic-ffi --with-dynamic-modules=no --verbose=yes
> --with-debug --with-readline --with-module=dirkey --with-module=pcre
> --with-module=rawsock --with-module=bindings/win32
> --with-libreadline-prefix=/usr/local --with-libtermcap-prefix=/usr/local
> --with-libpcre-prefix=/usr/local --with-module=zlib --with-module=libsvm
> --disable-maintainer-mode --srcdir=../src
> --win32gcc > Makefile
>
>> grep READLINE config.h
>
> $ grep READLINE config.h
> #define HAVE_DECL_RL_GNU_READLINE_P 1
> #define HAVE_DECL_RL_READLINE_NAME 1
> #define HAVE_READLINE /**/
> #define HAVE_READLINE_READLINE_H 1
> #define READLINE_CONST const
> #define READLINE_FILE_COMPLETE rl_filename_completion_function
>
>> grep readline config.cache
>
> $ grep readline config.cache
> ac_cv_func_readline=${ac_cv_func_readline=yes}
> ac_cv_have_decl_rl_gnu_readline_p=${ac_cv_have_decl_rl_gnu_readline_p=yes}
> ac_cv_have_decl_rl_readline_name=${ac_cv_have_decl_rl_readline_name=yes}
> ac_cv_have_readline=${ac_cv_have_readline=yes}
> ac_cv_header_readline_readline_h=${ac_cv_header_readline_readline_h=yes}
> ac_cv_use_readline=${ac_cv_use_readline=yes}
> cl_cv_proto_readline_const=${cl_cv_proto_readline_const=const}
was readline/configure passed the --with-libreadline-prefix=/usr/local option?
if not, why not?
please look at config.log and see how gcc is invoked in the failed
tests.
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://memri.org http://honestreporting.com http://dhimmi.com
http://jihadwatch.org http://camera.org http://www.PetitionOnline.com/tap12009/
Trespassers will be shot. Survivors will be prosecuted.
|