Errors of compiling NM-0.8.2-beta1



Hi all,

I've checked out a source of 0.8.2-beta1, try to compile it, and encounter several problems. They can be classified as follows:
So (one way) to build 0.8.2-beta1 successfully, I need(before ./configure):
  • export CFLAGS='-std=c99'
  • export CPPFLAGS='-D_BSD_SOURCE -D_POSIX_SOURCE'
Apply "fix-headers.patch" in attachment will fix missed headers.
In src/dhcp-manager/nm-dhcp-dhclient.c, log_domain may have an undefined value.
If the compiler tells you "/usr/include/netlink/object.h:58: error: inline function ‘nl_object_priv’ declared but never defined", then need to replace "extern inline void *  nl_object_priv(struct nl_object *obj);" in object.h with the following (according to newer version of libnl):
static inline void *            nl_object_priv(struct nl_object *obj)
{
        return obj;
}


--
Regards,

- cee1

Attachment: fix-headers.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]