erro in pthread.h

Erlison Oliveira Santos erlison@pix.com.br
Mon Jan 15 03:59:00 GMT 2001


RES: Help - me

        I have  a hardware (machine)  AIX 4.3 and GCC 2.95.2,  what is a
simple program

                    #include <stdio.h>
                    #include <pthread.h>
                    main()
                    {
                        printf("Hello\n");
                    }


return error

In file included from p.c:2:
/usr/include/pthread.h:152: conflicting types for `__ptlock_type'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:269:
previous declaration of `__ptlock_type'
/usr/include/pthread.h:168: warning: redefinition of `pthread_attr_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:271:
warning: `pthread_attr_t' previously declared here
/usr/include/pthread.h:229: conflicting types for `pthread_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:279:
previous declaration of `pthread_t'
/usr/include/pthread.h:283: redefinition of `struct __ptq_queue'
/usr/include/pthread.h:286: warning: redefinition of `__ptq_queue'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:267:
warning: `__ptq_queue' previously declared here
/usr/include/pthread.h:292: warning: redefinition of `pthread_mutexattr_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:273:
warning: `pthread_mutexattr_t' previously declared here
/usr/include/pthread.h:340: conflicting types for `pthread_mutex_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:330:
previous declaration of `pthread_mutex_t'
/usr/include/pthread.h:372: warning: redefinition of `pthread_condattr_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:272:
warning: `pthread_condattr_t' previously declared here
/usr/include/pthread.h:406: conflicting types for `pthread_cond_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:345:
previous declaration of `pthread_cond_t'
/usr/include/pthread.h:437: warning: redefinition of `pthread_key_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:280:
warning: `pthread_key_t' previously declared here
/usr/include/pthread.h:485: conflicting types for `pthread_once_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:356:
previous declaration of `pthread_once_t'

Please, what do I do to solve this problem?



More information about the Gcc mailing list