Posted on 2005-11-11 15:25
幽灵狼 阅读(287)
评论(0) 编辑 收藏 引用 所属分类:
Development
Problem when build lib:
spiwolf@fb$ cd lib
spiwolf@fb$ gmake
gcc -g -O2 -Wall -c mcast_leave.c
mcast_leave.c: In function `mcast_leave':
mcast_leave.c:26: `IPV6_DROP_MEMBERSHIP' undeclared (first use in this function)
mcast_leave.c:26: (Each undeclared identifier is reported only once
mcast_leave.c:26: for each function it appears in.)
*** Error code 1
Stop in /home/gabriel/unpv12e/lib.
The resolution for it is:
change the following:
mcast_leave.c: Change IPV6_DROP_MEMBERSHIP to IPV6_LEAVE_GROUP
mcast_join.c: Change IPV6_ADD_MEMBERSHIP to IPV6_JOIN_GROUP
IIRC these names were changed by a later RFC (2553, which obsoletes 2133 and is
obsoleted by 3493). Matter of fact, I was grousing about this, a while ago,
about this very issue:
http://forums.devshed.com/t53905/s.html?perpage=15&pagenumber=2