[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-support
Subject: [ net-snmp-Support Requests-410208 ] Compilation on Darwin/BSD?
From: noreply () sourceforge ! net
Date: 2001-05-05 21:47:33
[Download RAW message or body]
Support Requests item #410208, was updated on 2001-03-20 17:47
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=212694&aid=410208&group_id=12694
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compilation on Darwin/BSD?
Initial Comment:
I am interested in compiling the libraries under
Darwin/BSD. I am trying to set my host system
type, but can't see exactly how to go about doing
this. I am unsuccessful when i try to set it to "bsdi".
Before I take the whole day trying to figure this out,
has anyone done this before? Here is the output
when I ./configure, for the curious:
loading cache ./config.cache
checking if I need to feed myself to ksh... no
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-
compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E -
traditional-cpp
checking for AIX... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking host system type... configure: error: can
not guess host type; you must specify one
----------------------------------------------------------------------
Comment By: paul beard (paulbeard)
Date: 2001-05-05 14:47
Message:
Logged In: YES
user_id=201298
I'd like to get this working too, if anyone has the missing
piece.
Thanks.
----------------------------------------------------------------------
Comment By: Tex Clayton (texclayton)
Date: 2001-04-26 08:15
Message:
Logged In: YES
user_id=205506
I got it to compile yesterday and am in the process of
writing a patch.
First of all, you need to use the config.sub and
config.guess that comes with Darwin. They can be found
in /lib/libexec.
Copy those files over the ones that come with net-snmp.
Then, change the double back-quotes in aclocal.m4 to be ".
The backquotes are in a comment (``en'' and ``lo''), but
the shell doesn't like them when running configure.
At this point, configure should run fine.
After running configure, change the line in config.h:
#define SYSTEM_INCLUDE_FILE "s/generic.h"
to
#define SYSTEM_INCLUDE_FILE "s/freebsd4.h"
Under Darwin, the socket struct is defined in a system
header called socketvar.h, so there are a few places where
you need to add the line '#include <sys/socketvar.h>'.
The files that need this line are:
agent/snmp_vars.c
agent/agent_read_config.c
agent/mibgroup/mibII/interfaces.c
Now, it should make and install without a problem.
-Tex
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=212694&aid=410208&group_id=12694
_______________________________________________
Net-snmp-support mailing list
Net-snmp-support@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/net-snmp-support
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic