Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 21:20:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191888] New: lang/python27: PTH option considered harmful
Message-ID:  <bug-191888-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 191888
           Summary: lang/python27: PTH option considered harmful
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jkim@FreeBSD.org

Created attachment 144704
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=144704&action=edit
Patch to remove the PTH option

PTH option (GNU Pth support) is known to cause trouble and it should be
removed[1].  devel/pth installs pthread.h by default, which implements POSIX
pthread.h via GNU Pth.  This file defines several mandatory types. 
Unfortunately, some types must be defined via sys/types.h per POSIX[2].

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html

Therefore, if a file includes sys/types.h and pthread.h at the same time, it
obviously redefines these types.  Especially, it is a fatal error for clang.

[1] Actually, the option was completely removed in recent Python releases.
[2] We actually defined them in sys/_pthreadtypes.h and let sys/types.h include
it.  See Bug 78907.

-- 
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-191888-13>