[collectd] Compilation issue on Solaris 10

Sebastian Harl sh at tokkee.org
Thu Aug 2 12:55:17 CEST 2012


Hi,

On Fri, Jun 01, 2012 at 02:35:08PM +0100, Maciej (Matchek) Bliziński wrote:
> 2012/5/31 Florian Forster <octo at collectd.org>:
> >> utils_dns.c:476:17: error: storage size of 'ext_hdr' isn't known
> >
> > It looks like Solaris is missing this struct. Since all extension
> > headers are being ignored, we should be able to fall back to a
> > self-defined struct like this one:
> >
> >  struct ip6_ext
> >  {
> >    uint8_t ip6e_nxt;
> >    uint8_t ip6e_len;
> >  };
> 
> This one is defined in a file called ip_compat.h. I'll try to get it
> to work.

This worked for me on Solaris 11 when manually defining SOLARIS2 to a
value greater than 8 (11 in my case). Not sure if there is some way to
get that define automatically set to the right version, though.

<https://github.com/collectd/collectd/commit/4b3e4116a7c512b8e5ac660850a0a2cc6979fe3c>

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120802/c8b5cc3a/attachment.pgp>


More information about the collectd mailing list