rtrlib / bird-rtrlib-cli

CLI that maintains ROA table in BIRD using RTRlib
GNU Lesser General Public License v3.0
11 stars 5 forks source link

bird-rtrlib-cli doesn't build on ubuntu 14 #1

Closed job closed 10 years ago

job commented 10 years ago

On Ubuntu 14.04.1 LTS:

root@eunetworks-2:~/source/bird-rtrlib-cli# cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /root/source/bird-rtrlib-cli

root@eunetworks-2:~/source/bird-rtrlib-cli# make
[ 20%] Building C object CMakeFiles/bird-rtrlib-cli.dir/bird-rtrlib-cli.c.o
/root/source/bird-rtrlib-cli/bird-rtrlib-cli.c: In function ‘rtr_callback’:
/root/source/bird-rtrlib-cli/bird-rtrlib-cli.c:136:29: error: ‘INET6_ADDRSTRLEN’ undeclared (first use in this function)
     static char ip_addr_str[INET6_ADDRSTRLEN];
                             ^
/root/source/bird-rtrlib-cli/bird-rtrlib-cli.c:136:29: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/bird-rtrlib-cli.dir/bird-rtrlib-cli.c.o] Error 1
make[1]: *** [CMakeFiles/bird-rtrlib-cli.dir/all] Error 2
make: *** [all] Error 2
root@eunetworks-2:~/source/bird-rtrlib-cli#
mceyran commented 10 years ago

It seems you don't have libc6-dev installed on your system. Can you check that please? http://packages.ubuntu.com/trusty/libc6-dev

job commented 10 years ago

I have it installed, came with build-essential which I installed before compiling

root@eunetworks-2:~# dpkg -l | grep libc6
ii  libc6:amd64                         2.19-0ubuntu6.1               amd64        Embedded GNU C Library: Shared libraries
ii  libc6-dev:amd64                     2.19-0ubuntu6.1               amd64        Embedded GNU C Library: Development Libraries and Header Files
mceyran commented 10 years ago

Okay, somehow <netinet/in.h> doesn't get included by stdlib.h. You can add that include locally as a workaround in bird-rtrlib-cli.c (or just add #define INET6_ADDRSTRLEN 46) while I am installing Ubuntu on a VM to reproduce this.

fho commented 10 years ago

Is the <netinet/in.h> include missing in the c-file?

mceyran commented 10 years ago

Tested on Ubuntu 14.04.1 and Gentoo.

mceyran commented 10 years ago

That's definitely an option, I can't say when, though :).

Am 09.08.2014 18:52, schrieb Job Snijders:

Thanks guys!

Any plans to create a binary .deb package on launchpad so I can just apt-get install?

— Reply to this email directly or view it on GitHub https://github.com/rtrlib/bird-rtrlib-cli/issues/1#issuecomment-51692130.