[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-bugs
Subject: [ net-snmp-Bugs-1498643 ] Mac OS X 10.4.x - 5.3.0.1 fails to build
From: "SourceForge.net" <noreply () sourceforge ! net>
Date: 2006-10-17 12:43:32
Message-ID: E1GZoI8-0000qu-17 () sc8-sf-web2 ! sourceforge ! net
[Download RAW message or body]
Bugs item #1498643, was opened at 2006-06-01 07:00
Message generated for change (Comment added) made by tanders
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1498643&group_id=12694
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build/test
Group: None
Status: Open
Resolution: None
>Priority: 4
Submitted By: Eric Hall (darkart)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mac OS X 10.4.x - 5.3.0.1 fails to build with --enable-ipv6
Initial Comment:
Mac OS X 10.4.x (.6 known, should be all 10.4.x), net-snmp 5.3.0.1 fails
to build with "--enable-ipv6". I suspect this is a KPI related issue, and
the best solution is to re-write the Mac OS X/Darwin specific bits to be
KPI-aware, one alternate solution being including the appropriate
(private) kernel headers with net-snmp. See net-snmp bug 1477403
for a similar problem.
Sample build failure (from http://bugzilla.opendarwin.org/
show_bug.cgi?id=9171):
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib
-I/opt/local/include -DINET6 -g -O2 -Ddarwin8 -c mibII/ipv6.c -fno-
common
-DPIC -o mibII/ipv6.lo
mibII/ipv6.c: In function 'if_getifnet':
mibII/ipv6.c:568: error: storage size of 'tmp' isn't known
mibII/ipv6.c: In function 'var_ifv6Entry':
mibII/ipv6.c:760: warning: pointer targets in return differ in signedness
mibII/ipv6.c:802: error: storage size of 'ifnet' isn't known
mibII/ipv6.c:803: error: storage size of 'ifaddr' isn't known
mibII/ipv6.c:849: error: storage size of 'ifnet' isn't known
mibII/ipv6.c:858: error: storage size of 'ifnet' isn't known
mibII/ipv6.c: In function 'var_udp6':
mibII/ipv6.c:1228: error: storage size of 'in6pcb' isn't known
mibII/ipv6.c:1228: error: storage size of 'savpcb' isn't known
mibII/ipv6.c: In function 'var_tcp6':
mibII/ipv6.c:1641: error: storage size of 'in6pcb' isn't known
mibII/ipv6.c:1641: error: storage size of 'savpcb' isn't known
make[2]: *** [mibII/ipv6.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
----------------------------------------------------------------------
>Comment By: Thomas Anders (tanders)
Date: 2006-10-17 14:43
Message:
Logged In: YES
user_id=848638
Workaround/fix is to configure
--with-out-mib-modules=mibII/ipv6 .
----------------------------------------------------------------------
Comment By: Thomas Anders (tanders)
Date: 2006-08-30 12:12
Message:
Logged In: YES
user_id=848638
Any progress on this? I'm in the process of fixing IPv6
multi-platform support for the upcoming 5.4 release and the
release cycle will start soon.
----------------------------------------------------------------------
Comment By: chrisj (jalbert)
Date: 2006-07-31 01:58
Message:
Logged In: YES
user_id=1551723
While the patch I posted is helpful, it does not address all
problems attempting to compile for IPv6. IPv6 apparently
requires private headers that have not been released by Apple.
I am working to resolve this issue.
----------------------------------------------------------------------
Comment By: chrisj (jalbert)
Date: 2006-07-11 03:18
Message:
Logged In: YES
user_id=1551723
Patch posted in http://sourceforge.net/tracker/index.php?
func=detail&aid=1520283&group_id=12694&atid=312694
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2006-07-07 03:16
Message:
Logged In: NO
As I noted in my original post, "I don't have permission to post diffs". As soon as
legal signs off, I will be happy to.
----------------------------------------------------------------------
Comment By: Thomas Anders (tanders)
Date: 2006-07-06 14:22
Message:
Logged In: YES
user_id=848638
Please post a proposed patch (unified diff) inline. Thanks.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2006-07-06 14:12
Message:
Logged In: NO
It's not as complicated as rewriting for a new KPI.
The problem is a mismatched type: OS X uses an integrated PCB struct (inpcb)
which supports both IPv4 & IPv6; other platforms use separate types (inpcb &
in6pcb) for the two protocol versions.
Since I don't have permission to post diffs, I can say there are three places in
ipv6.c where I had to add
#if STRUCT_in6pcb_HAS_inp_vflag
to determine whether to use the version specific structure or the generic one.
Defining this new flag is an exercise for the reader. ;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1498643&group_id=12694
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic