[First, please keep all follow-ups on the mailing list]

On tis, 2007-08-14 at 17:31 -0400, Jayson Robinson wrote:
> Magnus,
> 
> Here is the all of the lines from the output:
> 
> /bin/sh ../../libtool  --mode=compile gcc -I../../include -I.
> -I../../agent -I../../agent/mibgroup -I../../snmplib   -Ulinux
> -Dlinux=linux -Wall -Winline -Wstrict-prototypes -Wwrite-strings
> -Wcast-qual -Wno-char-subscripts -c -o disman/expr/expValue.lo
> disman/expr/expValue.c
>  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
> -I../../snmplib -Ulinux -Dlinux=linux -Wall -Winline
> -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts
> -c disman/expr/expValue.c  -fPIC -DPIC -o disman/expr/.libs/expValue.o
> disman/expr/expValue.c:28: warning: return type defaults to `int'
> disman/expr/expValue.c:28: conflicting types for `init_expValue'
> disman/expr/expValue.h:7: previous declaration of `init_expValue'
> disman/expr/expValue.c: In function `_expValue_evalExpr':
> disman/expr/expValue.c:325: warning: unused variable `cp3'
> disman/expr/expValue.c:327: warning: unused variable `level'
> make[2]: *** [disman/expr/expValue.lo] Error 1
> make[2]: Leaving directory `/net-snmp-5.4.1/agent/mibgroup'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory `/net-snmp-5.4.1/agent'
> make: *** [subdirs] Error 1

I still don't get why that should generate a non-zero exit code.

> That being said,  your patch fixed the problem.  Net-SNMP compiled
> cleanly after patching that file.

Well, there obviously is som value in explicit return types in
declarations and unused variable removal.

/MF

> Jayson
> 
> > Subject: Re: rhas3 5.4.1 build problem.
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > CC: [email protected]
> > Date: Tue, 14 Aug 2007 08:07:48 +0200
> > 
> > On tor, 2007-08-09 at 11:59 -0400, Jayson Robinson wrote:
> > > 
> > > I'm trying to build 5.4.1 on an as3 box. I'm including the
> > > disman/expression mib.
> > > 
> > > On as4 the following configure line works great:
> > > --with-defaults \
> > > --with-mib-modules="ucd-snmp/extensible host disman/event-mib
> > > disman/expression smux ucd-snmp/diskio mibII/mta_sendmail" \
> > > --enable-shared \
> > > --enable-ucd-snmp-compatibility \
> > > --with-sysconfdir=/opt/net-snmp/share/snmp \
> > > --with-persistent-directory=/var/net-snmp \
> > > --with-default-snmp-version="2" \
> > > --with-logfile="/var/net-snmp/snmpd.log" \
> > > --with-openssl="/usr/local/ssl" \
> > > --with-sys-location="Unknown" \
> > > --enable-mfd-rewrites \
> > > --without-rpm \
> > > --disable-embedded-perl \
> > > --with-cflags="$RPM_OPT_FLAGS"
> > > 
> > > 
> > > On as3 it generates the following during compile:
> > > 
> > > disman/expr/expValue.c:28: warning: return type defaults to `int'
> > > disman/expr/expValue.c:28: conflicting types for `init_expValue'
> > > disman/expr/expValue.h:7: previous declaration of `init_expValue'
> > > disman/expr/expValue.c: In function `_expValue_evalExpr':
> > > disman/expr/expValue.c:325: warning: unused variable `cp3'
> > > disman/expr/expValue.c:327: warning: unused variable `level'
> > > make[2]: *** [disman/expr/expValue.lo] Error 1
> > 
> > Could you please give the complete log from the
> > last /bin/sh ../../libtool --mode compile to the final error?
> > 
> > The logs you have provided are only warnings and while they should
> be
> > handled (attached patch) they shouldn't cause the compile to abort.
> > 
> > /MF
> > 
> 
> 
> ______________________________________________________________________
> See what you’re getting into…before you go there See it!


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to