1) polozhit' attach na disk
2) cd netxms-*12*/src/agent/subagents/freebsd
3) patch < /where/is/system.diff
or just replace
---
#include <sys/user.h>
---
with
---
extern "C" {
#include <sys/user.h>
}
---
in system.cpp by hand
Viktorija Almazova wrote:
> kak pravilno propatchitj?
> a to vikidivajutsa oshibki...
>
>
> viktorija
>
> On Mon, 07 Feb 2005 15:44:09 +0200
> Alex Kirhenshtein <alk_at_undernet.lv> wrote:
>
>
>>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
>>
>>
>
>
--
Alexander Kirhenshtein
C.T.Co
Cellular: +371-9145688
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 14:05:39 -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>
Received on Mon Feb 07 2005 - 16:08:02 EET
This archive was generated by hypermail 2.2.0 : Mon Aug 01 2005 - 00:43:29 EEST