[collectd] install collectd 5.2 on hpux 11.31 IA64

于明华^-^(奔) csrymh at 126.com
Tue Jan 29 07:38:40 CET 2013


hi everyone
  I'm  compiling collectd 5.2 on hpux11.31(IA64) with gcc-4.2.3。

./configure is passwd
when make, i get some questions, plese help me
1、
error messgae:
In file included from aggregation.c:27:
collectd.h:187:3: error: #error "Cannot determine byte order"

i add some lines after line 187 in collectd.h, it looks like this, is it a proper solution? 

#ifndef BYTE_ORDER
# if defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
#  undef BIG_ENDIAN
#  define BIG_ENDIAN 4321
#  define LITTLE_ENDIAN 1234
#  define BYTE_ORDER BIG_ENDIAN
# elif !defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
#  undef LITTLE_ENDIAN
#  define BIG_ENDIAN 4321
#  define LITTLE_ENDIAN 1234
#  define BYTE_ORDER LITTLE_ENDIAN
# elif !defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
#  define BIG_ENDIAN 4321
#  define LITTLE_ENDIAN 1234
#  define BYTE_ORDER LITTLE_ENDIAN
# endif
#endif
2、
error message:   
cc1: warnings being treated as errors    
email.c: In function 'open_connection':
email.c:433: warning: implicit declaration of function 'getgrnam_r'   
how to fix this error ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130129/e73bc17b/attachment.html>


More information about the collectd mailing list