Problem building with freeradius-client (LITTLE_ENDIAN redefined)
I'm trying to build an openLDAP module using radexample.c from freeradius-client-1.1.7 and getting an error "/src/freeradius-client-1.1.7/config.h:212:0: warning: "LITTLE_ENDIAN" redefined [enabled by default]" This macro is also defined in the file /openldap_2.4.28.orig/include/ac/bytes.h. What's the best way to fix this?
On Nov 6, 2015, at 11:33 AM, dev <devuan.2@gmail.com> wrote:
I'm trying to build an openLDAP module using radexample.c from freeradius-client-1.1.7 and getting an error "/src/freeradius-client-1.1.7/config.h:212:0: warning: "LITTLE_ENDIAN" redefined [enabled by default]"
This macro is also defined in the file /openldap_2.4.28.orig/include/ac/bytes.h. What's the best way to fix this?
Edit one header file to delete the definition. Alan DeKok.
On 11/06/2015 10:36 AM, Alan DeKok wrote:
Edit one header file to delete the definition.
But which value to leave? Is it incorrect to assume that both packages need this macro defined exactlty when compiling the two together? openldap defines it as: #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ For Freeradius-1.1.7 this is: #define LITTLE_ENDIAN 1
On Nov 6, 2015, at 12:02 PM, dev <devuan.2@gmail.com> wrote:
On 11/06/2015 10:36 AM, Alan DeKok wrote:
Edit one header file to delete the definition.
But which value to leave? Is it incorrect to assume that both packages need this macro defined exactlty when compiling the two together?
Just delete the one from the freeradius-client header. Alan DeKok.
participants (2)
-
Alan DeKok -
dev