Bug 191744

Summary: lang/python27: With THREADS option: devel/pth: pthread.h conflicts with system pthread.
Product: Ports & Packages Reporter: mikhail.rokhin
Component: Individual Port(s)Assignee: Marcus von Appen <mva>
Status: Closed FIXED    
Severity: Affects Many People CC: jkim, koobs, mva, sahabatkecil471
Priority: ---    
Version: Latest   
Hardware: i386   
OS: Any   
URL: https://phabric.freebsd.org/D488
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=175390
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189844
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187979
Bug Depends on: 191888    
Bug Blocks:    
Attachments:
Description Flags
Patch to remove the PTH option none

Description mikhail.rokhin 2014-07-08 18:07:56 UTC
FreeBSD localhost 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r268088: Tue Jul  1 23:31:59 MSK 2014     root@localhost:/usr/obj/usr/src/sys/GENERIC  i386

i386 only trouble. Reinstall of pyth27 failed to solve the problem.

editors/libreoffice python2.7/pthread.h:294:42: error: typedef redefinition with different types ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *')

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

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

https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=typedef%20redefinition%20with%20different%20types%20(%27struct%20pthread&list_id=9556

Thank you in advance.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-09 03:11:53 UTC
What is the configuration (make config) options for your lang/python27 port?

Have you tested (unable to reproduce) on amd64, or only reproduced on i386?
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-09 03:13:32 UTC
Assign to maintainer
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-09 03:32:25 UTC
More specifically, if you have built Python with the PTH (GNU Pth) option, please rebuild without the option (disabled), and report back
Comment 4 mikhail.rokhin 2014-07-09 08:35:16 UTC
on amd64 11-curr it works pretty fine with the same options compiled

  ┌────────────────────────── python27-2.7.6_4 ────────────────────────────┐
  │ ┌────────────────────────────────────────────────────────────────────┐ │  
  │ │ [x] EXAMPLES  Build and/or install examples                        │ │  
  │ │ [ ] FPECTL    Floating point exception handling                    │ │  
  │ │ [x] IPV6      IPv6 protocol support                                │ │  
  │ │ [x] NLS       Enable Gettext support for the locale module         │ │  
  │ │ [ ] PTH       Threading/multiprocessing via GNU Pth                │ │  
  │ │ [x] PYMALLOC  Use Python's internal malloc                         │ │  
  │ │ [x] SEM       POSIX semaphores support                             │ │  
  │ │ [x] THREADS   Threading support                                    │ │  
  │ │──────────────────────────────── UCS ───────────────────────────────│ │  
  │ │ ( ) UCS2      Unicode UCS-2 encoding support                       │ │  
  │ │ (*) UCS4      Unicode UCS-4 encoding support                       │ │  
  │ └───────────────────────────────────────────────────────


On 10.0-REL i386 it doesn't fail.   

(In reply to Kubilay Kocak from comment #1)
> What is the configuration (make config) options for your lang/python27 port?
> 
> Have you tested (unable to reproduce) on amd64, or only reproduced on i386?
Comment 5 Jung-uk Kim freebsd_committer 2014-07-11 16:49:40 UTC
It is clearly an issue of lang/python2.7.  Reassign to the maintainer.
Comment 6 Jung-uk Kim freebsd_committer 2014-07-11 16:50:15 UTC
*** Bug 191612 has been marked as a duplicate of this bug. ***
Comment 7 Jung-uk Kim freebsd_committer 2014-07-11 16:50:47 UTC
*** Bug 191061 has been marked as a duplicate of this bug. ***
Comment 8 Jung-uk Kim freebsd_committer 2014-07-11 16:51:05 UTC
*** Bug 190719 has been marked as a duplicate of this bug. ***
Comment 9 Jung-uk Kim freebsd_committer 2014-07-11 16:51:41 UTC
*** Bug 191761 has been marked as a duplicate of this bug. ***
Comment 10 Jung-uk Kim freebsd_committer 2014-07-11 16:52:22 UTC
*** Bug 190496 has been marked as a duplicate of this bug. ***
Comment 11 Jung-uk Kim freebsd_committer 2014-07-11 17:06:57 UTC
Reassign.  The problematic header file is actually originated from devel/pth.
Comment 12 Marcus von Appen freebsd_committer freebsd_triage 2014-07-11 17:11:54 UTC
(In reply to Jung-uk Kim from comment #11)
> Reassign.  The problematic header file is actually originated from devel/pth.

In that case, Python2.7 should be rebuilt without the PTH option enabled.
Comment 13 Jung-uk Kim freebsd_committer 2014-07-11 17:18:29 UTC
(In reply to Marcus von Appen from comment #12)
> In that case, Python2.7 should be rebuilt without the PTH option enabled.

Yes, that is a known workaround.  Maybe we should remove the option from lang/python*.  I don't really see any benefit from it.
Comment 14 Jung-uk Kim freebsd_committer 2014-07-11 18:03:26 UTC
It looked at the problem more carefully.  This issue is little complicated.  Basically, sys/types.h includes sys/_pthreadtypes.h per POSIX since r146824.

http://svnweb.freebsd.org/changeset/base/146824

Unfortunately, devel/pth tries to override the pthread types defined in sys/_pthreadtypes.h via its own pthread.h.  If sys/types.h is also included, these types get redefined.  Unfortunately, this problem is really hard to avoid.
Comment 15 Jung-uk Kim freebsd_committer 2014-07-11 18:10:37 UTC
lang/python27 should remove PTH option as it is harmful.
Comment 16 Jung-uk Kim freebsd_committer 2014-07-11 18:21:49 UTC
*** Bug 191033 has been marked as a duplicate of this bug. ***
Comment 17 Jung-uk Kim freebsd_committer 2014-07-11 18:22:39 UTC
*** Bug 191062 has been marked as a duplicate of this bug. ***
Comment 18 Jung-uk Kim freebsd_committer 2014-07-11 18:23:26 UTC
*** Bug 190588 has been marked as a duplicate of this bug. ***
Comment 19 Jung-uk Kim freebsd_committer 2014-07-11 18:24:08 UTC
*** Bug 190569 has been marked as a duplicate of this bug. ***
Comment 20 Jung-uk Kim freebsd_committer 2014-07-11 18:25:16 UTC
*** Bug 190470 has been marked as a duplicate of this bug. ***
Comment 21 Jung-uk Kim freebsd_committer 2014-07-11 18:31:14 UTC
*** Bug 190483 has been marked as a duplicate of this bug. ***
Comment 22 Jung-uk Kim freebsd_committer 2014-07-11 19:05:21 UTC
Created attachment 144602 [details]
Patch to remove the PTH option
Comment 23 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-12 00:05:33 UTC
Let's leave this summary as a description of the issue, not our assessment or a reflection of the proposed resolution
Comment 24 mikhail.rokhin 2014-07-12 02:47:07 UTC
PTH is GNU, but in my case it's THREADS option. Do you see any diff? Is it equal?

(In reply to Jung-uk Kim from comment #22)
> Created attachment 144602 [details]
> Patch to remove the PTH option
Comment 25 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-12 03:57:08 UTC
This issue was reported as 11.0-CURRENT and i386 *only* and *without* the PTH option enabled (See comment 4)

Unfortunately, this bug has now gone severely off-course, due to:

 * 11 bugs that have been marked as duplicates of this bug, even though they were reported earlier (normally all-but-the-FIRST reported bug are marked duplicate)

 * More than one bug created by the reporter apparently for the same issue, for multiple ports.

 * Several bug summary changes that I cannot see any substantial for

 * An attachment added that is more suitable in its own issue report, that blocks this bug, if and *only if* this bug is relevant to the proposed fix.

@Mikhail: In order to bring your issue back on track for resolution, please do the following:

1) Attach a complete (full) build log for the failure you are observing.
2) Triple-check that the PTH option is *not* implicated.

You can do this by deinstalling python27, make rmconfig in lang/python27, then reinstalling, since PTH is *not* a default option.

3) Attach the complete (full) build log for the python27 installation you ran in steps (2)
Comment 26 mikhail.rokhin 2014-07-12 11:05:12 UTC
Reprint full failure log from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190496 

Full error log:

[build CXX] pyuno/source/module/pyuno.cxx
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:285:42: error: typedef redefinition with different types ('struct pthread_st *' vs 'struct pthread *')
typedef struct  pthread_st              *pthread_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:65:27: note: previous definition is here
typedef struct  pthread                 *pthread_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:286:42: error: typedef redefinition with different types ('struct pthread_attr_st *' vs 'struct pthread_attr *')
typedef struct  pthread_attr_st         *pthread_attr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:68:31: note: previous definition is here
typedef struct  pthread_attr            *pthread_attr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:288:42: error: typedef redefinition with different types ('int' vs 'struct pthread_once')
typedef int                              pthread_once_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:74:30: note: previous definition is here
typedef struct  pthread_once            pthread_once_t;
                                        ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:289:42: error: typedef redefinition with different types ('int' vs 'struct pthread_mutex_attr *')
typedef int                              pthread_mutexattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:70:36: note: previous definition is here
typedef struct  pthread_mutex_attr      *pthread_mutexattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:290:42: error: typedef redefinition with different types ('struct pthread_mutex_st *' vs 'struct pthread_mutex *')
typedef struct  pthread_mutex_st        *pthread_mutex_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:69:32: note: previous definition is here
typedef struct  pthread_mutex           *pthread_mutex_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:291:42: error: typedef redefinition with different types ('int' vs 'struct pthread_cond_attr *')
typedef int                              pthread_condattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:72:35: note: previous definition is here
typedef struct  pthread_cond_attr       *pthread_condattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:292:42: error: typedef redefinition with different types ('struct pthread_cond_st *' vs 'struct pthread_cond *')
typedef struct  pthread_cond_st         *pthread_cond_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:71:31: note: previous definition is here
typedef struct  pthread_cond            *pthread_cond_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:293:42: error: typedef redefinition with different types ('int' vs 'struct pthread_rwlockattr *')
typedef int                              pthread_rwlockattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:76:36: note: previous definition is here
typedef struct  pthread_rwlockattr      *pthread_rwlockattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_runtime.cxx:23:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:294:42: error: typedef redefinition with different types ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *')
typedef struct  pthread_rwlock_st       *pthread_rwlock_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:75:33: note: previous definition is here
typedef struct  pthread_rwlock          *pthread_rwlock_t;
                                         ^
[build CXX] pyuno/source/module/pyuno_callable.cxx
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:285:42: error: typedef redefinition with different types ('struct pthread_st *' vs 'struct pthread *')
typedef struct  pthread_st              *pthread_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:65:27: note: previous definition is here
typedef struct  pthread                 *pthread_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:286:42: error: typedef redefinition with different types ('struct pthread_attr_st *' vs 'struct pthread_attr *')
typedef struct  pthread_attr_st         *pthread_attr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:68:31: note: previous definition is here
typedef struct  pthread_attr            *pthread_attr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:288:42: error: typedef redefinition with different types ('int' vs 'struct pthread_once')
typedef int                              pthread_once_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:74:30: note: previous definition is here
typedef struct  pthread_once            pthread_once_t;
                                        ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:289:42: error: typedef redefinition with different types ('int' vs 'struct pthread_mutex_attr *')
typedef int                              pthread_mutexattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:70:36: note: previous definition is here
typedef struct  pthread_mutex_attr      *pthread_mutexattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:290:42: error: typedef redefinition with different types ('struct pthread_mutex_st *' vs 'struct pthread_mutex *')
typedef struct  pthread_mutex_st        *pthread_mutex_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:69:32: note: previous definition is here
typedef struct  pthread_mutex           *pthread_mutex_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:291:42: error: typedef redefinition with different types ('int' vs 'struct pthread_cond_attr *')
typedef int                              pthread_condattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:72:35: note: previous definition is here
typedef struct  pthread_cond_attr       *pthread_condattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:292:42: error: typedef redefinition with different types ('struct pthread_cond_st *' vs 'struct pthread_cond *')
typedef struct  pthread_cond_st         *pthread_cond_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:71:31: note: previous definition is here
typedef struct  pthread_cond            *pthread_cond_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:293:42: error: typedef redefinition with different types ('int' vs 'struct pthread_rwlockattr *')
typedef int                              pthread_rwlockattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:76:36: note: previous definition is here
typedef struct  pthread_rwlockattr      *pthread_rwlockattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno.cxx:20:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:294:42: error: typedef redefinition with different types ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *')
typedef struct  pthread_rwlock_st       *pthread_rwlock_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:75:33: note: previous definition is here
typedef struct  pthread_rwlock          *pthread_rwlock_t;
                                         ^
[build CXX] pyuno/source/module/pyuno_module.cxx
9 errors generated.
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/CxxObject/pyuno/source/module/pyuno_runtime.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:285:42: error: typedef redefinition with different types ('struct pthread_st *' vs 'struct pthread *')
typedef struct  pthread_st              *pthread_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:65:27: note: previous definition is here
typedef struct  pthread                 *pthread_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:286:42: error: typedef redefinition with different types ('struct pthread_attr_st *' vs 'struct pthread_attr *')
typedef struct  pthread_attr_st         *pthread_attr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:68:31: note: previous definition is here
typedef struct  pthread_attr            *pthread_attr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:288:42: error: typedef redefinition with different types ('int' vs 'struct pthread_once')
typedef int                              pthread_once_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:74:30: note: previous definition is here
typedef struct  pthread_once            pthread_once_t;
                                        ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:289:42: error: typedef redefinition with different types ('int' vs 'struct pthread_mutex_attr *')
typedef int                              pthread_mutexattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:70:36: note: previous definition is here
typedef struct  pthread_mutex_attr      *pthread_mutexattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:290:42: error: typedef redefinition with different types ('struct pthread_mutex_st *' vs 'struct pthread_mutex *')
typedef struct  pthread_mutex_st        *pthread_mutex_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:69:32: note: previous definition is here
typedef struct  pthread_mutex           *pthread_mutex_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:291:42: error: typedef redefinition with different types ('int' vs 'struct pthread_cond_attr *')
typedef int                              pthread_condattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:72:35: note: previous definition is here
typedef struct  pthread_cond_attr       *pthread_condattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:292:42: error: typedef redefinition with different types ('struct pthread_cond_st *' vs 'struct pthread_cond *')
typedef struct  pthread_cond_st         *pthread_cond_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:71:31: note: previous definition is here
typedef struct  pthread_cond            *pthread_cond_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:293:42: error: typedef redefinition with different types ('int' vs 'struct pthread_rwlockattr *')
typedef int                              pthread_rwlockattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:76:36: note: previous definition is here
typedef struct  pthread_rwlockattr      *pthread_rwlockattr_t;
                                         ^
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_callable.cxx:19:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/source/module/pyuno_impl.hxx:34:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/pyuno/inc/pyuno/pyuno.hxx:32:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hpp:8:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XComponentContext.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/RuntimeException.hdl:6:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/Exception.hdl:9:
In file included from /usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/include/rtl/ustring.hxx:27:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:18:
In file included from /usr/include/c++/v1/mutex:176:
In file included from /usr/include/c++/v1/__mutex_base:17:
/usr/local/include/python2.7/pthread.h:294:42: error: typedef redefinition with different types ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *')
typedef struct  pthread_rwlock_st       *pthread_rwlock_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:75:33: note: previous definition is here
typedef struct  pthread_rwlock          *pthread_rwlock_t;
                                         ^
9 errors generated.
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/CxxObject/pyuno/source/module/pyuno.o] Error 1
9 errors generated.
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2/workdir/CxxObject/pyuno/source/module/pyuno_callable.o] Error 1
gmake[3]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2'
gmake[2]: *** [build] Error 2
gmake[2]: Leaving directory `/usr/ports/editors/libreoffice/work/libreoffice-4.2.5.2'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/libreoffice
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/libreoffice

===>>> make build failed for editors/libreoffice

(In reply to Kubilay Kocak from comment #25)
> This issue was reported as 11.0-CURRENT and i386 *only* and *without* the
> PTH option enabled (See comment 4)
> 
> Unfortunately, this bug has now gone severely off-course, due to:
> 
>  * 11 bugs that have been marked as duplicates of this bug, even though they
> were reported earlier (normally all-but-the-FIRST reported bug are marked
> duplicate)
> 
>  * More than one bug created by the reporter apparently for the same issue,
> for multiple ports.
> 
>  * Several bug summary changes that I cannot see any substantial for
> 
>  * An attachment added that is more suitable in its own issue report, that
> blocks this bug, if and *only if* this bug is relevant to the proposed fix.
> 
> @Mikhail: In order to bring your issue back on track for resolution, please
> do the following:
> 
> 1) Attach a complete (full) build log for the failure you are observing.
> 2) Triple-check that the PTH option is *not* implicated.
> 
> You can do this by deinstalling python27, make rmconfig in lang/python27,
> then reinstalling, since PTH is *not* a default option.
> 
> 3) Attach the complete (full) build log for the python27 installation you
> ran in steps (2)
Comment 27 mikhail.rokhin 2014-07-12 11:17:30 UTC
Finally found what installed it

devel/pth: security/gnupg


(In reply to Jung-uk Kim from comment #14)
> It looked at the problem more carefully.  This issue is little complicated. 
> Basically, sys/types.h includes sys/_pthreadtypes.h per POSIX since r146824.
> 
> http://svnweb.freebsd.org/changeset/base/146824
> 
> Unfortunately, devel/pth tries to override the pthread types defined in
> sys/_pthreadtypes.h via its own pthread.h.  If sys/types.h is also included,
> these types get redefined.  Unfortunately, this problem is really hard to
> avoid.
Comment 28 mikhail.rokhin 2014-07-12 11:22:42 UTC
 ┌──────────────────────────── gnupg-2.0.25 ──────────────────────────────┐
  │ ┌────────────────────────────────────────────────────────────────────┐ │  
  │ │ [ ] PINENTRY    Use pinentry                                       │ │  
  │ │ [ ] LDAP        LDAP keyserver interface                           │ │  
  │ │ [ ] SCDAEMON    Enable Smartcard daemon (with libusb)              │ │  
  │ │ [x] CURL        Use the real curl library (worked around if no)    │ │  
  │ │ [ ] GPGSM       Enable GPGSM (requires LDAP)                       │ │  
  │ │ [ ] KDNS        Use DNS CERT helper                                │ │  
  │ │ [ ] STD_SOCKET  Use standard socket for agent                      │ │  
  │ │ [x] NLS         Native Language Support                            │ │  
  │ │ [x] DOCS        Build and/or install documentation                 │ │  
  │ │ [ ] SUID_GPG    Install GPG with suid                              │ │  
  │ └────────────────────────────────────────────────────────────────────┘ │  
  ├────────────────────────────────────────────────────────────────────────┤  
  │                     <  OK  >           <Cancel>                        │  
  └────────────────────────────────────────────────────────────────────────┘  
                                                               

(In reply to mikhail.rokhin from comment #27)
> Finally found what installed it
> 
> devel/pth: security/gnupg
> 
> 
> (In reply to Jung-uk Kim from comment #14)
> > It looked at the problem more carefully.  This issue is little complicated. 
> > Basically, sys/types.h includes sys/_pthreadtypes.h per POSIX since r146824.
> > 
> > http://svnweb.freebsd.org/changeset/base/146824
> > 
> > Unfortunately, devel/pth tries to override the pthread types defined in
> > sys/_pthreadtypes.h via its own pthread.h.  If sys/types.h is also included,
> > these types get redefined.  Unfortunately, this problem is really hard to
> > avoid.
Comment 29 Jung-uk Kim freebsd_committer 2014-07-15 21:25:33 UTC
(In reply to Kubilay Kocak from comment #25)
>  * An attachment added that is more suitable in its own issue report, that
> blocks this bug, if and *only if* this bug is relevant to the proposed fix.

Done.  Please see Bug 191888.
Comment 30 Marcus von Appen freebsd_committer freebsd_triage 2014-07-29 16:47:09 UTC
Should be handled with the upcoming update (https://phabric.freebsd.org/D488).
Comment 31 Marcus von Appen freebsd_committer freebsd_triage 2014-08-03 07:53:35 UTC
The PTH option has been removed in r363790.
Comment 32 sikisukuma 2020-09-23 10:16:07 UTC
MARKED AS SPAM