I made some progress with this.
1. Downloaded the current stable release of Perl from
http://www.cpan.org/src/stable.tar.gz. Configured perl.
2. Installed net-snmp and configure it using the perl module from step1
using the configure below:
PREFIX="/opt/mynetsnmp"
env PERLPROG=/usr/local/net-snmp/bin/perl ./configure
--enable-embedded-perl -q --prefix="$PREFIX"
--with-default-snmp-version="1" --with-sys-contact="[email protected]"
--with-sys-location="$PREFIX/sys-loc"
--with-logfile="$PREFIX/snmpd.log"
--with-persistent-directory="$PREFIX/persist" --disable-manuals
--enable-silent-libtool --disable-agent
--with-perl-modules="GCC=/opt/usr/local/bin/gcc" --with-cc=gcc
--with-openssl=/usr/sfw
3. Everything appeared to go well. make, make install all appeared to
finish without errors.
4. When I try to execute mib2c from the installed folder frpm
/opt/mynetsnmp it still complained perl modules are not installed.
Any Idea what could have happened?
Tried to install net-snmp perl module again using the perl installed in step
1 and I get the error below during make.
make[1]: Entering directory `/opt/net-snmp-5.6/perl/OID'
Skip ../blib/lib/NetSNMP/OID.pm (unchanged)
/opt/usr/local/bin/gcc -c -DNETSNMP_ENABLE_IPV6 -m32 -mcpu=v9 -Usolaris2
-Dsolaris2=solaris2 -I/usr/gnu/include -I/usr/gnu/include
-I/usr/gnu/include/glib-2.0 -I/usr/openwin/include -I. -I/usr/gnu/include
-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/gnu/include
-DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV -O -DVERSION=\"5.06\" -DXS_VERSION=\"5.06\" -fPIC
"-I/opt/local/net-snmp/lib/perl5/5.12.3/sun4-solaris/CORE" OID.c
OID.xs: In function `__sprint_num_objid':
OID.xs:148: error: syntax error before "NETSNMP_PRIo"
OID.xs: In function `XS_netsnmp_oidPtr_get_indexes':
OID.xs:266: warning: assignment makes pointer from integer without a cast
make[1]: *** [OID.o] Error 1
make[1]: Leaving directory `/opt/net-snmp-5.6/perl/OID'
make: *** [subdirs] Error 2
Any help on how do I fix the error?
Eric
On Wed, Mar 23, 2011 at 12:19 PM, Eric Smith <[email protected]> wrote:
> I need to use mib2c on Solaris 10.
>
> >uname -a
> >SunOS ems-svr234 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V210
>
> I have downloaded net-snmp-5.6.tar.gz, extracted to my solaris10 box and
> trying to configure net-snmp with perl modules. I also downloaded
> openssl-1.0.0d-sol10-sparc-local.gz and gcc-3.4.6-sol10-sparc-local.gz from
> sunfreeware.com and installed on my Solaris 10 box.
>
> The net-snmp "configure" ran but with a lot of Warnings and "make" did not
> succeed. See logs.
>
> As a next step I thought I'll compile only the perl modules. Executed perl
> Makefile.PL and then make. I set the env var CC to use GCC and executed make
> with -e option. Did not have success. See perl-logs.
>
> Can someone help me with this?
>
> I looked at sunfreeware.com but the net-snmp bundle here did not come with
> perl modules do did not try using it.
>
> Eric
>
>
>
>
>
>
>
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders