Re: 5.7.2 and 5.7.3.pre1 won't compile on Solaris 10 or 11 on SPARC

2014-01-27 Thread Niels Baggesen
Den 27-01-2014 21:30, Bruce Shaw skrev:
> Using GSWgcc4core and GSWgmake.
>
> ./configure --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio smux
> mibII/mta_sendmail" --with-cc=gcc
>
> "make" barfs on
>
> libtool: compile:  gcc -I../../include -I. -I../../agent
> -I../../agent/mibgroup -I../../snmplib -fno-strict-aliasing -g -O2
> -Usolaris2 -Dsolaris2=solaris2 -c mibII/icmp.c  -fPIC -DPIC -o
> mibII/.libs/icmp.o
> mibII/icmp.c: In function 'solaris_read_icmp6_stat':
> mibII/icmp.c:1510:12: error: 'icmp6stat' undeclared (first use in this
> function)

I have just fixed this in the 5-7-patches branch. You can also 
--enable-ipv6 to make it compile.

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


5.7.2 and 5.7.3.pre1 won't compile on Solaris 10 or 11 on SPARC

2014-01-27 Thread Bruce Shaw
Using GSWgcc4core and GSWgmake.

./configure --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio smux
mibII/mta_sendmail" --with-cc=gcc

"make" barfs on

libtool: compile:  gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -fno-strict-aliasing -g -O2
-Usolaris2 -Dsolaris2=solaris2 -c mibII/icmp.c  -fPIC -DPIC -o
mibII/.libs/icmp.o
mibII/icmp.c: In function 'solaris_read_icmp6_stat':
mibII/icmp.c:1510:12: error: 'icmp6stat' undeclared (first use in this
function)
 *mib = icmp6stat;
^
mibII/icmp.c:1510:12: note: each undeclared identifier is reported only
once for each function it appears in
mibII/icmp.c: In function 'solaris_read_icmp6_msg_stat':
mibII/icmp.c:1517:12: error: 'icmp6stat' undeclared (first use in this
function)
 *mib = icmp6stat;
^
*** Error code 1
make: Fatal error: Command failed for target `mibII/icmp.lo'
Current working directory
/usr/local/src/net-snmp/net-snmp-5.7.3.pre1/agent/mibgroup
*** Error code 1
The following command caused the error:
if test "helpers mibgroup" != ""; then \
it="helpers mibgroup" ; \
for i in $it ; do \
echo "making all in `pwd`/$i"; \
( cd $i ; make ) ; \
if test $? != 0 ; then \
exit 1 ; \
fi  \
done \
fi
make: Fatal error: Command failed for target `subdirs'
Current working directory /usr/local/src/net-snmp/net-snmp-5.7.3.pre1/agent
*** Error code 1
The following command caused the error:
if test "snmplib  agent apps man local mibs" != ""; then \
it="snmplib  agent apps man local mibs" ; \
for i in $it ; do \
echo "making all in `pwd`/$i"; \
( cd $i ; make ) ; \
if test $? != 0 ; then \
exit 1 ; \
fi  \
done \
fi
make: Fatal error: Command failed for target `subdirs'
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders