[Bug 230064] databases/py-psycopg2: does not build with python 3.7

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 26 17:10:28 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230064

            Bug ID: 230064
           Summary: databases/py-psycopg2: does not build with python 3.7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: amdmi3 at FreeBSD.org
          Assignee: sunpoet at FreeBSD.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)

---
In file included from psycopg/psycopgmodule.c:27:
In file included from ./psycopg/psycopg.h:37:
./psycopg/config.h:164:15: error: static declaration of 'round' follows
non-static declaration
static double round(double num)
              ^
/usr/include/math.h:312:8: note: previous declaration is here
double  round(double);
        ^
1 error generated.
---

Full log: cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing
-I/usr/local/include -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1
-DPSYCOPG_VERSION=2.7.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=90513
-DHAVE_LO64=1 -I/usr/local/include/python3.7m -I. -I/usr/local/include
-I/usr/local/include/postgresql/server -c psycopg/psycopgmodule.c -o
build/temp.freebsd-11.2-RELEASE-amd64-3.7/psycopg/psycopgmodule.o               

This is easily fixed by removing the named round redefinition.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list