While compiling DirectFB, i get the following errors:

In file included from ../../lib/direct/util.h:34,
                 from ../../lib/direct/debug.h:41,
                 from clock.c:34:
/usr/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/bits/pthreadtypes.h:50: error: previous declaration of 'pthread_t'
was here
/usr/include/pthread.h:286: error: conflicting types for 'pthread_attr_t'
/usr/include/bits/pthreadtypes.h:57: error: previous declaration of
'pthread_attr_t' was here
/usr/include/pthread.h:287: error: conflicting types for 'pthread_key_t'
/usr/include/bits/pthreadtypes.h:118: error: previous declaration of
'pthread_key_t' was here
/usr/include/pthread.h:289: error: conflicting types for 'pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:88: error: previous declaration of
'pthread_mutexattr_t' was here
/usr/include/pthread.h:290: error: conflicting types for 'pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:82: error: previous declaration of
'pthread_mutex_t' was here
/usr/include/pthread.h:291: error: conflicting types for 'pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:114: error: previous declaration of
'pthread_condattr_t' was here
/usr/include/pthread.h:292: error: conflicting types for 'pthread_cond_t'
/usr/include/bits/pthreadtypes.h:108: error: previous declaration of
'pthread_cond_t' was here
/usr/include/pthread.h:293: error: conflicting types for 'pthread_rwlockattr_t'
/usr/include/bits/pthreadtypes.h:170: error: previous declaration of
'pthread_rwlockattr_t' was here
/usr/include/pthread.h:294: error: conflicting types for 'pthread_rwlock_t'
/usr/include/bits/pthreadtypes.h:164: error: previous declaration of
'pthread_rwlock_t' was here
/usr/include/pthread.h:357: error: conflicting types for 'pthread_kill'
/usr/include/bits/sigthread.h:36: error: previous declaration of 'pthread_kill'
was here
In file included from ../../lib/direct/debug.h:41,
                 from clock.c:34:
../../lib/direct/util.h:144:2: warning: #warning
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is not defined, be aware of dead locks
make[3]: *** [clock.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

In pthread.h, all these types marked as conflicting are being #undefine'd, but
gcc does seem to ignore that.


-- 
           Summary: Conflicting types for pthread*_t
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hans_meiser666 at yahoo dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26753

Reply via email to