Results 1 to 4 of 4

Thread: something wrong about ospfd

  1. #1
    Join Date
    Mar 2009

    something wrong about ospfd

    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:

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

    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*)
    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
    Last edited by chuyinsu; March 5th, 2009 at 08:52 AM.

  2. #2
    Join Date
    Aug 2008

    Re: something wrong about ospfd

    In ubuntu the developers packages are named -dev and not -devel.
    So for instance "glibc-dev"
    These contain the header files needed to compile programs that use those packages.

    Your error is in

    which is part of a package named something like linux-kernel-headers-dev. I bet that this package is already installed.

    I think ospfd was written for a different kernel version than what you have now. Compiling breaks because the definition GCC is confused about the redefinition of the method "strptime"

    (I don't have an Ubuntu machine here to verify the correct names)

  3. #3
    Join Date
    Mar 2009

    Re: something wrong about ospfd

    Thanks for your reply.

    Maybe I have to change the Linux kernel to an old one...-_-;;;
    I'll try that in a couple of days.

  4. #4
    Join Date
    Nov 2010

    Angry Re: something wrong about ospfd

    Quote Originally Posted by chuyinsu View Post
    Thanks for your reply.

    Maybe I have to change the Linux kernel to an old one...-_-;;;
    I'll try that in a couple of days.

    I'm read your post the ospfd installation on you post , now can you install it yet?.

    I have problem to install ospfd source code too. Could you please! suggest me the step too?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts