RE: Solaris 8/net-snmp-5.2.2 build problems
"Ruttenberg, Tanya" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I downloaded this patch from sourceforge (rather than trying to use the text in the email) and I was able to install it. However, it doesn't seem to have helped. I still get the warning below when I run configure. And it still fails in the same place: 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# When I diff the original and the patched file, clearly something changed. s00c120# diff configure.in configure.in.tdr 2419,2428c2419 < AC_CHECK_HEADERS(stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/time.h sys/times.h sys/swap.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h linux/tasks.h pwd.h grp.h utmpx.h) < AC_CHECK_HEADERS(sys/socketvar.h,,, < [[ < #if HAVE_SYS_TYPES_H < #include <sys/types.h> < #endif < #if HAVE_SYS_SOCKET_H < #include <sys/socket.h> < #endif < ]]) --- > AC_CHECK_HEADERS(stdarg.h string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/socketvar.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/time.h sys/times.h sys/swap.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h pthread.h sys/loadavg.h regex.h linux/tasks.h pwd.h grp.h utmpx.h) 2435,2437d2425 < #if HAVE_SYS_SOCKET_H < #include <sys/socket.h> < #endif 2440a2429,2431 > #if HAVE_SYS_SOCKET_H > #include <sys/socket.h> > #endif s00c120# Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB [email protected] 410-965-9605 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ruttenberg, Tanya Sent: Friday, September 23, 2005 9:48 AM To: '[email protected]' Subject: RE: Solaris 8/net-snmp-5.2.2 build problems I'm sorry I can't figure out how to apply this thing. I am using GNU patch, but I get his and nothing seems to have changed: S00c120# cp configure.in configure.in.tdr s00c120# patch -i configpatch patching file configure.in patch: **** unexpected end of file in patch s00c120# diff configure.in configure.in.tdr S00c120# By the way, I reran configure just for the fun of it and noticed this for the first time: configure: WARNING: sys/socketvar.h: present but cannot be compiled configure: WARNING: sys/socketvar.h: check for missing prerequisite headers? configure: WARNING: sys/socketvar.h: see the Autoconf documentation configure: WARNING: sys/socketvar.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/socketvar.h: proceeding with the preprocessor's result configure: WARNING: sys/socketvar.h: in the future, the compiler will take precedence configure: WARNING: ## ---------------------------------------------------- ## configure: WARNING: ## Report this to [email protected] ## configure: WARNING: ## ---------------------------------------------------- ## Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB [email protected] 410-965-9605 -----Original Message----- From: Robert Story [mailto:[email protected]] Sent: Thursday, September 22, 2005 7:26 PM To: Ruttenberg, Tanya Cc: '[email protected]' Subject: Re: Solaris 8/net-snmp-5.2.2 build problems On Thu, 22 Sep 2005 11:44:58 -0400 Tanya wrote: RT> I am having trouble building net-snmp-5.2.2 on Solaris 8. First, thanks for testing it! RT> snmp_api.c:666: warning: assignment makes pointer from integer RT> without a cast RT> snmp_api.c:671: error: dereferencing pointer to incomplete type This patch, and running autoconf, will fix that problem.. Index: configure.in =================================================================== RCS file: /cvsroot/net-snmp/net-snmp/configure.in,v retrieving revision 5.134.2.20 diff -u -p -r5.134.2.20 configure.in --- configure.in 16 Sep 2005 14:40:59 -0000 5.134.2.20 +++ configure.in 22 Sep 2005 22:57:59 -0000 @@ -2423,12 +2423,12 @@ AC_CHECK_HEADERS(arpa/inet.h netinet/in_ #if HAVE_SYS_TYPES_H #include <sys/types.h> #endif -#if HAVE_SYS_SOCKETVAR_H -#include <sys/socketvar.h> -#endif #if HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#if HAVE_SYS_SOCKETVAR_H +#include <sys/socketvar.h> +#endif #if HAVE_ARPA_INET_H #include <arpa/inet.h> #endif -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users