TCNG compilation problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I want to install tcng with tcsim, but I get several errors when trying to compile it:

cc -g -Wl,-E -o tcsim tcsim.o jiffies.o timer.o command.o var.o host.o attr.o lex.yy.o y.tab.o ksvc.o klink.o usvc.o module.o trace.o klib/klib.o ulib/ulib.o -lfl -lm -ldl -L../shared -ltcngmisc
ulib/ulib.o(.text+0xf0a): In function `get_addr_1':
/usr/src/tcng/tcsim/ulib/iproute2/lib/utils.c:163: undefined reference to `dnet_pton'
ulib/ulib.o(.text+0x13f9): In function `rt_addr_n2a':
/usr/src/tcng/tcsim/ulib/iproute2/lib/utils.c:357: undefined reference to `ipx_ntop'
ulib/ulib.o(.text+0x1425):/usr/src/tcng/tcsim/ulib/iproute2/lib/utils.c:362: undefined reference to `dnet_ntop'
collect2: ld returned 1 exit status
make[2]: *** [tcsim] Error 1
make[2]: Leaving directory `/usr/src/tcng/tcsim'
make[1]: *** [tcsim] Error 2
make[1]: Leaving directory `/usr/src/tcng/tcsim'
make: *** [all] Error 1



These are the steps I followed:


1. Re-build the kernel with QoS and diffserv support. (version 2.4.24)
2. Apply htb patch to iproute2 source.
3. Modify the Config file on iproute2 sources like this: TC_CONFIG_DIFFSERV=y
4. Try to build tcng ... failed :(


I guess I just don't understand this part of the iproute2 README:

"KERNEL_INCLUDE should point to correct linux kernel include directory.
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. LDLIBS should be empty, if you have no libresolv."

Any help would be appreciated.
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux