Hi Guys
I have been breaking my head for a couple of versions of net-snmp for the
past two days.
I had been using Net-SNMP 5.1.4 so far in my embedded code which is used in
the following architechtures:
x86
and Mips..
*ISSUE 1:*
Now I had to upgrade to 5.3.2 for localized keys support during user
creation.
So after i upgraded i started facing the issue on SIGHUP:
2006-04-28 17:22:21 error on subcontainer '' insert (-1)
2006-04-28 17:22:21 error on subcontainer '' insert (-1)
2006-04-28 17:22:21 error on subcontainer '' insert (-1)
Searching on Sourceforge i found that this can be fixed using the Official
Patch for the bug:
1473289 5.3.0.1 SIGHUP breaks daemons
I downloaded this patch using the link:
https://sourceforge.net/tracker/download.php?group_id=12694&atid=456380&file_id=175273&aid=1473289
However when i looked into the patch I found that this patch has already
been updated in the code for 5.3.2 However the bug still exists.
I wonder what may be the issue.
I found the following Mailing thread regarding a Similar Concern:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09939.html
This lady is also facing the same Issue even after patching the file.
However John has replied with the same patch location in the thread which
she has already applied as per her description.
I wonder if the bug exists in the higher versions.
I reckon the bug was reported initially by John and fixed by Robert Story
before it was promoted as an official patch.
But I am finding the same issue with 5.3.2 also even tho the bug trial shows
that it was checked in to the 5.3.x Branch and main also.
Kindly let me know what may be the issue.
*ISSUE 2:*
On encountering the above problem i switched to 5.4.1 and tested it on my
Linux PC (x86 architecture) and everything is working fine.
When i tried to install the same on a mips architechture the build broke
down when it was trying to link netsnmpagent library and failed there.
When i tried to check the errors thrown I got the following information:
configure: WARNING: Can't check sysctl, manually define
NETSNMP_CAN_USE_SYSCTL if platform support available
Now when i check the code for /snmplib/system.c:
I find here that
long
get_boottime(void)
{
static long boottime_csecs = 0;
#if defined(hpux10) || defined(hpux11)
struct pst_static pst_buf;
#else
struct timeval boottime;
#ifdef NETSNMP_CAN_USE_SYSCTL
int mib[2];
size_t len;
#elif defined(NETSNMP_CAN_USE_NLIST)
int kmem;
static struct nlist nl[] = {
Now in the include/net-snmp/system/mips.h file
i see the content:
#define NETSNMP_DONT_USE_NLIST 1
Should anything be changed here in order for the linking to happen as I see
the Macro declared here is not used in system.c
Just thought of highlighting this even though it may not be of much
significance...:))
Anyways Im not able to link the code for the MIPS Architechture..
Should I manually define NETSNMP_CAN_USE_SYSCTL??
Kindly let me know.
I have to give the release with Localized Keys support by the end of the
week and would seriously appreciate an Early Response.
Thanks
Anand
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders