Skip to contentSkip to conversation

iproute2 compilation problem

LARTC Remus 3 participants 5 messages Feb 2, 2005

lore
Share & tools
lore

Remus

author
#0 lore raw

Hi folks,

I just tried to compile the latest (current) iproute2 and got these errors:

arpd.c:19:20: db_185.h: No such file or directory
arpd.c:42: error: parse error before '*' token
arpd.c:42: warning: type defaults to int' in declaration of dbase' arpd.c:42: warning: data definition has no type or storage class arpd.c: In function `do_one_request':
arpd.c:305: error: `DBT' undeclared (first use in this function) arpd.c:305: error: (Each undeclared identifier is reported only once arpd.c:305: error: for each function it appears in.)
arpd.c:305: error: parse error before "dbkey"
arpd.c:309: 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 union
arpd.c:392: error: request for member `put' in something not a structure or union
arpd.c:410: error: request for member `put' in something not a structure or union
arpd.c:422: error: request for member `put' in something not a structure or union
arpd.c: In function `get_arp_pkt':
arpd.c:486: error: `DBT' undeclared (first use in this function) arpd.c:486: error: parse error before "dbkey"
arpd.c:517: error: dbkey' undeclared (first use in this function) arpd.c:520: error: request for member get' in something not a structure or union
arpd.c:520: error: dbdat' undeclared (first use in this function) arpd.c:530: error: request for member put' in something not a structure or union
arpd.c: In function `main':
arpd.c:670: warning: implicit declaration of function dbopen' arpd.c:670: error: DB_HASH' undeclared (first use in this function) arpd.c:670: warning: assignment makes pointer from integer without a cast arpd.c:680: error: `DBT' undeclared (first use in this function) arpd.c:680: error: parse error before "dbkey"
arpd.c:682: error: dbkey' undeclared (first use in this function) arpd.c:711: error: dbdat' undeclared (first use in this function) arpd.c:716: error: request for member `put' in something not a structure or union
arpd.c:721: error: request for member `sync' in something not a structure or union
arpd.c:727: error: parse error before "dbkey"
arpd.c:729: error: request for member `seq' in something not a structure or union
arpd.c:729: error: R_NEXT' undeclared (first use in this function) arpd.c:821: error: request for member sync' in something not a structure or union
arpd.c:840: error: request for member `close' in something not a structure or union
arpd.c:844: error: request for member `close' in something not a structure or union
make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/home/iproute2/new/Source/Orig/iproute2-050124/misc'
make: *** [all] Error 2

My kernel 2.6.10 on Slackware 10 (current)

Any ideas?

Regards

Remus

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 6 lines · Remus

Hi folks,

I just tried to compile the latest (current) iproute2 and got these errors:

arpd.c:19:20: db_185.h: No such file or directory

=SNIP=

Quoted 5 lines

make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/home/iproute2/new/Source/Orig/iproute2-050124/misc'
make: *** [all] Error 2

Quoted 7 lines

My kernel 2.6.10 on Slackware 10 (current)

Any ideas?

Regards

Remus

Install from slackware/l the db3-3.11-i486-4 db31-3-1-17-i486-1 and db4-4.2.52-i486-2 libraries.

gypsy
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#2 lore raw
In reply to Remus

Gypsy,

I was missing only db31-3-1-17-i486-1, but after it install I still get the same errors.

Regards

Remus

Quoted 18 lines
Quoted 7 lines · Remus

Hi folks,

I just tried to compile the latest (current) iproute2 and got these errors:

arpd.c:19:20: db_185.h: No such file or directory

=SNIP=

Quoted 9 lines

make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/home/iproute2/new/Source/Orig/iproute2-050124/misc'
make: *** [all] Error 2

My kernel 2.6.10 on Slackware 10 (current)

Any ideas?

Quoted 10 lines
Quoted 3 lines

Regards

Remus

Install from slackware/l the db3-3.11-i486-4 db31-3-1-17-i486-1 and db4-4.2.52-i486-2 libraries.

gypsy

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Remus
Quoted 35 lines · Remus

Gypsy,

I was missing only db31-3-1-17-i486-1, but after it install I still get the same errors.

Regards

Remus

Quoted 25 lines
Quoted 7 lines · Remus

Hi folks,

I just tried to compile the latest (current) iproute2 and got these errors:

arpd.c:19:20: db_185.h: No such file or directory

=SNIP=

Quoted 5 lines

make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/home/iproute2/new/Source/Orig/iproute2-050124/misc'
make: *** [all] Error 2

Quoted 7 lines

My kernel 2.6.10 on Slackware 10 (current)

Any ideas?

Regards

Remus

Install from slackware/l the db3-3.11-i486-4 db31-3-1-17-i486-1 and db4-4.2.52-i486-2 libraries.

Quoted 8 lines
Quoted 3 lines

gypsy

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Just edit your Makefile where you find a line like this:

--- cut here ---
# Path to db_185.h include
DBM_INCLUDE:=/usr/include
--- and here ---

with:

#Path to db_185.h include
DBM_INCLUDE:=/usr/include/db4/db_185.h

Compile and you'll be fine :)
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#4 lore raw
In reply to Remus

That have worked for me.

Thanks

Remus

Quoted 7 lines

Just edit your Makefile where you find a line like this:

--- cut here ---
# Path to db_185.h include
DBM_INCLUDE:=/usr/include
--- and here ---

Quoted 6 lines

with:

#Path to db_185.h include
DBM_INCLUDE:=/usr/include/db4/db_185.h

Compile and you'll be fine :)

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/