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/
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/
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/
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/
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/
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/
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/
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/
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/