Bug 191761 - lang/python27 mutliple errors in several ports python2.7/pthread.h:294:42: error: typedef redefinition with different types ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *') /usr/include/sys/_pthreadtypes.h
Summary: lang/python27 mutliple errors in several ports python2.7/pthread.h:294:42: er...
Status: Closed DUPLICATE of bug 191744
Alias: None
Product: Base System
Classification: Unclassified
Component: threads (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Many People
Assignee: freebsd-threads (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 08:45 UTC by mikhail.rokhin
Modified: 2014-07-11 16:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mikhail.rokhin 2014-07-09 08:45:06 UTC
11-curr amd64 and 10-REL i386 works fine, but 11-curr i386 fails. Reinst of py27 fails to help.

make -C /usr/ports/graphics/py-gimp
===>  Building for py27-gimp-2.8.10_2
gmake[1]: Entering directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp'
Making all in plug-ins
gmake[2]: Entering directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp/plug-ins'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp/plug-ins'
gmake[2]: Entering directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp'
  CC       gimpmodule.lo
  CC       pygimp-item.lo
  CC       pygimp-display.lo
In file included from gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/usr/local/include/python2.7/pthread.h:286:42: In file included from pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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
error: typedef redefinition withtypedef struct  pthread_mutex           *pthread_mutex_t;
                                         ^

      different types ('struct pthread_attr_st *' vs 'struct pthread_attr *')
In file included from pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:typedef struct  pthread_attr_st         *pthread_attr_t;31
:
In file included from                                          ^/usr/local/include/glib-2.0/glib.h
:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/usr/local/include/python2.7/pthread.h/usr/include/sys/_pthreadtypes.h::29168::4231::  errornote: : previoustypedef  definitionredefinition  iswith 
here      different
 types ('int' vs 'struct pthread_cond_attr *')
typedef struct  pthread_attr            *pthread_attr_t;
                                         ^
typedef int                              pthread_condattr_t;
                                         ^
/usr/include/sys/_pthreadtypes.h:72:35: note: previous definition is In file included from heregimpmodule.c:
24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from typedef struct  pthread_cond_attr       *pthread_condattr_t;/usr/local/include/glib-2.0/glib.h
:109                                         ^:

In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 In file included from gimpmodule.c:24pygimp-display.c:
:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/usr/local/include/python2.7/pthread.h:293:42: error: typedef redefinition with
      different types ('int' vs 'struct pthread_rwlockattr *')
In file included from ./pygimp.h:24:
typedef int                              pthread_rwlockattr_t;In file included from 
../../libgimp/gimp.h:                                         ^25
:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31/usr/include/sys/_pthreadtypes.h:
:In file included from 76/usr/local/include/glib-2.0/glib.h::36109::
 In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:note124: :
previous/usr/local/include/python2.7/pthread.h :definition292 :is42 :here 
error: typedef redefinition with
      different types ('struct pthread_cond_st *' vs 'struct pthread_cond *')typedef struct  pthread_rwlockattr      *pthread_rwlockattr_t;

                                         ^
typedef struct  pthread_cond_st         *pthread_cond_t;
                                         ^In file included from gimpmodule.c:24:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/usr/local/include/python2.7/pthread.h:294:42: error: 
typedef redefinition with
      different types
      ('struct pthread_rwlock_st *' vs 'struct pthread_rwlock *')
/usr/include/sys/_pthreadtypes.h:71:31: note: previous definition 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;
is                                         ^
 here
typedef struct  pthread_cond            *pthread_cond_t;
                                         ^
In file included from pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-display.c:23:
In file included from ./pygimp.h:24:
In file included from ../../libgimp/gimp.h:25:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:31:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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;
                                         ^
In file included from pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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 pygimp-item.c:24:
In file included from /usr/local/include/pygtk-2.0/pygobject.h:7:
In file included from /usr/local/include/glib-2.0/glib.h:109:
In file included from /usr/local/include/glib-2.0/glib/deprecated/gthread.h:124:
/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[2]: *** [pygimp-display.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
9 errors generated.
9 errors generated.
gmake[2]: *** [pygimp-item.lo] Error 1
gmake[2]: *** [gimpmodule.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/py-gimp/work/gimp-2.8.10/plug-ins/pygimp'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/py-gimp
Comment 1 Jung-uk Kim freebsd_committer 2014-07-11 16:51:41 UTC

*** This bug has been marked as a duplicate of bug 191744 ***