Error when building iprohc-0.7

Asked by tony on 2013-07-19

Hello,

  when i build iprohc-0.7 in Ubuntu, some error occured:

itl@itl:/home/tony/iprohc/iprohc-0.7$ make all
Scanning dependencies of target iprohc_common
[ 9%] Building C object common/CMakeFiles/iprohc_common.dir/rohc_tunnel.c.o
[ 18%] Building C object common/CMakeFiles/iprohc_common.dir/tun_helpers.c.o
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:31:24: error: libnetlink.h: No such file or directory
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c: In function ‘set_ip4’:
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:265: error: field ‘nh’ has incomplete type
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:266: error: field ‘ip’ has incomplete type
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:269: error: variable ‘rth’ has initializer but incomplete type
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:269: error: unknown field ‘fd’ specified in initializer
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:269: warning: excess elements in struct initializer
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:269: warning: (near initialization for ‘rth’)
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:269: error: storage size of ‘rth’ isn’t known
/home/tony/iprohc/iprohc-0.7/common/tun_helpers.c:272: warning: implicit declaration of function ‘rtnl_open’

...

What's the problem?

thanks

Best regards,
tony

Question information

Language:
English Edit question
Status:
Solved
For:
rohc Edit question
Assignee:
No assignee Edit question
Solved by:
tony
Solved:
2013-07-19
Last query:
2013-07-19
Last reply:
tony (scu-wsx) said : #1

Hello,

  I have solved this problem, because i have not installed the iproute library:

apt-get iproute-dev

thanks.

Nayar Joolfoo (nayar) said : #2

I get the following message when trying to install iproute-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iproute-dev

Hello,

What is your Linux distribution? What version?

Regards,
Didier

Nayar Joolfoo (nayar) said : #4

it should have been apt-get install iproute-dev.

I was on ubuntu at first which doesn't contain the package itself