Sorry for the delay in replying. The
latest versions of Solaris define a meminfo structure which conflicts with
mpatrol’s definition. Your best bet would be to search and replace all
instances of struct meminfo in mpatrol’s source code to something like _meminfo or mp_meminfo. Another quicker way
would be to surround the inclusion of sys/mman.h in src/memory.c with a #define
meminfo sol_meminfo / #undef meminfo or something to that effect but I wouldn’t
officially recommend doing that just in case you break something else.
Graeme.
From:
mpatrol@yahoogroups.com [mailto:mpatrol@yahoogroups.com] On Behalf Of asra_baig
Sent: 06 March 2008 14:58
To: mpatrol@yahoogroups.com
Subject: [mpatrol] redefinition of
struct meminfo on solaris
I'm trying to install mpatrol on Sun Solaris 5.10 and
am getting the
following error when I do gmake:
g++ -I../../src -I../../tools -O3 -fno-inline-
.../../src/memory.
In file included from ../../src/memory.
/usr/include/
.../../src/memory.
.../../src/memory.
void*)':
.../../src/memory.
type used as lvalue
I'll appreciate some help.
Regards,
Asra