Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165491 - net-analyzer/tcpdump-3.7.2 - IPPROTO_SCTP undefined
Summary: net-analyzer/tcpdump-3.7.2 - IPPROTO_SCTP undefined
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 20:11 UTC by jungsook yang
Modified: 2007-02-05 22:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jungsook yang 2007-02-05 20:11:26 UTC
I was trying to install tcpdump-3.7.2 and then found this. 
print-sctp.c:117: error: `IPPROTO_SCTP' undeclared (first use in this function) 

And that lead me to see
the file /usr/include/netinet/in.h and it seems that it's not correct
because it seems that the macros got puthsed by 1.

===
IPPROTO_COMP = 108, /* Compression Header Protocol. */
#define IPPROTO_CMP IPPROTO_CMP
IPPROTO_SCTP = 132, /* Stream Control Transmission Protocol. */
#define IPPROTO_SCTP IPPROTO_SCTP
IPPROTO_RAW = 255, /* Raw IP packets. */
#
===
So, I changed the above to the following:
IPPROTO_COMP = 108, /* Compression Header Protocol. */
#define IPPROTO_SCTP IPPROTO_SCTP
IPPROTO_SCTP = 132, /* Stream Control Transmission Protocol. */
#define IPPROTO_RAW IPPROTO_RAW
IPPROTO_RAW = 255, /* Raw IP packets. */
#
===
After that, the compilation worked ok without error.
Hope this helps. 

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-05 22:23:52 UTC
Has exactly zero in common with Gentoo Bugzilla product; kindly read the descriptions.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-02-05 22:24:49 UTC
Keep on trying, doesn't exist.

Keywords for net-analyzer/tcpdump:

         | a a a h i m m p p p s s s s x x 
         | l m r p a 6 i p p p 3 h p p 8 8 
         | p d m p 6 8 p c c c 9   a a 6 6 
         | h 6   a 4 k s   6 - 0   r r   - 
         | a 4             4 m     c c   f 
         |                   a       -   b 
         |                   c       f   s 
         |                   o       b   d 
         |                   s       s     
         |                           d     
---------+--------------------------------
3.9.3    | + + + + +   + + +   + + +   +   
3.9.4    | ~ + + + +   + + +   + + +   +   
3.9.4-r3 | + + + + +   + + +   + + +   + ~ 
3.9.5-r1 | ~ ~ ~ ~ ~   ~ ~ ~   ~ ~ ~   ~ ~