LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   installing iproute2 (https://www.linuxquestions.org/questions/linux-from-scratch-13/installing-iproute2-153031/)

lwinkenb 03-03-2004 10:53 AM

installing iproute2
 
I've been trying for the past couple days to install iproute2 on my LFS system.

First I had to make some changes to in.h and socket.h of my kernel include files to get it to start compiling, but now I've run into a new error that I cant seem to get around.

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -I/usr/include/db3 -include ../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.22/include -I../include -DRESOLVE_HOSTNAMES -c -o arpd.o arpd.c
In file included from arpd.c:19:
../include-glibc/db.h:10:20: db_185.h: No such file or directory
arpd.c:41: error: parse error before '*' token
arpd.c:41: warning: type defaults to `int' in declaration of `dbase'
arpd.c:41: warning: data definition has no type or storage class
arpd.c: In function `do_one_request':
arpd.c:304: error: `DBT' undeclared (first use in this function)
arpd.c:304: error: (Each undeclared identifier is reported only once
arpd.c:304: error: for each function it appears in.)
arpd.c:304: error: parse error before "dbkey"
arpd.c:308: error: request for member `sync' in something not a structure or union
arpd.c:339: error: `dbkey' undeclared (first use in this function)
arpd.c:342: error: request for member `get' in something not a structure or union
arpd.c:342: error: `dbdat' undeclared (first use in this function)
arpd.c:366: error: request for member `del' in something not a structure or unio

I've searched my computer, and I don't have the file db_185.h. I thought maybe it's because I dont have the berkeley DB installed, so I then installed db-4.1.25, but I'm still getting the error. Does anyone have any ideas here?

lwinkenb 03-03-2004 08:09 PM

Got it figured out. I had to install v3 of the database instead of v4

neverhappywhen 04-12-2004 02:05 PM

how did you do that?
 
i've installed db3 and i hope arpd.c will not complain.

I'm trying to compile this but its giving me errors about TCP_INFO, how do you solve them?

surely its to do with socket.h header files


All times are GMT -5. The time now is 02:10 AM.