<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">This is just FYI. While compiling collectd 5.5.2 for OpenBSD 6.0 I came across three little things:</div>
<div class=""><br class="">
</div>
<div class="">Given this configuration string:</div>
<div class="">
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> ./configure --prefix=/opt/collectd --with-libmodbus=/opt/libmodbus --enable-modbus --disable-write_sensu</span></div>
</div>
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">1) I had to copy the contents of /opt/libmodbus/include/modbus to /opt/libmodbus/include . Otherwise the modbus header wont get included.</div>
<div class="">2) I came across this error message</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">modbus.c: In function 'mb_read_data':</span></div>
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">modbus.c:476: error: storage size of 'sockaddr' isn't known</span></div>
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cc1: warnings being treated as errors</span></div>
</div>
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">...</span></div>
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; line-height: normal;" class="">This problem was addressed by </div>
<div style="margin: 0px; line-height: normal;" class="">
<div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">#include <sys/socket.h></span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">3) The compiler complained about write_sensu before I disabled that option altogether.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">-Arne</div>
<div class=""><br class="">
</div>
</div>
<div class=""><br class="">
<div class="">
<div class="">
<div style="font-family: Calibri; font-size: medium; margin: 0in 0in 0.0001pt;" class="">
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>