Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484564 - 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)[...]
Summary: app-admin/syslog-ng-3.4.3 - In file included from msg_parse_lib.h:31:0, from ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-11 09:18 UTC by Michal Privoznik
Modified: 2014-01-22 04:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
syslog-ng-3.4.3.patch (syslog-ng-3.4.3.patch,1.01 KB, patch)
2013-09-11 09:18 UTC, Michal Privoznik
Details | Diff
emerge.info (emerge.info,4.79 KB, text/plain)
2013-09-11 09:19 UTC, Michal Privoznik
Details
build.log (build.log,150.46 KB, text/plain)
2013-09-11 15:01 UTC, Michal Privoznik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Privoznik 2013-09-11 09:18:11 UTC
Created attachment 358468 [details, diff]
syslog-ng-3.4.3.patch

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]
emerge.info

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]
build.log
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2014-01-22 04:29:55 UTC
syslog-ng 3.4.3 is gone