Skip to contentSkip to conversation

Don't know how to compile tc

LARTC L Rotger 4 participants 9 messages Jun 22, 2004 – Jun 24, 2004

lore
Share & tools
lore

L Rotger

author
#0 lore raw

I am trying to build iproute2-2.4.7-20010824 from source on a 2.4.24 kernel. I have played a bit with ADDLIB and LDLIBS variables but I always get errors so I suppose it's best if instead of playing I try to understand what does the following mean (from the README file):

ADDLIB should contain inet_* functions, if your libc contains obsolete resolver library (<4.9.4) and you have no correct libresolv. ADDLIB should also contain dnet_* functions if you don't have a libdnet with support for them. If your libdnet does have support, then comment out that line and uncomment the line to add -ldnet to LDLIBS.

So I have some questions as, for example, what means "ADDLIB should contain inet_* functions"? and how do I know what is a correct libresolv or if my libdnet has dnet_* support?. I can program in C and C++ in Windows and love Linux but this paragraph goes over my head because I'm not used to the environment. Someone told me to compile this if I was a masochist so maybe others have encountered the same problem <g>

Thanks for your help.
L Rotger

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

#1 lore raw
Quoted 12 lines · L Rotger

I am trying to build iproute2-2.4.7-20010824 from source on a 2.4.24 kernel. I have played a bit with ADDLIB and LDLIBS variables but I always get errors so I suppose it's best if instead of playing I try to understand what does the following mean (from the README file):

ADDLIB should contain inet_* functions, if your libc contains obsolete resolver library (<4.9.4) and you have no correct libresolv. ADDLIB should also contain dnet_* functions if you don't have a libdnet with support for them. If your libdnet does have support, then comment out that line and uncomment the line to add -ldnet to LDLIBS.

Quoted 8 lines

So I have some questions as, for example, what means "ADDLIB should contain inet_* functions"? and how do I know what is a correct libresolv or if my libdnet has dnet_* support?. I can program in C and C++ in Windows and love Linux but this paragraph goes over my head because I'm not used to the environment. Someone told me to compile this if I was a masochist so maybe others have encountered the same problem <g>

Thanks for your help.

I never had a problem compiling tc with 2.4 kernel sources. Buy why do you want to recompile tc?

Stef

Signature · 6 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#2 lore raw
In reply to L Rotger
Quoted 2 lines · Stef Coene

I never had a problem compiling tc with 2.4 kernel sources. Buy why do you want to recompile tc?

Well, I like being able to compile things from source. Besides, I'm installing this on a production server and would like to rest assured that the binary I use is good. Call me paranoid.

Could you send me the Makefile so I can compare with mine? Perhaps you have more software than it's in my workstation and you have libs or something I'm missing.

Also, what distro are you using and in case it is Debian, is it stable or development?

Regards
L Rotger

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

#3 lore raw
In reply to L Rotger

L Rotger,

you can update your libresolv updating your libc, it's may correct the problem.

[]'s

x-arnie

Quoted 17 lines · L Rotger
Quoted 2 lines · Stef Coene

I never had a problem compiling tc with 2.4 kernel sources. Buy why do you want to recompile tc?

Well, I like being able to compile things from source. Besides, I'm installing this on a production server and would like to rest assured that the binary I use is good. Call me paranoid.

Could you send me the Makefile so I can compare with mine? Perhaps you have more software than it's in my workstation and you have libs or something I'm missing.

Also, what distro are you using and in case it is Debian, is it stable or development?

Quoted 8 lines

Regards
L Rotger

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

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

#5 lore raw
In reply to L Rotger
Quoted 7 lines · L Rotger
Quoted 2 lines · Stef Coene

I never had a problem compiling tc with 2.4 kernel sources. Buy why do you want to recompile tc?

Well, I like being able to compile things from source. Besides, I'm installing this on a production server and would like to rest assured that the binary I use is good. Call me paranoid.

Dude, if you're using Debian just apt-get source iproute and debuild -uc -us and you're done.

<snip>

Quoted 3 lines

Also, what distro are you using and in case it is Debian, is it stable or development?

Signature · 8 lines
Jason Boxman
Perl Programmer / *NIX Systems Administrator
Shimberg Center for Affordable Housing | University of Florida
http://edseek.com/ - Linux and FOSS stuff

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#6 lore raw
In reply to L Rotger
Quoted 11 lines · L Rotger
Quoted 2 lines · Stef Coene

I never had a problem compiling tc with 2.4 kernel sources. Buy why do you want to recompile tc?

Well, I like being able to compile things from source. Besides, I'm installing this on a production server and would like to rest assured that the binary I use is good. Call me paranoid.

Could you send me the Makefile so I can compare with mine? Perhaps you have more software than it's in my workstation and you have libs or something I'm missing.

As far as I remember me, I downloaded the source and compiled it. Can you post the compile errors?

Quoted 2 lines

Also, what distro are you using and in case it is Debian, is it stable or development?

debian unstable.

Stef

Signature · 6 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#7 lore raw
In reply to L Rotger
Quoted 2 lines · Stef Coene

As far as I remember me, I downloaded the source and compiled it. Can you post the compile errors?

Sure, here is the Makefile:
(source is iproute2-2.4.7-010824)
----------------------
KERNEL_INCLUDE=/usr/src/linux-2.4.24/include
LIBC_INCLUDE=/usr/include

DEFINES= -DRESOLVE_HOSTNAMES

#options if you have a bind>=4.9.4 libresolv (or, maybe, glibc) LDLIBS=-lresolv
ADDLIB
#options if you compile with libc5, and without a bind>=4.9.4 libresolv #LDLIBS#ADDLIB=inet_ntop.o inet_pton.o

#options for decnet
ADDLIB+=dnet_ntop.o dnet_pton.o

#options for ipx
ADDLIB+=ipx_ntop.o ipx_pton.o
----------------------

And the errors:

# make
make[1]: Entering directory `/usr/src/iproute2-2.4.7-20010824/lib' gcc 
-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g 
-I../include-glibc -include ../
include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include 
-DRESOLVE_HOSTNAME
S   -c -o ll_map.o ll_map.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g 
-I../include-glibc -include ../
include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include 
-DRESOLVE_HOSTNAME
S   -c -o libnetlink.o libnetlink.c
ar rcs libnetlink.a ll_map.o libnetlink.o
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g 
-I../include-glibc -include ../
include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include 
-DRESOLVE_HOSTNAME
S   -c -o utils.o utils.c
cc1: warnings being treated as errors
In file included from ../include/utils.h:6,
                  from utils.c:30:
/usr/src/linux-2.4.24/include/linux/inetdevice.h: In function 
`inet_make_mask':
/usr/src/linux-2.4.24/include/linux/inetdevice.h:167: warning: implicit 
declaration of function `htonl'
/usr/src/linux-2.4.24/include/linux/inetdevice.h: In function 
`inet_mask_len':
/usr/src/linux-2.4.24/include/linux/inetdevice.h:173: warning: implicit 
declaration of function `ntohl'
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/src/iproute2-2.4.7-20010824/lib'
make: *** [all] Error 2
-------------------------------------
Sorry I can't check any further. htonl() and ntohl() are declared in 
netinet/in.h, which you include from glibc-bugs.h

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