Conflicting declarations in libc6-dev and libpthread-dev

Bug #97092 reported by Wietse Koopmans
4
Affects Status Importance Assigned to Milestone
pth (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libpthread-dev

While trying to compile kino-1.0.0 on feisty, I got the errors shown below. Removing libpthread-dev solved the conflicts and I could compile kino without a problem.

Packages:
libpthread-dev_2.0.7-4build1_i386
libc6-dev_2.5-0ubuntu12_i386

/usr/include/bits/pthreadtypes.h:43: error: 'pthread_attr_t' has a previous declaration as 'typedef union pthread_attr_t pthread_attr_t'
/usr/include/pthread.h:287: error: conflicting declaration 'typedef int pthread_key_t'
/usr/include/bits/pthreadtypes.h:109: error: 'pthread_key_t' has a previous declaration as 'typedef unsigned int pthread_key_t'
/usr/include/pthread.h:289: error: conflicting declaration 'typedef int pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:79: error: 'pthread_mutexattr_t' has a previous declaration as 'typedef union pthread_mutexattr_t pthread_mutexattr_t'
/usr/include/pthread.h:290: error: conflicting declaration 'typedef struct pthread_mutex_st* pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:73: error: 'pthread_mutex_t' has a previous declaration as 'typedef union pthread_mutex_t pthread_mutex_t'
/usr/include/pthread.h:291: error: conflicting declaration 'typedef int pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:105: error: 'pthread_condattr_t' has a previous declaration as 'typedef union pthread_condattr_t pthread_condattr_t'
/usr/include/pthread.h:292: error: conflicting declaration 'typedef struct pthread_cond_st* pthread_cond_t'
/usr/include/bits/pthreadtypes.h:99: error: 'pthread_cond_t' has a previous declaration as 'typedef union pthread_cond_t pthread_cond_t'
/usr/include/pthread.h:293: error: conflicting declaration 'typedef int pthread_rwlockattr_t'
/usr/include/bits/pthreadtypes.h:142: error: 'pthread_rwlockattr_t' has a previous declaration as 'typedef union pthread_rwlockattr_t pthread_rwlockattr_t'
/usr/include/pthread.h:294: error: conflicting declaration 'typedef struct pthread_rwlock_st* pthread_rwlock_t'
/usr/include/bits/pthreadtypes.h:136: error: 'pthread_rwlock_t' has a previous declaration as 'typedef union pthread_rwlock_t pthread_rwlock_t'

Revision history for this message
Fjodor (sune-molgaard) wrote :

I see the same trying to compile seamonkey-1.1.1

/Fjodor

Daniel T Chen (crimsun)
Changed in pth:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.