Hi there list, I am having trouble building net-snmp-5.2.2 on Solaris 8.
1) I have read the README.solaris and the INSTALL docs. 2) I have combed mailing list archives in search of a solution. 3) My configure command: ./configure --enable-shared --enable-embedded-perl 4) Perl: version 5.8.7 built per instructions in net-snmp README.solaris docs 5) Gcc: v 3.4.2 from sunfreeware 6) My $PATH: /usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/bin My first problem was this: s00c120# make making all in /home/865980/net-snmp-5.2.2.pre1/snmplib /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -I/usr/local/ssl/include -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.7/sun4-solaris-64int/CORE -g -O2 -Dsolaris2 -c -o snmp_api.lo snmp_api.c rm -f .libs/snmp_api.lo gcc -I../include -I. -I../snmplib -I/usr/local/ssl/include -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.7/sun4-solaris-64int/CORE -g -O2 -Dsolaris2 -c snmp_api.c -fPIC -DPIC -o .libs/snmp_api.lo snmp_api.c: In function `_init_snmp': snmp_api.c:666: warning: assignment makes pointer from integer without a cast snmp_api.c:671: error: dereferencing pointer to incomplete type *** Error code 1 make: Fatal error: Command failed for target `snmp_api.lo' Current working directory /home/865980/net-snmp-5.2.2.pre1/snmplib *** Error code 1 make: Fatal error: Command failed for target `subdirs' s00c120# I found something in an email that suggested defining HAVE_NETDB_H in net-snmp-config.h. I have done that and now it bombs here: rm -f .libs/system.lo gcc -I../include -I. -I../snmplib -I/usr/local/ssl/include -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.7/sun4-solaris-64int/CORE -g -O2 -Dsolaris2 -c system.c -fPIC -DPIC -o .libs/system.lo system.c: In function `get_myaddr': system.c:580: error: storage size of 'ifc' isn't known system.c:596: error: invalid application of `sizeof' to incomplete type `ifreq' system.c:601: error: invalid application of `sizeof' to incomplete type `ifreq' system.c:635: error: increment of pointer to unknown structure system.c:635: error: arithmetic on pointer to an incomplete type system.c:638: error: dereferencing pointer to incomplete type system.c:641: error: dereferencing pointer to incomplete type system.c:643: error: invalid application of `sizeof' to incomplete type `ifreq' system.c:646: error: dereferencing pointer to incomplete type system.c:646: error: `IFF_UP' undeclared (first use in this function) system.c:646: error: (Each undeclared identifier is reported only once system.c:646: error: for each function it appears in.) system.c:650: error: dereferencing pointer to incomplete type *** Error code 1 make: Fatal error: Command failed for target `system.lo' Current working directory /home/865980/net-snmp-5.2.2.pre1/snmplib *** Error code 1 make: Fatal error: Command failed for target `subdirs' s00c120# I feel I must be missing something. Can someone help? Thanks in advance. Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB [EMAIL PROTECTED] 410-965-9605 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users