Problem compiling libnl 1.1

Pavel Roskin proski at gnu.org
Tue Mar 30 01:08:45 EDT 2010


On Sat, 2010-03-27 at 21:52 +0100, Karl Hiramoto wrote:
> On 03/27/2010 06:47 PM, pierre42d at 9online.fr wrote:
> > # make
> > Entering lib
> >   MAKE libnl.so.1.1
> >   CC addr.c
> > In file included from addr.c:28:
> > ../include/netlink-local.h: In function '__str2type':
> > ../include/netlink-local.h:218: error: 'ULONG_MAX' undeclared (first 
> > use in this function)
> > ../include/netlink-local.h:218: error: (Each undeclared identifier is 
> > reported only once
> > ../include/netlink-local.h:218: error: for each function it appears in.)
> > ../include/netlink-local.h: In function '__list_str2type':
> > ../include/netlink-local.h:239: error: 'ULONG_MAX' undeclared (first 
> > use in this function)
> > make[2]: *** [addr.o] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all] Error 2
> 
> You should tell us things like,  gcc version, libc version, linux distro 
> and version.   ULONG_MAX should normally be defined in limits.h

It's defined there.

The compile error was fixed by the commit
4f2ff2749bd9a498dc2e65a16f713fd0315d9d41

-- 
Regards,
Pavel Roskin



More information about the libnl mailing list