Bug 155936 - lang/python27 Pthread: previous declaration of ...
Summary: lang/python27 Pthread: previous declaration of ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 22:00 UTC by Kalten
Modified: 2012-06-16 16:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2011-03-25 22:00:19 UTC
When using WITH_PTH=true, I get the following error (using portmaster): (yes, I did use as described in /usr/ports/UPDATING at 20110304: »cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER«)
(no problem when using WITHOUT_PTH=true).

---SCHNIPP---
cc -fPIC -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBU\
G -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -Ibuild/temp.freebsd-8.2-RELEASE-am\
d64-2.7/libffi/include -Ibuild/temp.freebsd-8.2-RELEASE-amd64-2.7/libffi -I/usr/ports/lang/python27/work/Python-2.7.1\
/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include/pth -I/usr/local/include -I/usr/ports/l\
ang/python27/work/Python-2.7.1/Include -I/usr/ports/lang/python27/work/Python-2.7.1/portbld.static -c /usr/ports/lang\
/python27/work/Python-2.7.1/Modules/_ctypes/libffi/src/closures.c -o build/temp.freebsd-8.2-RELEASE-amd64-2.7/usr/por\
ts/lang/python27/work/Python-2.7.1/Modules/_ctypes/libffi/src/closures.o
In file included from /usr/ports/lang/python27/work/Python-2.7.1/Modules/_ctypes/libffi/src/closures.c:114:
/usr/local/include/pth/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/sys/_pthreadtypes.h:65: error: previous declaration of 'pthread_t' was here
/usr/local/include/pth/pthread.h:286: error: conflicting types for 'pthread_attr_t'
/usr/include/sys/_pthreadtypes.h:68: error: previous declaration of 'pthread_attr_t' was here
/usr/local/include/pth/pthread.h:288: error: conflicting types for 'pthread_once_t'
/usr/include/sys/_pthreadtypes.h:74: error: previous declaration of 'pthread_once_t' was here
/usr/local/include/pth/pthread.h:289: error: conflicting types for 'pthread_mutexattr_t'
/usr/include/sys/_pthreadtypes.h:70: error: previous declaration of 'pthread_mutexattr_t' was here
/usr/local/include/pth/pthread.h:290: error: conflicting types for 'pthread_mutex_t'
/usr/include/sys/_pthreadtypes.h:69: error: previous declaration of 'pthread_mutex_t' was here
/usr/local/include/pth/pthread.h:291: error: conflicting types for 'pthread_condattr_t'
/usr/include/sys/_pthreadtypes.h:72: error: previous declaration of 'pthread_condattr_t' was here
/usr/local/include/pth/pthread.h:292: error: conflicting types for 'pthread_cond_t'
/usr/include/sys/_pthreadtypes.h:71: error: previous declaration of 'pthread_cond_t' was here
/usr/local/include/pth/pthread.h:293: error: conflicting types for 'pthread_rwlockattr_t'
/usr/include/sys/_pthreadtypes.h:76: error: previous declaration of 'pthread_rwlockattr_t' was here
/usr/local/include/pth/pthread.h:294: error: conflicting types for 'pthread_rwlock_t'
/usr/include/sys/_pthreadtypes.h:75: error: previous declaration of 'pthread_rwlock_t' was here

Python build finished, but the necessary bits to build these modules were not found:
dl                 imageop            linuxaudiodev
spwd               sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes


===>>> Creating a backup package for old version python27-2.7.1_1
tar: lib/python2.7/lib-dynload/_ctypes.so: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256

===>>> Package creation failed for python27-2.7.1_1!

===>>> Ignore this error  [i]
===>>> Abort              [a]
---schnapp---

How-To-Repeat: cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER
checking option »WITH_PTH=true«
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-25 22:00:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-06-16 15:54:09 UTC
mva         2012-06-16 14:53:57 UTC

  FreeBSD ports repository

  Modified files:
    lang/python27        Makefile 
  Log:
  - unbreak WITH_PTH option support
  
  PR:             ports/155936
  Submitted by:   Kalten <kalten@gmx.at>
  On behalf of:   python@
  
  Revision  Changes    Path
  1.190     +3 -3      ports/lang/python27/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2012-06-16 15:55:15 UTC
State Changed
From-To: open->closed

A fix has been applied. Thanks for noticing!