kiranvizru / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

psutil won't compile on SunOS 5.10 #421

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See:
https://groups.google.com/forum/#!topic/psutil/6soK0mK27LM

Original issue reported on code.google.com by g.rodola on 25 Aug 2013 at 3:09

GoogleCodeExporter commented 9 years ago
I was able to work around this by hacking up mib2.h... copying it to psutil dir 
and wacking out all the #ifdefs requiring NEW_MIB_COMPLIANT and including the 
local copy of mib2.h in _psutil_sunos.c. Its an ugly brutal hack, but I 
couldn't find a location to put the #define for NEW_MIB_COMPLIANT that would 
let it build cleanly. patch for mib2.h is below

I also had problems with pycc throwing in -KPIC but i bet that's just an 
opencsw gcc/binutils thing. 

The biggest remaining solaris issue is the fact that the initialization routine 
sets BOOT_TIME using psutil itself to get the start time of proc 0. Which is 
all well and good unless you happen to be trying to run this inside a zone 
which doesn't have a process 0 it can read in /proc :)

Original comment by manch...@gmail.com on 9 Sep 2013 at 3:09

Attachments:

GoogleCodeExporter commented 9 years ago
I've just come across the same issues.  Adding '#define NEW_MIB_COMPLIANT' to 
'_psutil_sunos.c' before including '<inet/tcp.h>' does the trick.  

"NEW_MIB_COMPLIANT is a define used in Solaris 10U4+ to enable additional MIB 
information".

Not exactly sure if there any side effects in adding the additional MIB info so 
will look into it a bit more.

Am also experiencing the BOOT_TIME issue, so will try to have a look at that 
too if I get time :)

Original comment by naveed.r...@gmail.com on 29 Oct 2013 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
Unfortunately I don't have a SunOS 5.10 to test against therefore the only way 
we can push this forward is if somebody provides a patch which fixes all the 
compilation issues.

Original comment by g.rodola on 29 Oct 2013 at 11:30

GoogleCodeExporter commented 9 years ago
Note: BOOT_TIME related compilation issues were fixed as of issue 425.

Original comment by g.rodola on 2 Dec 2013 at 7:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The fix in comment #2 gets 2.0.0 compiling and working fine for me on SunOS 5.10

Original comment by ogsy...@gmail.com on 11 Mar 2014 at 10:18

GoogleCodeExporter commented 9 years ago
Please try revision 0b6fb805070e.

Original comment by g.rodola on 11 Mar 2014 at 11:08

GoogleCodeExporter commented 9 years ago
Please after you do also try:

$ make build
$ make test

Original comment by g.rodola on 12 Mar 2014 at 12:30

GoogleCodeExporter commented 9 years ago
That changelog affects OS X. This issue is for SunOS/Solaris 5.10

Original comment by ogsy...@gmail.com on 12 Mar 2014 at 12:34

GoogleCodeExporter commented 9 years ago
Sorry, I'm tired. Please try revision a8461d58f055.

Original comment by g.rodola on 12 Mar 2014 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 8 Apr 2014 at 10:13