Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SunOS] Compilation of _psutil_sunos.c fails with GCC 4.9.4 #1606

Closed
vser1 opened this issue Oct 18, 2019 · 0 comments · Fixed by #1607
Closed

[SunOS] Compilation of _psutil_sunos.c fails with GCC 4.9.4 #1606

vser1 opened this issue Oct 18, 2019 · 0 comments · Fixed by #1607

Comments

@vser1
Copy link
Contributor

vser1 commented Oct 18, 2019

Platform

  • SunOS 5.10 with GCC 4.9.4
  • psutil version 5.6.4

Bug description
Compilation of _psutil_sunos.c fails with GCC 4.9.4 with the following traceback (bugfix on its way):

cc -DNDEBUG -O -xcode=pic32 -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=564 -DPSUTIL_SUNOS=1 -DPSUTIL_SUNOS10=1 -I/usr/atelier/unsupported/python/v3.3.3/sunos5.10/Include -I/usr/atelier/unsupported/python/v3.3.3/sunos5.10 -c psutil/_psutil_sunos.c -o build/temp.solaris-2.10-sun4v.32bit-3.3/psutil/_psutil_sunos.o
"psutil/_psutil_sunos.c", line 1150: syntax error before or at: int
"psutil/_psutil_sunos.c", line 1151: undefined symbol: ret
"psutil/_psutil_sunos.c", line 1411: cannot recover from previous errors
cc: acomp failed for psutil/_psutil_sunos.c
error: command 'cc' failed with exit status 2
@vser1 vser1 added the bug label Oct 18, 2019
vser1 added a commit to vser1/psutil that referenced this issue Oct 18, 2019
In plain old C, variables shall be declared above

Fix giampaolo#1606
giampaolo pushed a commit that referenced this issue Nov 4, 2019
In plain old C, variables shall be declared above

Fix #1606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants