Re: kod oshibki

From: Alex Kirhenshtein <alk_at_DOMAIN_REMOVED>
Date: Mon, 07 Feb 2005 15:44:09 +0200

try to apply this patch:

---------------------------------------------------------------------------
Index: system.cpp
===================================================================
RCS file: /cvs/nms/src/agent/subagents/freebsd/system.cpp,v
retrieving revision 1.6
diff -u -r1.6 system.cpp
--- system.cpp 24 Jan 2005 19:51:16 -0000 1.6
+++ system.cpp 7 Feb 2005 13:44:23 -0000
@@ -28,7 +28,9 @@
  #include <sys/sysctl.h>
  #include <sys/utsname.h>
  #include <sys/param.h>
+extern "C" {
  #include <sys/user.h>
+}
  #include <fcntl.h>
  #include <kvm.h>
---------------------------------------------------------------------------

Viktorija Almazova wrote:
> In file included from /usr/include/sys/user.h:53,
> from system.cpp:32:
> /usr/include/vm/vm_map.h: In function `int _vm_map_lock_upgrade(vm_map *, proc *)':
> /usr/include/vm/vm_map.h:282: ANSI C++ forbids implicit conversion from `void *' in argument passing
> *** Error code 1
>
> Stop in /usr/home/viktorija/netxms-0.1.12/src/agent/subagents/freebsd.
> viktorija_at_probe ~/netxms-0.1.12/src/agent/subagents/freebsd>
>
>
>
> i nuzhen zagolovok faila /usr/include/vm/vm_map.h?
>
> viktorija
>

-- 
Alexander Kirhenshtein
C.T.Co
Cellular: +371-9145688
Received on Mon Feb 07 2005 - 15:44:09 EET

This archive was generated by hypermail 2.2.0 : Mon Aug 01 2005 - 00:43:25 EEST