Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2018 17:10:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 230064] databases/py-psycopg2: does not build with python 3.7
Message-ID:  <bug-230064-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230064

            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@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@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=3D1
-DPSYCOPG_VERSION=3D2.7.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=3D90513
-DHAVE_LO64=3D1 -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=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20

This is easily fixed by removing the named round redefinition.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230064-7788>