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.
rel-2.4.6
os-solaris
Comments and changes to this ticket
-
Daniele Varrazzo January 21st, 2013 @ 01:15 PM
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 January 21st, 2013 @ 01:26 PM
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 April 21st, 2013 @ 08:21 PM
- 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 April 21st, 2013 @ 08:21 PM
- 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 ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
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.