public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26753]  New: Conflicting types for pthread*_t
@ 2006-03-18 23:51 hans_meiser666 at yahoo dot de
  2006-03-19  0:06 ` [Bug c/26753] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: hans_meiser666 at yahoo dot de @ 2006-03-18 23:51 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/26753] Conflicting types for pthread*_t
  2006-03-18 23:51 [Bug c/26753] New: Conflicting types for pthread*_t hans_meiser666 at yahoo dot de
@ 2006-03-19  0:06 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-19  0:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-19 00:06 -------
You cannot #undefine typedefs because the processing happens at two different
times at compiling.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-19  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-18 23:51 [Bug c/26753] New: Conflicting types for pthread*_t hans_meiser666 at yahoo dot de
2006-03-19  0:06 ` [Bug c/26753] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).