This project is archived and is in readonly mode.
round() function build failure on Solaris 11
Reported by Derek Gulbranson | January 20th, 2013 @ 08:29 PM
Attempting to build on Solaris 11 returns the following error:
./psycopg/config.h:146:15: error: static declaration of 'round' follows non-static declaration
Commenting out the declaration of the round function at line 146 in psycopg/config.h allowed the build to complete successfully.
>>> os.uname() ('SunOS', 'domain.name.com', '5.11', 'xxxxx_20121108T343253Z', 'i86pc')
Happy to provide any other information that would be helpful, just let me know.
Comments and changes to this ticket
Please take a look at ticket #97: somebody was trying to clean up this problem and doesn't look like he succeeded. We haven't heard back from him.
Please provide a patch to change the #if guard around the
round()definition (while at it, please rewrap it < 80 columns) to make it useful for the solaris versions is worth to support (from 5.9, according to wikipedia).
- State changed from new to resolved
Patch committed to avoid defining round() for solaris 10 and following
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
WARNING: the informations in this tracker are archived. Please submit new tickets or comments to the new tracker.
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.