From: SourceForge.net <no...@so...> - 2004-02-27 09:24:35
|
Patches item #905706, was opened at 2004-02-27 10:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=905706&group_id=12694 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stefano Bianchi (actarusvb2003) Assigned to: Nobody/Anonymous (nobody) Summary: CygWin compile fail under w2k Initial Comment: under winwors 2000 profession with cygwin xxx net- snmp 5.1 fail in compile in 2 point. first point under a struct declaration in system.h second point use of pututxline not supported on my pc . I Have upgrade microsoft sdk, cygwin, as i can, but the failure persist, so I hade modify the code as follow to fix the problem, and after that the code is fixed. As most of the win32 compiler not suffer the same problem, it may a local problem . diff -ruw net-snmp- 5.1/agent/mibgroup/host/hr_system.c Save-net-snmp- 5.1/agent/mibgroup/host/hr_system.c --- net-snmp-5.1/agent/mibgroup/host/hr_system.c 2004-02-22 11:00:21.218491200 +0100 +++ Save-net-snmp- 5.1/agent/mibgroup/host/hr_system.c 2004-02-21 12:29:40.485484800 +0100 @@ -286,7 +286,7 @@ current user */ if (kill(utmp_p->ut_pid, 0) == -1 && errno == ESRCH) { utmp_p->ut_type = DEAD_PROCESS; - pututline(utmp_p); + pututxline(utmp_p); continue; } ++total; diff -ruw net-snmp-5.1/include/net- snmp/library/system.h Save-net-snmp-5.1/include/net- snmp/library/system.h --- net-snmp-5.1/include/net-snmp/library/system.h 2004-02-22 10:57:31.314180800 +0100 +++ Save-net-snmp-5.1/include/net- snmp/library/system.h 2004-02-21 12:29:58.781793600 +0100 @@ -74,11 +74,11 @@ char *curr; /* Current position */ long size; /* Size of string table */ long nfiles; /* number if filenames in table */ - struct _DIRECT *dirstr; /* Directory structure to return */ + struct direct dirstr; /* Directory structure to return */ } DIR; DIR *opendir(const char *filename); - struct _DIRECT *readdir(DIR * dirp); + struct direct *readdir(DIR * dirp); int closedir(DIR * dirp); ###################################### It seem that #if HAVE_UTMPX_H isn't correct on my platform. anyway after the fix all seem ok. It may some one enjoy my little patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=905706&group_id=12694 |