[syslog-ng]FOUND: gperf'd src/macros-gperf.c is missing PRI

Roberto Nibali syslog-ng@lists.balabit.hu
Mon, 13 Dec 2004 15:48:45 +0100


Hi,

> This is with libol-0.3.14. I'm adding some more debugging to find_macro().

I found the culprit. We use the gperf'd src/macros-gperf.c which is lacking the 
PRI in struct macro_def wordlist[] and thus it cannot be found by find_macro().

I think it is fixed as follows (no -p1 diff ;)):

--- macros.gprf-orig    Mon Dec 13 15:47:46 2004
+++ macros.gprf Mon Dec 13 15:48:09 2004
@@ -7,6 +7,7 @@
  PRIORITY, M_LEVEL
  LEVEL, M_LEVEL
  TAG, M_TAG
+PRI, M_PRI
  DATE, M_DATE
  FULLDATE, M_FULLDATE
  ISODATE, M_ISODATE

Best regards,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Rathausgasse 31, CH-5001 Aarau  tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------