On Tue, Jan 13, 2004 at 06:31:18PM -0600, Art Haas wrote: > Hi. > > I've been building and using what will be httpd-2.1 for months. Just > within the last week or two, my builds have all failed when I try to run > them. As others are certainly running the CVS head builds without > problems, I'm hoping for a bit of guidance to see if someone can suggest > a fix. > > Here's the end of the 'strace' output - httpd has just started, and the > linker is pulling in all the libraries, when the following occurs:
Did you track this down any further? I've just started seeing segfaults at startup on some builds after updating toolchain/glibc, and found that libc's regcomp/regfree/etc were getting used rather than using pcre. Workaround is below, not quite sure why yet though... Index: include/pcreposix.h =================================================================== RCS file: /home/cvs/httpd-2.0/include/pcreposix.h,v retrieving revision 1.3 diff -u -r1.3 pcreposix.h --- include/pcreposix.h 11 Mar 2001 14:54:13 -0000 1.3 +++ include/pcreposix.h 19 Jan 2004 21:33:30 -0000 @@ -87,10 +87,14 @@ /* The functions */ -extern int regcomp(regex_t *, const char *, int); -extern int regexec(regex_t *, const char *, size_t, regmatch_t *, int); -extern size_t regerror(int, const regex_t *, char *, size_t); -extern void regfree(regex_t *); +#ifndef AP_DECLARE +#define AP_DECLARE(x) x +#endif + +AP_DECLARE(int) regcomp(regex_t *, const char *, int); +AP_DECLARE(int) regexec(regex_t *, const char *, size_t, regmatch_t *, int); +AP_DECLARE(size_t) regerror(int, const regex_t *, char *, size_t); +AP_DECLARE(void) regfree(regex_t *); #ifdef __cplusplus } /* extern "C" */
