docsis-server 3.5 install | docsis.org

You are here

docsis-server 3.5 install

15 posts / 0 new
Last post
DouganBrightaxe
docsis-server 3.5 install

Here is what I am trying to do: Install Docsis-Server 3.5 preferably to Ubuntu 9.04 64 bit server

I am trying to install from this file -
http://users.accesscomm.ca/docsis_server/docsis-server-current.tar.bz2

Continually I come back to this error:
checking for m4... /usr/bin/m4
configure: error: GNU M4 is needed

I have a copy of my config.log @ http://magnorock.googlepages.com/config.log

I have tried on both i386 and 64 bit versions of Ubuntu and on Fedora Core 11. I keep getting to the same error on all of those systems. I am a bit deadlocked right now and really would like to get this up and running. If anyone can provide some advice or help I would be more then happy to hear it.

schirrmeister
my workaround Hi

my workaround

Hi DouganBrightaxe,

I've always get the same error.

My personal fix for that:

Edit the file: "configure"
search for gnu_m4
change the if statement
(something like) if test "x$ac_is_gnu_m4" = "xGNU"; then
to
if test "x$ac_is_gnu_m4"; then

but check for m4 by typing it to the shell.

regards
Benedikt

DouganBrightaxe
That worked like a charm.

That worked like a charm. Of course, now I am stuck on the make command...

libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-1ubuntu1, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-1ubuntu1

Trying to work through that, but advice is always good.

schirrmeister
build-essential

have you installed the build-essential-package?

http://packages.ubuntu.com/en/dapper/build-essential

I've had an error like this on centOS right now, I had to install some devel-packages.

regards
Benedikt

DouganBrightaxe
Yes, that is installed.

Yes, that is installed. Pretty much a list of what I did to pre-install on the box. Maybe I am missing something?

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install phpmyadmin
sudo apt-get install traceroute
sudo apt-get install make
sudo apt-get install libmysqlclient15-dev libsnmp9-dev automake libtool
sudo apt-get install build-essential xinetd
sudo apt-get install gawk

DouganBrightaxe
I am guessing you have it

I am guessing you have it running. What distro are you currently running it on?

You can email me off list at bcone@merr.com

emkowale
I got it to configure....

Guys,

I got it to configure, but now the make gets stuck. I think that Debian testing works fine, but Debian stable gives us the headache. Here is my output:

