net-snmp installation on Solaris9



Hi All,



I am trying build net-snmp with ipv6 enbled on Solaris 9. It is giving build
errors with cc & gcc. I am using the source(net-snmp-5.1.1) from
sunfrrware.com. Can someone help me in this?

When I am running configure it goes ok

./configure --prefix=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol
--enable-ipv6 --with-cc=cc
--with-persistent-directory=/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/var/
net-snmp --with-default-snmp-version=2 --with-sys-contact=\"who@where\"
--with-sys-location=\"location\"
--with-logfile=\"/net/tcsnas01/vol/nxqa/qa/local/net-snmp_sol/log\"



But when I do make it fails (using SUNWspro/bin/cc):



..................

.................

.................

cc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib
-I./.. -I.. -I/usr/local/ssl/include -g -Dsolaris2 -c mibII/system_mib.c
-KPIC -DPIC -o mibII/system_mib.o

"../../include/net-snmp/net-snmp-config.h", line 1416: warning: macro
redefined: NETSNMP_INLINE

"../../include/net-snmp/net-snmp-config.h", line 1418: warning: macro
redefined: NETSNMP_STATIC_INLINE

"mibII/system_mib.c", line 72: syntax error before or at: who

"mibII/system_mib.c", line 72: invalid source character: '@'

"mibII/system_mib.c", line 72: warning: old-style declaration or incorrect
type for: who

"mibII/system_mib.c", line 72: warning: old-style declaration or incorrect
type for: where

"mibII/system_mib.c", line 72: warning: syntax error: empty declaration

"mibII/system_mib.c", line 74: syntax error before or at: location

"mibII/system_mib.c", line 74: warning: old-style declaration or incorrect
type for: location

"mibII/system_mib.c", line 74: warning: syntax error: empty declaration

cc: acomp failed for mibII/system_mib.c

*** Error code 1

make: Fatal error: Command failed for target `mibII/system_mib.lo'

Current working directory
/net/tcsnas01/vol/nxqa/qa/net-snmp-5.1.1/agent/mibgroup

*** Error code 1

make: Fatal error: Command failed for target `subdirs'

Current working directory /net/tcsnas01/vol/nxqa/qa/net-snmp-5.1.1/agent

*** Error code 1

make: Fatal error: Command failed for target `subdirs'





Thanks in advance,

Sunil
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: Mono and Solaris 8
    ... *** Error code 1 ... make: Fatal error: Command failed for target `all-recursive' ...
    (comp.unix.solaris)
  • mySQL version 4.017 install failure
    ... *** Error code 1 ... Current working directory /tmp/mysql-4.0.17/sql ... make: Fatal error: Command failed for target `all-recursive' ...
    (SunManagers)
  • apache_1.3.31 & Solaris 9
    ... *** Error code 1 ... make: Fatal error: Command failed for target `ssl_expr_scan.lo' ... Current working directory /opt/apache_1.3.31/src/modules ...
    (comp.unix.solaris)
  • Perl module (Text::CSV_XS) installation failed... any suggestions?
    ... here but since it is more of dependency on OS package question hence I ... *** Error code 1 ... make: Fatal error: Command failed for target `CSV_XS.o' ...
    (SunManagers)
  • Re: Mono and Solaris 8
    ... *** Error code 1 ... make: Fatal error: Command failed for target `all-recursive' ... > manual coaxing to compile. ...
    (comp.unix.solaris)