[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-patches
Subject: [Net-snmp-patches] [ net-snmp-Patches-419174 ] Darwin patches
From: noreply () sourceforge ! net
Date: 2001-09-21 9:34:27
[Download RAW message or body]
Patches item #419174, was opened at 2001-04-26 08:47
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=312694&aid=419174&group_id=12694
Category: None
Group: None
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Tex Clayton (texclayton)
Assigned to: Niels Baggesen (nba)
Summary: Darwin patches
Initial Comment:
In order to get net-snmp to run and compile under
Darwin, I had to fix the following:
1) A comment in some code from aclocal.m4 had
backquotes (`), and the shell complained when running
configure.
To fix this, I replaced the `` with " and ran
autoconf to create a new configure script.
2) The config.guess and config.sub files included
with net-snmp are not up-to-date and did not recognize
the system.
Newer versions are available from GNU, and working
version come with Darwin.
3) config.h needs to define SYSTEM_INCLUDE_FILE as
freebsd4.h
I added a file 's/darwin.h' that #includes
freebsd4.h
4) Darwin defines the socket struct in
sys/socketvar.h, NOT sys/socket.h.
Added a header check in configure.in and the
appropriate #if lines in three files:
agent/snmp_vars.c
agent/agent_read_config.c
agent/mibgroup/mibII/interfaces.c
The diff output I'm attaching was created today and
has had the configure diffs removed so that you'll
have less to wade through.
----------------------------------------------------------------------
> Comment By: John Naylon (jbpn)
Date: 2001-09-21 02:34
Message:
Logged In: YES
user_id=93926
Niels -- Solaris 2.7. Someone on the coders list mentioned
that 4.2.2pre2 had this same problem on 2.6. It would be
good if you could verify that the changes that fix
compilation for 2.6, 2.7 don't break it for Solaris 8.
Tex -- the same ordering change was applied to
net-snmp/agent/mibgroup/mibII/interfaces.c
----------------------------------------------------------------------
Comment By: Niels Baggesen (nba)
Date: 2001-09-20 13:13
Message:
Logged In: YES
user_id=88647
Actually, what I submitted (and still have, as I didn't
cvs update yet) was tested to compile on Solaris 8. What
Solaris problem did you have problems with?
----------------------------------------------------------------------
Comment By: Tex Clayton (texclayton)
Date: 2001-09-20 10:14
Message:
Logged In: YES
user_id=205506
The only pertinent changes I saw were to agent/snmp_vars.c. The changes seem to have \
only been in the order in which sys/stream.h, sys/socket.h, and sys/socketvar.h were \
#included.
Those changes did not break compilation on Darwin.
----------------------------------------------------------------------
Comment By: John Naylon (jbpn)
Date: 2001-09-20 09:19
Message:
Logged In: YES
user_id=93926
I have now committed changes to the v-4-2-patches branch to
fix compilation on Solaris; however this may well have
broken the Darwin/*BSD ports. Could you please check this
out?
----------------------------------------------------------------------
Comment By: John Naylon (jbpn)
Date: 2001-09-20 08:13
Message:
Logged In: YES
user_id=93926
At the moment, the inclusion of sys/socketvar.h breaks
compilation on Solaris.
----------------------------------------------------------------------
Comment By: Niels Baggesen (nba)
Date: 2001-09-17 13:20
Message:
Logged In: YES
user_id=88647
I have added/merged your patches for the upcoming 4.2.2
release. I would be very interested if you could try this
out. You can get it from the CVS repository by requesting
the V4-2-patches tag, or wait a few day for a release
candidate.
Thanks for your submission!
----------------------------------------------------------------------
Comment By: Tex Clayton (texclayton)
Date: 2001-05-08 13:59
Message:
Logged In: YES
user_id=205506
Unfortunately, the configure diffs were not removed in the
file I uploaded, but everything should still work.
Following these directions or using the patch will allow
you to run snmpd, but only with the -r option.
Otherwise, it complains that kvm_openfiles cannot find the
file or directory "unknown."
This is due to KERNEL_LOC being defined as "unknown." The
configure script looks in a list of hard-coded places for
the kernel image. I added /mach_kernel to the list of
places that are searched in configure.in. This corrected
this problem and you can now run snmpd without the -r
option.
-Tex
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=312694&aid=419174&group_id=12694
_______________________________________________
Net-snmp-patches mailing list
Net-snmp-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic