iproute - b

Konfiguracja serwerów, usług, itp.
answer_3
Posty: 24
Rejestracja: 10 grudnia 2006, 16:25

iproute - błąd przy kompilacji

Post autor: answer_3 »

Kompilowałem kernela zgodnie z tą instrukcją http://linuxbox.pl/index.php?go=kernel , wszystko było dobrze, aż do momentu kompilacji iproute. Patchowanie przeszło gładko, po wydaniu komendy make, chwile się kompilowało i wyświetlił się taki błąd:

Kod: Zaznacz cały

make[1]: bison: Polecenie nie znalezione
make[1]: *** [emp_ematch.yacc.c] Błąd 127
make[1]: Opuszczenie katalogu `/usr/src/iproute2-2.6.23/tc'
make: *** [all] Błąd 2
Mam Debiana Etch. Czego to może być wina?
Awatar użytkownika
ShinnRa
Beginner
Posty: 457
Rejestracja: 05 marca 2007, 23:05
Lokalizacja: Gdynia

Post autor: ShinnRa »

make[1]: bison: Polecenie nie znalezione
naucz się czytać
answer_3
Posty: 24
Rejestracja: 10 grudnia 2006, 16:25

Post autor: answer_3 »

Przepraszam, nie zauważyłem, mój błąd. Z tamtym sobie już poradziłem. Jednak dalej jest problem.
Teraz dostaje coś takiego:

Kod: Zaznacz cały

arpd.c:19:20: error: db_185.h: Nie ma takiego pliku ani katalogu
arpd.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ to                  ken
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: expected ‘;’ before ‘dbkey’
arpd.c:308: error: ‘dbase’ undeclared (first use in this function)
arpd.c:338: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:341: error: ‘dbdat’ undeclared (first use in this function)
arpd.c: In function ‘get_arp_pkt’:
arpd.c:485: error: ‘DBT’ undeclared (first use in this function)
arpd.c:485: error: expected ‘;’ before ‘dbkey’
arpd.c:517: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:520: error: ‘dbase’ undeclared (first use in this function)
arpd.c:520: error: ‘dbdat’ undeclared (first use in this function)
arpd.c: In function ‘main’:
arpd.c:670: error: ‘dbase’ undeclared (first use in this function)
arpd.c:670: warning: implicit declaration of function ‘dbopen’
arpd.c:670: error: ‘DB_HASH’ undeclared (first use in this function)
arpd.c:680: error: ‘DBT’ undeclared (first use in this function)
arpd.c:680: error: expected ‘;’ before ‘dbkey’
arpd.c:682: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:712: error: ‘dbdat’ undeclared (first use in this function)
arpd.c:728: error: expected ‘;’ before ‘dbkey’
arpd.c:730: error: ‘R_NEXT’ undeclared (first use in this function)
make[1]: *** [arpd] Błąd 1
make[1]: Opuszczenie katalogu `/usr/src/iproute2-2.6.23/misc'
make: *** [all] Błąd 2


[ Dodano: 2008-10-21, 11:19 ]
Nikt nie ma pomysłu co może być nie tak? Znalazłem gdzieś na necie, że może to być problem najnowszego gcc. Jak bede miał chwile czasu spróbuje na starszym. Tylko może mi ktoś doradzi którą wersje najlepiej użyć żeby nie było problemów?
rr
Posty: 2
Rejestracja: 24 października 2008, 15:17

Post autor: rr »

Witam,
mam dokladnie ten sam problem co answer_3 :-/
Awatar użytkownika
Yampress
Administrator
Posty: 6416
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

pakiet

Kod: Zaznacz cały

iproute-dev 
zainstalowany ?
rr
Posty: 2
Rejestracja: 24 października 2008, 15:17

Post autor: rr »

tak, zainstalowany

Kod: Zaznacz cały

arpd.c:19:20: error: db_185.h: Nie ma takiego pliku ani katalogu
arpd.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
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: expected ‘;’ before ‘dbkey’
arpd.c:308: error: ‘dbase’ undeclared (first use in this function)
arpd.c:338: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:341: error: ‘dbdat’ undeclared (first use in this function)
arpd.c: In function ‘get_arp_pkt’:
arpd.c:485: error: ‘DBT’ undeclared (first use in this function)
arpd.c:485: error: expected ‘;’ before ‘dbkey’
arpd.c:517: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:520: error: ‘dbase’ undeclared (first use in this function)
arpd.c:520: error: ‘dbdat’ undeclared (first use in this function)
arpd.c: In function ‘main’:
arpd.c:670: error: ‘dbase’ undeclared (first use in this function)
arpd.c:670: warning: implicit declaration of function ‘dbopen’
arpd.c:670: error: ‘DB_HASH’ undeclared (first use in this function)
arpd.c:680: error: ‘DBT’ undeclared (first use in this function)
arpd.c:680: error: expected ‘;’ before ‘dbkey’
arpd.c:682: error: ‘dbkey’ undeclared (first use in this function)
arpd.c:712: error: ‘dbdat’ undeclared (first use in this function)
arpd.c:728: error: expected ‘;’ before ‘dbkey’
arpd.c:730: error: ‘R_NEXT’ undeclared (first use in this function)
make[1]: *** [arpd] Błąd 1
make[1]: Opuszczenie katalogu `/usr/src/system-source-2.6.24.7-1/iproute2/iproute2-2.6.25/misc'
make: *** [all] Błąd 2
i nie wiem co dalej?

Pomogło doinstalowanie libdb4.3-dev

Kod: Zaznacz cały

 apt-get install libdb4.3-dev
ODPOWIEDZ