Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15380 - libnl 1.1-1 build problems

Attached to Project: Arch Linux
Opened by Daniel Ehlers (sargon) - Sunday, 05 July 2009, 14:10 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 05 July 2009, 14:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I checkout libnl build files from abs. The first problem
was that the provided download url ends in a 404. After
searching the web I download source from :

http://ftp.de.debian.org/debian/pool/main/libn/libnl/libnl_1.1.orig.tar.gz

and rename it to the expected name.
After that a build failes with:

<error>
MAKE libnl.so.1.1
CC addr.c
CC attr.c
CC cache.c
CC cache_mngr.c
In file included from attr.c:12:
../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]: *** [attr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
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)
In file included from cache_mngr.c:84:
../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]: *** [cache_mngr.o] Error 1
In file included from cache.c:43:
../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[2]: *** [cache.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
</error>

I fix that error with a extra line after change dir to src in the build instrucitons.
> sed -i "/^#include.*<stdlib.h>/a\#include <limits.h>" include/netlink-local.h


Additional info:
* libnl 1.1-1

Steps to reproduce:
download pkgbuild from abs and run makepkg ;)
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 05 July 2009, 14:39 GMT
Reason for closing:  Not a bug
Comment by Thomas Bächler (brain0) - Sunday, 05 July 2009, 14:39 GMT
Fixed in trunk (this is not visible via ABS until the next package is released to the repositories), see http://repos.archlinux.org/viewvc.cgi/libnl/trunk/ or run
$ svn co svn://svn.archlinux.org/srv/svn-packages/libnl/trunk libnl

Loading...