* [LARTC] Don't know how to compile tc
@ 2004-06-22 14:04 L Rotger
2004-06-23 13:30 ` Stef Coene
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: L Rotger @ 2004-06-22 14:04 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
@ 2004-06-23 13:30 ` Stef Coene
2004-06-23 14:12 ` L Rotger
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Stef Coene @ 2004-06-23 13:30 UTC (permalink / raw)
To: lartc
On Tuesday 22 June 2004 16:04, L Rotger wrote:
> 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.
I never had a problem compiling tc with 2.4 kernel sources.
Buy why do you want to recompile tc?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
2004-06-23 13:30 ` Stef Coene
@ 2004-06-23 14:12 ` L Rotger
2004-06-23 14:51 ` Alessandro O. Ungaro
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: L Rotger @ 2004-06-23 14:12 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
2004-06-23 13:30 ` Stef Coene
2004-06-23 14:12 ` L Rotger
@ 2004-06-23 14:51 ` Alessandro O. Ungaro
2004-06-23 16:05 ` L Rotger
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Alessandro O. Ungaro @ 2004-06-23 14:51 UTC (permalink / raw)
To: lartc
L Rotger,
you can update your libresolv updating your libc, it's may correct the
problem.
[]'s
x-arnie
L Rotger wrote:
> Stef Coene wrote:
>
>> 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 / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
` (2 preceding siblings ...)
2004-06-23 14:51 ` Alessandro O. Ungaro
@ 2004-06-23 16:05 ` L Rotger
2004-06-23 17:19 ` Jason Boxman
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: L Rotger @ 2004-06-23 16:05 UTC (permalink / raw)
To: lartc
Alessandro O. Ungaro wrote:
> L Rotger,
>
> you can update your libresolv updating your libc, it's may correct the
> problem.
I have libc.so.6 but that didn't solve the problem.
L Rotger
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
` (3 preceding siblings ...)
2004-06-23 16:05 ` L Rotger
@ 2004-06-23 17:19 ` Jason Boxman
2004-06-23 21:38 ` Stef Coene
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Boxman @ 2004-06-23 17:19 UTC (permalink / raw)
To: lartc
On Wednesday 23 June 2004 10:12, L Rotger wrote:
> Stef Coene wrote:
> > 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>
> Also, what distro are you using and in case it is Debian, is it stable
> or development?
>
--
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
` (4 preceding siblings ...)
2004-06-23 17:19 ` Jason Boxman
@ 2004-06-23 21:38 ` Stef Coene
2004-06-24 8:00 ` L Rotger
2004-06-24 11:36 ` L Rotger
7 siblings, 0 replies; 9+ messages in thread
From: Stef Coene @ 2004-06-23 21:38 UTC (permalink / raw)
To: lartc
On Wednesday 23 June 2004 16:12, L Rotger wrote:
> Stef Coene wrote:
> > 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?
> Also, what distro are you using and in case it is Debian, is it stable
> or development?
debian unstable.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
` (5 preceding siblings ...)
2004-06-23 21:38 ` Stef Coene
@ 2004-06-24 8:00 ` L Rotger
2004-06-24 11:36 ` L Rotger
7 siblings, 0 replies; 9+ messages in thread
From: L Rotger @ 2004-06-24 8:00 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Don't know how to compile tc
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
` (6 preceding siblings ...)
2004-06-24 8:00 ` L Rotger
@ 2004-06-24 11:36 ` L Rotger
7 siblings, 0 replies; 9+ messages in thread
From: L Rotger @ 2004-06-24 11:36 UTC (permalink / raw)
To: lartc
Someone pointed me towards this. I'll try it later. If anyone is
interested I can send the entire email.
http://linuxfromscratch.org/pipermail/patches/2003-November/000656.html
Regards
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-06-24 11:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 14:04 [LARTC] Don't know how to compile tc L Rotger
2004-06-23 13:30 ` Stef Coene
2004-06-23 14:12 ` L Rotger
2004-06-23 14:51 ` Alessandro O. Ungaro
2004-06-23 16:05 ` L Rotger
2004-06-23 17:19 ` Jason Boxman
2004-06-23 21:38 ` Stef Coene
2004-06-24 8:00 ` L Rotger
2004-06-24 11:36 ` L Rotger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.