Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 484564

Summary: app-admin/syslog-ng-3.4.3 - In file included from msg_parse_lib.h:31:0, from template_lib.c:26: /usr/include/krb5/plugin.h:43:2: error: expected declaration specifiers or ‘...’ before ‘*’ token (*krb5_plugin_initvt_fn)[...]
Product: Gentoo Linux Reporter: Michal Privoznik <miso.privoznik>
Component: [OLD] ServerAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Severity: normal CC: algernon
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: syslog-ng-3.4.3.patch

Description Michal Privoznik 2013-09-11 09:18:11 UTC
Created attachment 358468 [details, diff]

If one tries to compile syslog-ng-3.4.3 he will get some errors. First of all, if kerberos is installed, the error in -I ordering will include kerberos' plugin.h instead of the one provided by syslog-ng. Sight. Moreover, there are two other bugs which may lead to runtime errors and random failures. These are type of: memcpy(ptr1, ptr2, sizeof(ptr1)), while it should be sizeof(*ptr1).

See attached file which should serve as patch to address these issues.
Comment 1 Michal Privoznik 2013-09-11 09:19:55 UTC
Created attachment 358470 [details]

Forgot to attach the 'emerge --info' output. Doing so now.
Comment 2 Gergely Nagy 2013-09-11 10:27:19 UTC
I do not agree with the cfg-lex.l patch: sizeof(block_boundary) returns the correct number (2), while sizeof(*block_boundary) returns the size of a single gchar, which is not what we want there.

The other changes look good, will pick them for the next 3.4 release, thanks!
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-11 13:47:31 UTC
Please attach the entire (failing?) build log to this bug report.
Comment 4 Michal Privoznik 2013-09-11 15:01:32 UTC
Created attachment 358474 [details]
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2014-01-22 04:29:55 UTC
syslog-ng 3.4.3 is gone