[collectd] collectd-3.10.1-alt2: rebuild failed
Dmitry V. Levin
ldv at altlinux.org
Tue Oct 17 14:24:15 CEST 2006
On Tue, Oct 17, 2006 at 11:18:24AM +0300, Michael Shigorin wrote:
> On Tue, Oct 17, 2006 at 10:05:39AM +0200, Florian Forster wrote:
> > > after recent gcc/glibc updates collectd was one of packages
> > > which stopped to rebuild (frankly, it was quite a surprise --
> > > since so far it's been total pleasure to package and use).
> > it's surprising for me, too.
> I guess...
> > > In file included from apcups.c:32:
> > > collectd.h:132:1: error: "syslog" redefined
> > > In file included from /usr/include/sys/syslog.h:207,
> > > from /usr/include/syslog.h:1,
> > > from collectd.h:82,
> > > from apcups.c:32:
> > > /usr/include/bits/syslog.h:28:1: error: this is the location of the previous definition
> > Apparently `syslog', the function, is defined in both,
> > <syslog.h> and <bits/syslog.h>. The latter doesn't even exist
> > on systems I've checked so far..
> It exists here (attached just in case).
You should not care about bits/ too much, this directory contains glibc
internals which should not be accessed directly by applications.
But <sys/syslog.h> defines syslog(3) prototype for a long time yet.
So if application defines own syslog() prototype, there is a risk to
conflict with prototype defined by glibc headers. That is, do not define
syslog() prototype, include <syslog.h> instead.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20061017/e89a3498/attachment.pgp
More information about the collectd