Compile RoHC tool using CYGWIN

Asked by Dominique Bressanelli

Hi

Is it possible to compile the tool using CYGWIN on Windows ?
Unfortunately ip.h is different from FreeBSD and I get the following errors when trying to build rohc.o :

ip.h:70 error field 'v4' has imcomplete type
ip.h:72 error field 'v6' has imcomplete type

Simply overriding with ipv6.h and ip.h files from FreeBSD does not work either

Thank you for your help

Best regards

Dominique

Question information

Language:
English Edit question
Status:
Open
For:
rohc Edit question
Assignee:
Didier Barvaux Edit question
Last query:
Last reply:
Revision history for this message
Didier Barvaux (didier-barvaux) said :
#1

Hello,

> Is it possible to compile the tool using CYGWIN on Windows ?

I don't know. Not tested yet.

> Unfortunately ip.h is different from FreeBSD and I get the following errors when trying to build rohc.o :
>
> ip.h:70 error field 'v4' has imcomplete type
> ip.h:72 error field 'v6' has imcomplete type
>
> Simply overriding with ipv6.h and ip.h files from FreeBSD does not work either

The ip.h header file is not from FreeBSD at all. It is a private internal header file of the library. The error happens because the "iphdr" and "ip6_hdr" structures were not found. Do you have the netinet/ip.h and netinet/ip6.h header files on your system? Did they define the iphdr and ip6_hdr structures?

Regards,
Didier

Revision history for this message
Dominique Bressanelli (dbressan) said :
#2

Hi Didier

Thank you for quick answer.

I think the main problem is that Cygwin does not use netinet/ip6.h. I tried to define
my own netinet/ip6.h including ip6_hdr, but I still run into compatibility issues.

Would you please let me know what your ip6_hdr struct from netinet/ip6.h looks like ?
Also I would need the code snippets for the definition of struct in6_addr.

This is what I tried to define:

istruct ip6_hdr {
       unsigned char ip6_priority:4;
       unsigned char ip6_version:4;
       unsigned int ip6_flow;
       unsigned short ip6_plen;
       unsigned char ip6_nxt;
       unsigned char ip6_hlim;
       struct in6_addr ip6_src;
       struct in6_addr ip6_dst;
     };

Thank you for your help !

Dominique

Revision history for this message
Didier Barvaux (didier-barvaux) said :
#3

Hello,

I opened bug #813128 for your problem. I attached the netinet/ip.h and netinet/ip6.h header files from my system to the bug.

Regards,
Didier

Can you help with this problem?

Provide an answer of your own, or ask Dominique Bressanelli for more information if necessary.

To post a message you must log in.