From: <no...@so...> - 2001-09-20 16:19:08
|
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-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 |