PyCrypto 2.3 build fails on Solaris 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The build fails at the following point:
gcc -pthread -L/opt/csw/lib -R/opt/csw/lib -I/opt/
In file included from /usr/include/
/opt/csw/
error: command 'gcc' failed with exit status 1
When running
gcc -pthread -L/opt/csw/lib -R/opt/csw/lib -I/opt/
you don't get the error.
I removed the __add_compiler_
122 # Tweak compiler options
123 if self.compiler.
124 # Tell GCC to compile using the C99 standard.
125 self.__
adn then the build succeeds.
I got the hint from:
http://
Changed in pycrypto: | |
status: | New → Triaged |
Changed in pycrypto: | |
status: | Incomplete → Confirmed |
Is this still an issue with the latest PyCrypto from the git repository?
https:/ /github. com/dlitz/ pycrypto. git
Patches are welcome if they're well-designed and they don't remove this option on systems where it works, but I wonder if you're doing something wrong. This error is saying "I don't support C99". C99 is a 12-year-old standard. I have trouble believing that you can't find a C compiler that will compile C99 code on a modern Unix system...
A quick Google search for 'Solaris 10 C99' gives me this:
https:/ /forums. oracle. com/forums/ thread. jspa?threadID= 2019293
and this:
http:// bugs.python. org/issue175916 9
Anyway, I'm pretty sure one of the OpenCSW guys got PyCrypto working on Solaris 10 recently, but maybe he removed this option without mentioning it. See https:/ /bugs.launchpad .net/pycrypto/ +bug/518871