benchmark:/usr/src/docsis-0.9.5# make
make all-recursive
make[1]: Entering directory `/usr/src/docsis-0.9.5'
Making all in src
make[2]: Entering directory `/usr/src/docsis-0.9.5/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis.o -MD -MP -MF ".deps/docsis.Tpo" -c -o docsis.o docsis.c; \
then mv -f ".deps/docsis.Tpo" ".deps/docsis.Po"; else rm -f ".deps/docsis.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT ethermac.o -MD -MP -MF ".deps/ethermac.Tpo" -c -o ethermac.o ethermac.c; \
then mv -f ".deps/ethermac.Tpo" ".deps/ethermac.Po"; else rm -f ".deps/ethermac.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis_encode.o -MD -MP -MF ".deps/docsis_encode.Tpo" -c -o docsis_encode.o docsis_encode.c; \
then mv -f ".deps/docsis_encode.Tpo" ".deps/docsis_encode.Po"; else rm -f ".deps/docsis_encode.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis_decode.o -MD -MP -MF ".deps/docsis_decode.Tpo" -c -o docsis_decode.o docsis_decode.c; \
then mv -f ".deps/docsis_decode.Tpo" ".deps/docsis_decode.Po"; else rm -f ".deps/docsis_decode.Tpo"; exit 1; fi
docsis_decode.c: In function âdecode_unknownâ:
docsis_decode.c:248: warning: pointer targets in passing argument 1 of âsnprint_hexadecimalâ differ in signedness
docsis_decode.c: In function âsnprint_hexadecimalâ:
docsis_decode.c:479: warning: pointer targets in passing argument 1 of âsprintfâ differ in signedness
docsis_decode.c:483: warning: pointer targets in passing argument 1 of âsprintfâ differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis_snmp.o -MD -MP -MF ".deps/docsis_snmp.Tpo" -c -o docsis_snmp.o docsis_snmp.c; \
then mv -f ".deps/docsis_snmp.Tpo" ".deps/docsis_snmp.Po"; else rm -f ".deps/docsis_snmp.Tpo"; exit 1; fi
docsis_snmp.c: In function âencode_vbindâ:
docsis_snmp.c:248: warning: pointer targets in passing argument 1 of âread_objidâ differ in signedness
docsis_snmp.c: In function âdecode_vbindâ:
docsis_snmp.c:566: warning: pointer targets in passing argument 1 of âstr_isprintâ differ in signedness
docsis_snmp.c:570: warning: pointer targets in passing argument 1 of âsnprint_hexadecimalâ differ in signedness
docsis_snmp.c:570: warning: pointer targets in passing argument 3 of âsnprint_hexadecimalâ differ in signedness
docsis_snmp.c:577: warning: pointer targets in passing argument 1 of âsnprint_hexadecimalâ differ in signedness
docsis_snmp.c:577: warning: pointer targets in passing argument 3 of âsnprint_hexadecimalâ differ in signedness
docsis_snmp.c: In function âdecode_snmp_oidâ:
docsis_snmp.c:655: warning: pointer targets in passing argument 2 of âasn_parse_objidâ differ in signedness
/usr/bin/bison -t -d -y docsis_yy.y
if test -f y.tab.h; then \
to=`echo "docsis_yy_H" | sed \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
sed -e "/^#/!b" -e "s/Y_TAB_H/$to/g" -e "s|y\.tab\.h|docsis_yy.h|" \
y.tab.h >docsis_yy.ht; \
rm -f y.tab.h; \
if cmp -s docsis_yy.ht docsis_yy.h; then \
rm -f docsis_yy.ht ;\
else \
mv docsis_yy.ht docsis_yy.h; \
fi; \
fi
if test -f y.output; then \
mv y.output docsis_yy.output; \
fi
sed '/^#/ s|y\.tab\.c|docsis_yy.c|' y.tab.c >docsis_yy.ct && mv docsis_yy.ct docsis_yy.c
rm -f y.tab.c
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis_yy.o -MD -MP -MF ".deps/docsis_yy.Tpo" -c -o docsis_yy.o docsis_yy.c; \
then mv -f ".deps/docsis_yy.Tpo" ".deps/docsis_yy.Po"; else rm -f ".deps/docsis_yy.Tpo"; exit 1; fi
flex docsis_lex.l
sed '/^#/ s|lex.yy\.c|docsis_lex.c|' lex.yy.c >docsis_lex.c
rm -f lex.yy.c
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT docsis_lex.o -MD -MP -MF ".deps/docsis_lex.Tpo" -c -o docsis_lex.o docsis_lex.c; \
then mv -f ".deps/docsis_lex.Tpo" ".deps/docsis_lex.Po"; else rm -f ".deps/docsis_lex.Tpo"; exit 1; fi
docsis_lex.c:1981: warning: âyyunputâ defined but not used
docsis_lex.c:2024: warning: âinputâ defined but not used
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -g -O2 -MT hmac_md5.o -MD -MP -MF ".deps/hmac_md5.Tpo" -c -o hmac_md5.o hmac_md5.c; \
then mv -f ".deps/hmac_md5.Tpo" ".deps/hmac_md5.Po"; else rm -f ".deps/hmac_md5.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -o docsis -L/usr/lib -lnetsnmp -lfl docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -lresolv
mkdir .libs
gcc -g -O2 -o docsis docsis.o ethermac.o md5.o docsis_encode.o docsis_decode.o docsis_snmp.o docsis_yy.o docsis_lex.o hmac_md5.o -L/usr/lib /usr/lib/libnetsnmp.so -lcrypto -lfl -lresolv
docsis_encode.o: In function `encode_hexstr':
/usr/src/docsis-0.9.5/src/docsis_encode.c:337: undefined reference to `trunc'
collect2: ld returned 1 exit status
make[2]: *** [docsis] Error 1
make[2]: Leaving directory `/usr/src/docsis-0.9.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/docsis-0.9.5'
make: *** [all] Error 2
benchmark:/usr/src/docsis-0.9.5#

