Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
redefinition of struct meminfo on solaris   Message List  
Reply | Forward Message #1094 of 1198 |
RE: [mpatrol] redefinition of struct meminfo on solaris

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-functions -c
.../../src/memory.c
In file included from ../../src/memory.c:55:
/usr/include/sys/mman.h:289: error: redefinition of `struct meminfo'
.../../src/memory.h:64: error: previous definition of `struct meminfo'
.../../src/memory.c: In function `memaccess __mp_memquery(meminfo*,
void*)':
.../../src/memory.c:769: error: ISO C++ forbids cast to non-reference
type used as lvalue

I'll appreciate some help.
Regards,
Asra



Fri Mar 14, 2008 9:31 am

graemeroy
Offline Offline
Send Email Send Email

Forward
Message #1094 of 1198 |
Expand Messages Author Sort by Date

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-functions...
asra_baig
Offline Send Email
Mar 7, 2008
9:26 am

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...
Graeme Roy
graemeroy
Offline Send Email
Mar 14, 2008
9:31 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help