Solution: iproute2 and kernel 2.6.1

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Toth

----- Toth Szabolcs wrote -----
> I have read on a mail list that you should install the
> db-4.1.25 Berkeley DB 4.1.25) get the
> iproute2-2.4.7-now-ss020116-try.tar.gz and patch which
> you need.

Woohoo!  Finally, an answer which just happened to point
me in the right direction.  Also, I spent a little more
time scouring through the compile errors.

The solution is in fact a mixed bag ;-)  The code uses
a hack to include db.h from a BerkeleyDB 3.x install. I
have BekeleyDB 4.1.25, so simply edited the Makefile
to reflect the difference!

File iproute2/include-glibc/db.h gives the hack away ;-)

----- <snip iproute2/include-glibc/db.h> -----
...

"The simplest trick which I was able to invent is to
write fake db.h including db_185.h and adding
-I/usr/include/db3 to CFLAGS."
...

#include <db_185.h>

----- </snip iproute2/include-glibc/db.h> -----

The solution was to chang the following line in
iproute2/Makefile from:

GLIBCFIX=-I../include-glibc -I/usr/include/db3

to:

GLIBCFIX=-I../include-glibc -I/usr/include/db4

and make sure that KERNEL_INCLUDE pointed to, which
I'd done from the very beginning.

> KERNEL_INCLUDE=/usr/src/linux-2.6.1/include

I'm one happy camper now *grin*

Thanks
Dale
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux