I had some problems compiling Clisp 2.38 since the
build would constantly fail while trying to compile the
regexp module, complaining that a number of macros were
undefined identifiers. Some careful investigating
revealed that gcc was #including the system regex.h
file (from /usr/include) which is part of Glibc (I'm
using version 2.3.6). The Glibc version of regex.h does
not define such things as REG_TRANSLATE_TYPE, which
caused the build to explode.
Going to clisp's regexp/regex.c file and changing the
line that said #include <regex.h> to #include "regex.h"
solved the problem by having the build rely on the
local copy of the header file. Even though there *was*
a -I. option, I think GCC (I'm using version 4.0.2)
still gave /usr/include higher precedence.
Log in to post a comment.