compiling netsnmp on solaris 8

Hello all

Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options.

./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host" --enable-mfd-rewrites --enable-ucd-snmp-
compatibility --with-defaults --with-out-mib-modules=mibII/ipv6 --without-perl-modules

make gives the following error and goes kaput

libtool: link: : .libs/libnetsnmp.a
libtool: link: ( cd ".libs" && rm -f "libnetsnmp.la" && ln -s "../libnetsnmp.la" "libnetsnmp.la" )
: libnetsnmp.la
make[1]: Leaving directory `/net-snmp-5.5/snmplib'
making all in /net-snmp-5.5/agent
make[1]: Entering directory `/net-snmp-5.5/agent'
Makefile:346: *** commands commence before first target. Stop.
make[1]: Leaving directory `/net-snmp-5.5/agent'
make: *** [subdirs] Error 1

I've tried various versions. I've been able to compile net-snmp-5.2.5.1 without the if-mib which we need as it is a basic requirement of ours.
I'm using gcc version 3.4.6 and GNU make 3.81. Any help in this matter will be appreciated.

what is on line 346 of Makefile? Make sure there are no trailing spaces after any slashes "\" at the end of the line.

Please post the output of this command using CODE tags before modifying the file.

awk 'NR==346' Makefile|od -cx

Output of the code is mentioned below

000000  \t   f   i  \n
            0966    690a
0000004

awk 'NR==346' Makefile show output of code from lines 342 to 346 is

pythontest:
    @(dir=`pwd`; cd python; $(PYMAKE) test --basedir=$$dir) ; \
        if test $$? != 0 ; then \
    exit 1 ; \
    fi

Thanks for your reply. I will appreciate ver much if help me out :slight_smile: