Errors compiling 5.4.1 on Solaris10/sparc

Matt Matson <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I'm trying to compile 5.4.1 on Solaris10/sparc and am running into some 
compilation errors. By the way, I'm building this version so as to take 
advantage of --enable-mfd-rewrites per my previous post regarding IP-MIB 
support issues. Thanks in advance...again =)  

One additional change I've made per Thomas Anders
(http://fixunix.com/snmp/237442-re-solaris-10-build.html)

(added line to include/net-snmp/system/solaris.h )
#define NEW_MIB_COMPLIANT

========================

<configure options>
   ./configure --prefix=/usr/local \
   --with-default-snmp-version="2" \
   --with-sys-contact="root@localhost <mailto:root@localhost>" \
   --with-sys-location="unknown" \
   --with-logfile="/var/log/snmpd.log" \
   --with-persistent-directory="/var/net-snmp" \
   --enable-static --enable-shared \
   --without-perl-modules --disable-embedded-perl \
   --enable-mfd-rewrites \
   --without-openssl

<run make>
make install prefix=/usr/local/dist/usr/local/ 
exec_prefix=/usr/local/dist/usr/local

<Compile Error>
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/dist/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
installing libnetsnmp.la in /usr/local/dist/usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/dist/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
gmake[1]: Leaving directory `/cittio/netsnmp/net-snmp-5.4.1/snmplib'
making installlibs in /cittio/netsnmp/net-snmp-5.4.1/agent
gmake[1]: Entering directory `/cittio/netsnmp/net-snmp-5.4.1/agent'
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent 
-I../agent/mibgroup -I../snmplib   -g -O2 -Usolaris2 
-Dsolaris2=solaris2  -c -o snmp_agent.lo snmp_agent.c
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 
-Usolaris2 -Dsolaris2=solaris2 -c snmp_agent.c  -fPIC -DPIC -o 
.libs/snmp_agent.o
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 
-Usolaris2 -Dsolaris2=solaris2 -c snmp_agent.c -o snmp_agent.o 
 >/dev/null 2>&1
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent 
-I../agent/mibgroup -I../snmplib   -g -O2 -Usolaris2 
-Dsolaris2=solaris2  -c -o snmp_vars.lo snmp_vars.c
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 
-Usolaris2 -Dsolaris2=solaris2 -c snmp_vars.c  -fPIC -DPIC -o 
.libs/snmp_vars.o
In file included from snmp_vars.c:136:
/usr/include/inet/mib2.h:125: error: syntax error before "typedef"
gmake[1]: *** [snmp_vars.lo] Error 1
gmake[1]: Leaving directory `/netsnmp/net-snmp-5.4.1/agent'
gmake: *** [installsubdirlibs] Error 1

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.