Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

round() function build failure on Solaris 11

#146

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

Reported by Derek Gulbranson · January 20th, 2013 @ 08:29 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo

    Please take a look at ticket #97 Provide missing round function for solaris 8 & 9: 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).

    January 21st, 2013 @ 01:15 PM

  2. Daniele Varrazzo
    Daniele Varrazzo

    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.

    January 21st, 2013 @ 01:26 PM

  3. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to resolved

    Patch committed to avoid defining round() for solaris 10 and following

    https://github.com/dvarrazzo/psycopg/commit/d159dfea9d1e7dd9ebc52c4...

    April 21st, 2013 @ 08:21 PM

  4. Daniele Varrazzo