rumpkernel / drv-netif-netmap

netmap interface driver for userspace TCP/IP stack
BSD 2-Clause "Simplified" License
44 stars 15 forks source link

unable to complile with latest netmap lib #7

Closed gsankanna closed 10 years ago

gsankanna commented 10 years ago

I stated using netmap rumpkernel, while compiling this i am coming across the following compilation error, this is happening as i may not be using the correct header file.

rumpcomp_user.c: In function 'receiver': rumpcomp_user.c:149:14: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:172:3: error: implicit declaration of function 'NETMAP_RING_NEXT' [-Werror=implicit-function-declaration] rumpcomp_user.c:173:7: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c: In function 'rumpcomp_netmap_send': rumpcomp_user.c:230:25: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:243:10: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:260:7: error: 'struct netmap_ring' has no member named 'avail' cc1: all warnings being treated as error

Could you please let me know how to resolve this compilation issue.

I have downloaded the netmap from https://github.com/fichtner/netmap . It seems there is a version mismatch here. Can you please point me to which version of netmap library I should be taking to compile rumpkernel netmap?

Thank you.

luigirizzo commented 10 years ago

hi, the latest netmap version is at code.google.com/p/netmap and as far as i know rumptcpip has been updated against that version. You are likely using an old version of rumpkernel.

cheers luigi

On Thu, Apr 24, 2014 at 8:03 AM, Thanegs notifications@github.com wrote:

I stated using netmap rumpkernel, while compiling this i am coming across the following compilation error, this is happening as i may not be using the correct header file.

rumpcomp_user.c: In function 'receiver': rumpcomp_user.c:149:14: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:172:3: error: implicit declaration of function 'NETMAP_RING_NEXT' [-Werror=implicit-function-declaration] rumpcomp_user.c:173:7: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c: In function 'rumpcomp_netmap_send': rumpcomp_user.c:230:25: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:243:10: error: 'struct netmap_ring' has no member named 'avail' rumpcomp_user.c:260:7: error: 'struct netmap_ring' has no member named 'avail' cc1: all warnings being treated as error

Could you please let me know how to resolve this compilation issue.

I have downloaded the netmap from https://github.com/fichtner/netmap . It seems there is a version mismatch here. Can you please point me to which version of netmap library I should be taking to compile rumpkernel netmap?

Thank you.

— Reply to this email directly or view it on GitHubhttps://github.com/rumpkernel/netmap-rumptcpip/issues/7 .

-----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------

gsankanna commented 10 years ago

Thanks Luigi..

I was somewhat able to solve this issue by taking the Dec 2013 branch of netmap from git. If I take the latest code from netmap git and try to compile it with latest rump kernel from git then I see the above issue.

Now, I have another problem where I need your help.

  1. I am running on Ubutu 12.04 LTS
  2. I compile your netmap without drivers and with this I am able to test the client server example (netmapcat) in the rumpkernel. However, if I try to send a connect from another ubuntu machine which is not using rumpkernel, then I see that the connect fails. I observed in my rumpkernel machine that I get the SYN but no SYN ACK being sent.

Do I need to compile with the drivers. Am I missing anything else.

Steps followed -

  1. compiled netmap- make NODRIVERS=1
  2. insmod netmap_lin.ko
  3. compiled 'netmap-rumptcpip' and 'netmap-rumptcpip/examples'
  4. started server: sudo ./netmapcat vale:2 192.168.1.142 listen 8080 (tried also eth0)
  5. started client: tried to connect to 192.168.1.142:8080
anttikantee commented 10 years ago

Are you sure you have the latest netmap-rumptcpip? It was updated yesterday to address the problem you describe. (also, did you post to the mailing list? I responded with the same content there too)

For the second issue, can you please open a separate ticket? It's easier to manage things in the one-problem-per-issue style.

gsankanna commented 10 years ago

Thanks for you update..

I will pick the new netmap-rumptcpip which was uploaded yesterday. for other issue i will open a another ticket.

Thanks