Thanks,
emkowale

husamaga
You must made some changes

You must made some changes on installation files so it could work on debian or centOS, coze its made for RH.
i'll try to give you some help:
you have to prepare your system for installation of docsis_server! Install these packets (daemon, mysql5, php5, libmysqlclient15-dev, chkconfig, apache2,ipfm)
tar zxvf docsis_server; cd docsis_server; ./configure; make; make install
cd /scripts_and_docs and install all scripts. you may check all scripts first for destinations of some software.
mysql -u root -p mysql < INSTALL.mysql_1_users
mysql -u root -p mysql < INSTALL.mysql_2_dhcp_tables
mysql -u root -p mysql < INSTALL.mysql_3_pdns_tables
cp -f ./docsisd--Redhat_Startup_Script /etc/rc.d/init.d/docsisd /etc/init.d/docsisd
sh INSTALL.Usefull_Scripts
pico /etc/init.d/docsisd and remove all /rc.d/ from the script (on debian)
cp docsis/src/docsis.server to /etc/init.d/

i forgot to say that you should install docsis 0.9.5 make and make install! if you got an error install "flex".
then add Config_modem
mysql -u root -p mysql < config_modem
and then config the docsis-server.conf
then you can see the logs and fix problems if there is!

about the htmls, there is no htmls! i try to find them but there is nothing!

Yes you can use the 2.0.4 howto's... if you ever found the htmls please send it to me!

I use these steps and it works on all instalations i made... at debian, ubuntu, centos & RH...

emkowale
actually..

Hi,

Actually, docsis 0.9.5 is the one I'm having problems with. Someone told me that you need to get that working before you even think about docsis server.

emkowale

husamaga
Sure... you should first

Sure... you should first install docsis.0.9.5 then the softver... or you may install it after, but you should do the make and make install of docsis_server again.

emkowale
Hi again

Actually, docsis.0.9.5 is giving me that error. The make fails with that 'trunc' issue. Any ideas on that?

Thanks,
emkowale

odanquah
Broadband Provisioner 4.4

Have a look at our online demo:

URL: http://chaos.undo.it:5005/
User Name: Guest
Passwoord: guest

Must read documents:

1. http://goo.gl/BfRXQS
2. http://goo.gl/ULh1tn
3. ​​http://goo.gl/3CGzaW
4. http://goo.gl/P0K2Nj

Contact me if you need price information: enochd@weird-solutions.com

twine03
How do i know server is ready???

i dont know if docsis_server is ready to start testing. there is any comand to know??

there most to exist a docsis_server for dumies, for newest users.

thanks for any answer. (sorry my english is not so good.)

DouganBrightaxe
Here is where I

Here is where I stand.

Server Distro: Ubuntu 8.04 i386 server

Installed all of the packages as I posted before on fresh install of the above distro.

new config.log http://magnorock.googlepages.com/config.log

This is the error I get after running make. The ./configure ran without errors.
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/bin/m4
configure: error: GNU M4 is needed
make: *** [/config.status] Error 1

M4 version information:
operations@docsis:~/docsis_server-3.5$ m4 --version
m4 (GNU M4) 1.4.10
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.

M4 is right there in /usr/bin/m4. I then set the permissions on M4 to 777 and tried again, but the same results.

Not sure where it is pulling that check in the code during the Make command.

schirrmeister
grep

try to grep for "gnu_m4" in the docsis-server directory

grep "gnu_m4" *

did you modify the configure file?

regards
Benedikt

Log in or register to post comments