I downloaded the source code here:
www dot ospf dot org-->Release 2.0-->gzipped tar format
and there're errors when I run "make install".
I noticed that I might have to install some packages first:
gcc
g++
glibc
glibc-devel
libstdc++-devel
make
Tcl
some of above I managed to install(like gcc) but some I cannot find via "apt-get". e.g. I cannot find glibc and glibc-devel and libstdc++-devel using "sudo apt-get install (package name)" or "sudo aptitude install (package name)". So do some packages have other names in Ubuntu?
and when I unzipped the package:
sudo tar xvzf ***.tar.gz
and went into the directory
cd ospfd/linux
then:
make install
it failed.
I figured that this is an formal&fixed release so there shouldn't be something wrong in the source code. Maybe I made some mistakes without realizing them.
I'd be very appriciated if someone can told how to install this...
P.S. error messages:
cys@cys-laptop:~/temp/ospfd/linux$ sudo make install
g++ -MD -O -g -Wall -Woverloaded-virtual -Wcast-qual -Wuninitialized -I. -I../src -I/usr/local/include -c linux.C
In file included from ../src/ospfinc.h:24,
from linux.C:33:
./machdep.h:93: [error]: C [function]‘char* strptime(char*, const char*, const tm*)’[declaration]
/usr/include/time.h:210: [error]: conflict with the previous declaration ‘char* strptime(const char*, const char*, tm*)’
make: *** [linux.o] [error] 1
cys@cys-laptop:~/temp/ospfd/linux$
the words with [] like [error], [function] are in Chinese originally and I translated them into English.
I tried to change the function in machdep.h, which is
char* strptime(char*, const char*, const tm*)
into:
char* strptime(const char*, const char*, tm*)
and there is another error:
../src/dbage.C:117: [error]: ‘GetNextAdj’[is not declared in dbage.C]
very confused.
I'm using Ubuntu 8.10
thanks!
Bookmarks