Opened 12 years ago

Closed 12 years ago

#2995 closed enhancement (fixed)

IPRoute2-3.2.0

Reported by: Matthew Burgess Owned by: Matthew Burgess
Priority: normal Milestone: 7.1
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

New version. No release announcement that I can find so far.

Change History (6)

comment:1 by Matthew Burgess, 12 years ago

Owner: changed from lfs-book@… to Matthew Burgess
Status: newassigned

comment:2 by Matthew Burgess, 12 years ago

Release announcement at http://lkml.indiana.edu/hypermail/linux/kernel/1201.0/01761.html. Unfortunately, this version appears to depend on libnl (it wants a /usr/include/netlink/netlink.h file). iproute2 doesn't have a GNU configure script so doesn't detect the lack of that library so tries to compile ip/ipl2tp.c and fails as below:

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DHAVE_SETNS   -c -o ipl2tp.o ipl2tp.c
ipl2tp.c:26:29: fatal error: netlink/netlink.h: No such file or directory
compilation terminated.

The latest version of libnl can't be used as that's moved the include files to /usr/include/libnl3/netlink, so we'll have to drop back to libnl-3.1.

comment:3 by Matthew Burgess, 12 years ago

And in addition, the following naive sed:

sed -i 's/ ipl2tp.o//' ip/Makefile

Results in a failure to link the 'ip' binary as it requires some functions from that file. So, it looks like (an old version of) libnl is a hard requirement of iproute2 now, although it wasn't mentioned in the release announcement, nor does it appear to be mentioned anywhere in the source tarball either.

comment:4 by Libor, 12 years ago

libnl-1.1 (http://www.infradead.org/~tgr/libnl/files/libnl-1.1.tar.gz) is needed with the following patch: http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg142643.html

install with: ./configure --prefix=/usr && make && make install

Than compilation of iproute-3.2 is no problem

comment:5 by Matthew Burgess, 12 years ago

Thanks, but I've just finished a build against libnl-2.0 which works fine without any patches.

comment:6 by Matthew Burgess, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r9703 and r9704.

Note: See TracTickets for help on using tickets.