[collectd] Compilation issue on Solaris 10
Florian Forster
octo at collectd.org
Fri Jun 1 00:11:10 CEST 2012
Hi Maciej,
On Sat, May 05, 2012 at 08:46:05AM +0100, Maciej (Matchek) Bliziński wrote:
> utils_dns.c: In function 'handle_ipv6':
> utils_dns.c:452:21: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '.' token
> utils_dns.c:452:21: error: expected expression before '.' token
> utils_dns.c:460:5: error: 'S_un' undeclared (first use in this function)
it turns out that "s_addr", the name of the variable, is a macro under
Solaris that expands to "S_un.S_addr", resulting in these syntax errors.
This problem was fixed in commit 0c1b6ab in the collectd-4.10 branch and
will be merged to 5.0, 5.1 and master in a bit.
> 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;
};
Best regards,
—octo
--
collectd – The system statistics collection daemon
Website: http://collectd.org
Google+: http://collectd.org/+
GitHub: https://github.com/collectd
Twitter: http://twitter.com/collectd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120601/aa4ab0fb/attachment.pgp>
More information about the collectd
mailing list