[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-zile] 2.2.60: replacement regex does not build
From: |
Christian Weisgerber |
Subject: |
[Bug-zile] 2.2.60: replacement regex does not build |
Date: |
Fri, 1 Aug 2008 22:06:29 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
The included GNU regex code in zile 2.2.60 does not build, at least
not on systems that don't already use GNU libc.
The first problem is that search.c uses struct re_registers. This is
defined in regex.h, but only inside #ifdef __USE_GNU.
After adding -D__USE_GNU to CPPFLAGS, the build then blows up trying
to compile regcomp.c into regcomp.o. Actually, regcomp.c, regexec.c,
and regex_internal.c are #include'd into regex.c and can't be
compiled on their own.
--------------->
--- src/Makefile.am.orig Fri Aug 1 21:46:47 2008
+++ src/Makefile.am Fri Aug 1 21:46:57 2008
@@ -84,7 +84,7 @@
zile_LDADD = $(LDADD) $(LIBOBJS)
if !HAVE_REGEX_H
-zile_LDADD += regcomp.o regex.o regexec.o regex_internal.o
+zile_LDADD += regex.o
AM_CPPFLAGS += -Ireplacement_regex
endif
<---------------
This finally dies when regex_internal.h tries to unconditionally
include <alloca.h>, which doesn't exist. As far as I can tell, the
regex code relies on other parts of GNU libc that implement alloca()
or a replacement thereof.
At this point I give up.
--
Christian "naddy" Weisgerber address@hidden
- [Bug-zile] 2.2.60: replacement regex does not build,
Christian Weisgerber <=