wget http://downloads.sourceforge.net/project/docsis/docsis/docsis-0.9.5/docsis-0.9.5.tar.gz?use_mirror=nchc
untar
goto docsis-0.9.5 dir
aptitude install m4 bison libsnmp-base libsnmp15 snmpd libsnmp-dev flex
./configure
it will look for m4
see if m4 is installed `which m4`
if not, aptitude install m4
if already installed, mod configure script to do the m4 check correctly:
look for this line,
if test "x$ac_is_gnu_m4" = "xGNU"; then
change it to:
if test "x$ac_is_gnu_m4" = "xm4"; then
run ./configure again
it will look for bison,
aptitude install bison
and run ./configure again
`make`
make sure you install flex or you will get an error from sed about a file not being found
if you get an error about floor:
undefined reference to `floor'
goto
root@tds-stg-dhcp02:~/docsis-0.9.5# vim src/Makefile
look for this line:
LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
and add the math function:
LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -lm -o $@
run make again
root@tds-stg-dhcp02:~/docsis-0.9.5# make
make install
verify:
root@tds-stg-dhcp02:~/docsis-0.9.5# ls -l /usr/local/bin/docsis
-rwxr-xr-x 1 root root 164495 2010-02-16 17:31 /usr/local/bin/docsis
gcc -Wl,-Map=contiki.map,-export-dynamic testv6.co obj_linux-native/socketdev_listener.o \ contiki-linux-native.a -o testv6.linux-native /usr/local/bin/ld: unrecognized option '--hash-style=both' /usr/local/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status If you look closely, the error is something related to the local gcc not using the host's linker (ld). $ which gcc /usr/bin/gcc $ which ld /usr/local/bin/ld For some reason, I messed my compiler path. To synchronized gcc to use the host's dynamic linker (i.e. /usr/bin/ld ), set the environment variable COMPILER_PATH to /usr/bin . $ export COMPILER_PATH=/usr/bin $ echo $COMPILER_PATH /usr/bin $ gcc -print-prog-name=ld /usr/bin/ld
Comments
that worked fine
but i need to know what to do next.
thnx