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 ?
_______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
