[arch-general] libnl- 1.1-1 -build error
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
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
#include +#include
+ #include #include 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.
participants (2)
-
Baho Utot
-
Thomas Bächler