[arch-general] libnl- 1.1-1 -build error

Thomas Bächler thomas at archlinux.org
Sat Apr 25 09:51:49 EDT 2009


Baho Utot schrieb:
> This is the error when built with gcc-4.3
> 
> 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
> ==> ERROR: Build Failed.
>    Aborting...
> 
> Here is a fix:
> 
> gcc-4.3.patch follows
> 
> --- include/netlink-local.h~    2008-01-14 10:48:45.000000000 -0500
> +++ include/netlink-local.h    2009-04-25 08:16:28.981393890 -0400
> @@ -27,6 +27,8 @@
> #include <inttypes.h>
> #include <assert.h>
> 
> +#include <limits.h>
> +
> #include <arpa/inet.h>
> #include <netdb.h>
> 
> PKGBUILD changes:
> 
> # $Id: PKGBUILD 930 2008-04-24 22:14:40Z jgc $

Hmm, looks like this hasn't been rebuilt in over a year. Thanks for the 
hint.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.archlinux.org/pipermail/arch-general/attachments/20090425/f7cabfa1/attachment.pgp>


More information about the arch-general mailing list