This project is archived and is in readonly mode.
round() function build failure on Solaris 11
Reported by Derek Gulbranson | 2013-01-20 20:29:39 UTC
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.
rel-2.4.6
os-solaris
Comments and changes to this ticket
-

Daniele Varrazzo 2013-01-21 13:15:40 UTC
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). -

Daniele Varrazzo 2013-01-21 13:26:26 UTC
Googling around, looks like we should define round() for solaris < 10: see https://jira.toolserver.org/browse/TS-1072.
Can you provide such a patch? Thank you.
-

Daniele Varrazzo 2013-04-21 20:21:16 UTC
- State changed from new to resolved
Patch committed to avoid defining round() for solaris 10 and following
https://github.com/dvarrazzo/psycopg/commit/d159dfea9d1e7dd9ebc52c4...
-

Daniele Varrazzo 2013-04-21 20:21:24 UTC
- Tag set to solaris
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.