Hi all Problem solved : I probably had a bad version of pcre.h as PCRE_NEWLINE_ANYCRLF was disabled in /usr/include/pcre.h : #define PCRE_NEWLINE_LF 0x00200000 #define PCRE_NEWLINE_CRLF 0x00300000 #if 0 /* Disabled to preserve API compatibility with version 6.7. */ #define PCRE_NEWLINE_ANY 0x00400000 #define PCRE_NEWLINE_ANYCRLF 0x00500000 So I patched src/logmatcher.c : from : flags |= PCRE_NEWLINE_ANYCRLF; to : flags |= PCRE_NEWLINE_LF | PCRE_NEWLINE_CRLF; Now compile is just doing fine :) Thanks for your time. Regards Steven steven a écrit :
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 ?
Thank you very much Steven ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html