[syslog-ng] Issue installing syslog-ng 3.0.1 on debian etch

ILLES, Marton illes.marton at balabit.hu
Fri Feb 6 14:56:59 CET 2009


On Thu, 2009-02-05 at 18:19 +0100, steven wrote:
> Hi there
> 
> I'm actually struggling. 'Configure' is doing fine, but 'make' always 
> drops me at :
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog     -D_BSD_SOURCE 
> -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -D_GNU_SOURCE 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -MT 
> logmatcher.o -MD -MP -MF ".deps/logmatcher.Tpo" -c -o logmatcher.o 
> logmatcher.c; \
>         then mv -f ".deps/logmatcher.Tpo" ".deps/logmatcher.Po"; else rm 
> -f ".deps/logmatcher.Tpo"; exit 1; fi
> logmatcher.c: In function 'log_matcher_pcre_re_compile':
> logmatcher.c:509: error: 'PCRE_NEWLINE_ANYCRLF' undeclared (first use in 
> this function)
> logmatcher.c:509: error: (Each undeclared identifier is reported only once
> logmatcher.c:509: error: for each function it appears in.)
> make[3]: *** [logmatcher.o] Error 1
> make[3]: Leaving directory `/home/swn/syslog-ng-3.0.1/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/swn/syslog-ng-3.0.1'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/swn/syslog-ng-3.0.1'
> make: *** [build-stamp] Error 2
> 
> 
> I tried on both i386 and amd64 architecture. If needed I can provide my 
> config.log. Evtlog, libnet1 and libwrap* are installed. Oh yes, and of 
> course this happens only when I --enable-pcre. Otherwise it compiles 
> perfectly.
> Any ideas ?

Hi,

The etch version of libpcre3 (6.7+7.4-4) does not define
PCRE_NEWLINE_ANYCRLF to maintain backward compatibility with 6.7 API.
(Hmm, maybe we should check for API version in configure or somewhere
around, or simply depend on newer version.)

As a quick fix, you can try modify the pcre.h file shipped with debian
(as it is a 7.4 version technically) or use a self-compiled pcre.

>From debian shipped pcre.h
/* We lie here about the version number, in order not to confuse
   existing build dependencies.  All post-6.7 API additions have been
   disabled as well. */

#define PCRE_MAJOR          6
#define PCRE_MINOR          7
#define PCRE_PRERELEASE
#define PCRE_DATE           2007-10-28

And latter:
#if 0
/* Disabled to preserve API compatibility with version 6.7. */
#define PCRE_NEWLINE_ANY        0x00400000
#define PCRE_NEWLINE_ANYCRLF    0x00500000
#define PCRE_BSR_ANYCRLF        0x00800000
#define PCRE_BSR_UNICODE        0x01000000
#endif /* disabled for API compatibility */

Hope it helps.

Marton
-- 
Key fingerprint = F78C 25CA 5F88 6FAF EA21 779D 3279 9F9E 1155 670D




More information about the syslog-ng mailing list