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

Index: agent/mibgroup/disman/expr/expValue.c
===================================================================
--- agent/mibgroup/disman/expr/expValue.c	(revision 16649)
+++ agent/mibgroup/disman/expr/expValue.c	(working copy)
@@ -23,7 +23,7 @@
 int ops[128];   /* mapping from operator characters to numeric
                    tokens (ordered by priority). */
 
-
+void
 init_expValue(void)
 {
 DEBUGMSGTL(("disman:expr:eval", "Init expValue"));
@@ -322,9 +322,9 @@
 {
     netsnmp_variable_list *exprAlDente = NULL;
     netsnmp_variable_list *vtail = NULL;
-    char *cp1, *cp2, *cp3;
+    char *cp1, *cp2;
     netsnmp_variable_list *var = NULL;
-    int   i, n, level;
+    int   i, n;
     int   neg = 0;
     oid   oid_buf[MAX_OID_LEN];
 
-------------------------------------------------------------------------
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