{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/609","repository_url":"https://api.github.com/repos/giampaolo/psutil","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/609/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/609/events","html_url":"https://github.com/giampaolo/psutil/issues/609","id":63515468,"number":609,"title":"psutil fails to build on Solaris 10","user":{"login":"grzn","id":175126,"avatar_url":"https://avatars.githubusercontent.com/u/175126?v=3","gravatar_id":"","url":"https://api.github.com/users/grzn","html_url":"https://github.com/grzn","followers_url":"https://api.github.com/users/grzn/followers","following_url":"https://api.github.com/users/grzn/following{/other_user}","gists_url":"https://api.github.com/users/grzn/gists{/gist_id}","starred_url":"https://api.github.com/users/grzn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grzn/subscriptions","organizations_url":"https://api.github.com/users/grzn/orgs","repos_url":"https://api.github.com/users/grzn/repos","events_url":"https://api.github.com/users/grzn/events{/privacy}","received_events_url":"https://api.github.com/users/grzn/received_events","type":"User","site_admin":false},"labels":[{"id":101780968,"url":"https://api.github.com/repos/giampaolo/psutil/labels/OpSys-Solaris","name":"OpSys-Solaris","color":"FFFFFF","default":false},{"id":101783852,"url":"https://api.github.com/repos/giampaolo/psutil/labels/Priority-High","name":"Priority-High","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2015-03-22T09:35:11Z","updated_at":"2016-12-19T19:37:03Z","closed_at":null,"body":"```\nInstalled /root/python/lib64/python2.7/site-packages/z3c.recipe.scripts-1.0.1-py2.7.egg\nSearching for psutil>=2.0\nReading http://pypi.infinidat.com/simple/psutil/\nReading http://pypi.infinidat.com/simple/psutil/None\nBest match: psutil 3.0.1\nDownloading http://pypi.infinidat.com/media/dists/psutil-3.0.1.tar.gz#md5=e6592b4e240a85a17a66636d849759d6\nProcessing psutil-3.0.1.tar.gz\nWriting /tmp/easy_install-eZ6nM5/psutil-3.0.1/setup.cfg\nRunning psutil-3.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eZ6nM5/psutil-3.0.1/egg-dist-tmp-w2Z3dl\nwarning: no previously-included files matching '*' found under directory 'docs/_build'\npsutil/_psutil_sunos.c: In function ‘psutil_net_if_stats’:\npsutil/_psutil_sunos.c:1230:44: error: ‘struct ifreq’ has no member named ‘ifr_mtu’\n                                         ifr.ifr_mtu);\n                                            ^\nerror: Setup script exited with error: command 'gcc' failed with exit status 1\nscript failed!\n```\n"},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/268057395","html_url":"https://github.com/giampaolo/psutil/issues/609#issuecomment-268057395","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/609","id":268057395,"user":{"login":"wiggin15","id":1686212,"avatar_url":"https://avatars.githubusercontent.com/u/1686212?v=3","gravatar_id":"","url":"https://api.github.com/users/wiggin15","html_url":"https://github.com/wiggin15","followers_url":"https://api.github.com/users/wiggin15/followers","following_url":"https://api.github.com/users/wiggin15/following{/other_user}","gists_url":"https://api.github.com/users/wiggin15/gists{/gist_id}","starred_url":"https://api.github.com/users/wiggin15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiggin15/subscriptions","organizations_url":"https://api.github.com/users/wiggin15/orgs","repos_url":"https://api.github.com/users/wiggin15/repos","events_url":"https://api.github.com/users/wiggin15/events{/privacy}","received_events_url":"https://api.github.com/users/wiggin15/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T19:37:03Z","updated_at":"2016-12-19T19:37:03Z","body":"What's defined in Solaris is this:\r\n\r\n     /usr/include/net/if.h:#define\tlifr_mtu\tlifr_lifru.lifru_mtu\t/* mtu */\r\n\r\nIn Solaris it's lifr, not ifr, and that's what we use in the Solaris implementation of net_if_stats: https://github.com/giampaolo/psutil/blob/master/psutil/_psutil_sunos.c#L1252 (this is the fix from #610)\r\n\r\nFor some reason the compilation tries to compile _psutil_posix.c with the wrong definition of ifr_mtu, but the line with this definition is wrapped with an ifdef:\r\n\r\n    #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)\r\n\r\nso the compiler shouldn't really get there....\r\n\r\nI suspect you're not using the latest version from this repository: your compiler hits the error on psutil/_psutil_posix.c:272 but this is a blank line in the current implementation: https://github.com/giampaolo/psutil/blob/master/psutil/_psutil_posix.c#L272"}}
{"actor":{"display_login":"wiggin15"}}