Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring compiling netsnmp on solaris 8 Post 302359856 by krabu on Wednesday 7th of October 2009 02:44:06 PM
Old 10-07-2009
compiling netsnmp on solaris 8

Hello all

Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options.

./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host" --enable-mfd-rewrites --enable-ucd-snmp-
compatibility --with-defaults --with-out-mib-modules=mibII/ipv6 --without-perl-modules

make gives the following error and goes kaput

libtool: link: : .libs/libnetsnmp.a
libtool: link: ( cd ".libs" && rm -f "libnetsnmp.la" && ln -s "../libnetsnmp.la" "libnetsnmp.la" )
: libnetsnmp.la
make[1]: Leaving directory `/net-snmp-5.5/snmplib'
making all in /net-snmp-5.5/agent
make[1]: Entering directory `/net-snmp-5.5/agent'
Makefile:346: *** commands commence before first target. Stop.
make[1]: Leaving directory `/net-snmp-5.5/agent'
make: *** [subdirs] Error 1

I've tried various versions. I've been able to compile net-snmp-5.2.5.1 without the if-mib which we need as it is a basic requirement of ours.
I'm using gcc version 3.4.6 and GNU make 3.81. Any help in this matter will be appreciated.
 

10 More Discussions You Might Find Interesting

1. Programming

Compiling in Solaris

Hi, I'm new to Unix. I'm trying to compile a shared library in Solaris running on x86. I get "void value not ignored as it ought to be" error when trying "make". But it compiles fine in Fedora. How can this happen? I think both are using the same type of compiler. What can I do to get around... (8 Replies)
Discussion started by: runnerb
8 Replies

2. UNIX for Advanced & Expert Users

compiling php5 on solaris 9. please help.

I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from sunfreeware. Please see below for details: ./configure... (5 Replies)
Discussion started by: xnightcrawl
5 Replies

3. Solaris

Compiling and Running C Program on Solaris

Hello Guys, I am using Solaris Developer Express Edition 9/07, I am a beginner. Please tell me how to compile and execute a C program. Please give me your answers clearly, for the compilers cc,c89,c99. please....... reply to me. I not getting the answer anywhere.. Advance... (2 Replies)
Discussion started by: selva_ss
2 Replies

4. Solaris

compiling Seamonkey 1.1.9 on Solaris 9 sparc

I have gotten tired of getting error messages from SeaMonkey about not being on the latest version. I have downloaded the source for SeaMonkey, and when I attempt to make it with "gmake -f client.mk build" , I get the following error message: configure: error: Library requirements (pango... (0 Replies)
Discussion started by: tderscheid
0 Replies

5. Solaris

Compiling IRSSI on Solaris 10

How does one go aout compiling irssi locally on a fresh installation of Solaris 10, Out put from ./configure m command /download/1rss1-0.8.12 checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for gawk... no checking... (2 Replies)
Discussion started by: FloridaBSD
2 Replies

6. Solaris

problem compiling apache on solaris

Hi I'm trying to install apache 2.2.14 on Solaris with Openssl. I'm using following configure options: ./configure --prefix=/usr/local/apache2 --enable-ssl --enable-module=so --enable-proxy=shared --enable-proxy-http=shared --enable-proxy-ajp=shared --with-ssl=/usr/local/openssl ... (3 Replies)
Discussion started by: Aelfric
3 Replies

7. Programming

Sun Solaris C++ Compiling Error

Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much. **... (2 Replies)
Discussion started by: acheong87
2 Replies

8. Infrastructure Monitoring

Solaris 9 netsnmp-5.4.2.1 and WUG.

Hi, I have set up netsnmp-5.4.2.1 as below on a Solaris 9 SPARC server, but it is still not working with What's Up Gold. gzip -dc /mnt/sysinstall/Net-SNMP/libgcc-3.4.6-sol9-sparc-local.gz > libgcc-3.4.6-sol9-sparc-local pkgadd -d libgcc-3.4.6-sol9-sparc-local gzip -dc... (0 Replies)
Discussion started by: sparcman
0 Replies

9. Solaris

Compiling Error in Samba 3.4.1 on Solaris 10

Hi all, I am getting the following error While installing Samba 3.4.1 on Solaris 10. #./autogen.sh ./autogen.sh : autoheader : not found ./autogen.sh : test : argument expected Please help me as I am in a critical state of the project. Warm regards, Sathya (10 Replies)
Discussion started by: sathya47
10 Replies

10. UNIX Benchmarks

error compiling bm software under Solaris 10

anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler.. got an error complaining about the Makefile script syntax... I don't think that's compatible at all... (2 Replies)
Discussion started by: ppchu99
2 Replies
SNMP_AGENT_API(3)						     Net-SNMP							 SNMP_AGENT_API(3)

NAME
snmp_agent_api - embedding an agent into a external application SYNOPSIS
#include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> int main (int argc, char *argv[]) { int agentx_subagent = 1; /* Change this if you're a master agent. */ snmp_enable_stderrlog(); /* If we're an AgentX subagent... */ if (agentx_subagent) { /* ...make us an AgentX client. */ netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1); } init_agent("yourappname"); /* Initialize your MIB code here. */ init_my_mib_code(); /* `yourappname' will be used to read yourappname.conf files. */ init_snmp("yourappname"); /* If we're going to be a SNMP master agent... */ if (!agentx_subagent) init_master_agent(); /* Listen on default port (161). */ /* Your main loop here... */ while (whatever) { /* if you use select(), see snmp_api(3) */ /* --- OR --- */ agent_check_and_process(0); /* 0 == don't block */ } /* At shutdown time: */ snmp_shutdown("yourappname"); } Then: $(CC) ... `net-snmp-config --agent-libs` DESCRIPTION
Our goal is to create a easy to use interface to the Net-SNMP package such that you can take code that you have written that has been designed to be a Net-SNMP MIB module and embed it into an external application where you can either chose to be a SNMP master agent or an AgentX sub-agent using the same MIB module code. Our suggestion is that you use our (or another) SNMP agent as the AgentX master agent and chose to become an AgentX subagent which then attaches to the master. The Net-SNMP package provides a pair of libraries that enables easy embedding of an SNMP or AgentX agent into an external software package. AgentX is an extensible protocol designed to allow multiple SNMP sub-agents all run on one machine under a single SNMP master agent. It is defined in RFC 2741. You will need to perform a few tasks in order to accomplish this. First off, you will need to initialize both the SNMP library and the SNMP agent library. As indicated above, this is done slightly differently depending on whether or not you are going to perform as a master agent or an AgentX sub-agent. CONFIGURATION
If you intend to operate as an AgentX sub-agent, you will have to configured the Net-SNMP package with agentx support (which is turned on by default, so just don't turn it off) Additionally, you will need to link against the net-snmp libraries (use the output of "net-snmp-config --agent-libs" to get a library list) and call subagent_pre_init() as indicated above. COMPILING
In order to make use of any of the above API, you will need to link against at least the four libraries listed above. FUNCTIONS
where to find out more information on them. It is certainly not a complete list of what is available within all the net-snmp libraries. snmp_enable_stderrlog() Logs error output from the SNMP agent to the standard error stream. netsnmp_ds_set_boolean() Please see the default_store(3) manual page for more information about this API. init_agent(char *name) Initializes the embedded agent. This should be called before the init_snmp() call. name is used to dictate what .conf file to read when init_snmp() is called later. init_snmp(char *name) Initializes the SNMP library. Note that one of the things this will do will be to read configuration files in an effort to config- ure your application. It will attempt to read the configuration files named by the name string that you passed in. It can be used to configure access control, for instance. Please see the read_config(3), snmp_config(5), and snmpd.conf(5) manual pages for fur- ther details on this subject. init_master_agent(void) Initializes the master agent and causes it to listen for SNMP requests on its default UDP port of 161. agent_check_and_process(int block) This checks for packets arriving on the SNMP port and processes them if some are found. If block is non-zero, the function call will block until a packet arrives or an alarm must be run (see snmp_alarm(3)). The return value from this function is a positive integer if packets were processed, zero if an alarm occurred and -1 if an error occured. snmp_shutdown(char *name); This shuts down the agent, saving any needed persistent storage, etc. SEE ALSO
http://www.net-snmp.org/tutorial-5/toolkit/, select(2), snmp_api(3), default_store(3), snmp_alarm(3), read_config(3), snmp_config(5), snmpd.conf(5) 4.2 Berkeley Distribution 02 Apr 2001 SNMP_AGENT_API(3)
All times are GMT -4. The time now is 09:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy