pthread problems and parse errors
i found the following results after using ./configure with wine for redhat 9
checking pthread.h usability... no checking pthread.h presence... yes configure: WARNING: pthread.h: present but cannot be compiled configure: WARNING: pthread.h: check for missing prerequisite headers? configure: WARNING: pthread.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for pthread.h... yes checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes Now after compiling with "make && make depend" i get the nasty message: . . . In file included from ../../include/wine/pthread.h:29, from port.c:41: /usr/include/pthread.h:83: conflicting types for `pthread_mutex_t' /usr/include/bits/pthreadtypes.h:93: previous declaration of `pthread_mutex_t' /usr/include/pthread.h:93: conflicting types for `pthread_cond_t' /usr/include/bits/pthreadtypes.h:70: previous declaration of `pthread_cond_t' /usr/include/pthread.h:120: conflicting types for `pthread_attr_t' /usr/include/bits/pthreadtypes.h:52: previous declaration of `pthread_attr_t' /usr/include/pthread.h:130: conflicting types for `pthread_mutexattr_t' /usr/include/bits/pthreadtypes.h:100: previous declaration of `pthread_mutexattr_t' /usr/include/pthread.h:134: conflicting types for `pthread_condattr_t' /usr/include/bits/pthreadtypes.h:77: previous declaration of `pthread_condattr_t' /usr/include/pthread.h:173: parse error before "__thread" /usr/include/pthread.h:173: `pthread_create' declared as function returning a function /usr/include/pthread.h:173: parse error before "void" /usr/include/pthread.h:372: storage class specified for parameter `type name' /usr/include/pthread.h:436: storage class specified for parameter `type name' In file included from port.c:41: ../../include/wine/pthread.h:32: conflicting types for `pthread_rwlock_t' /usr/include/bits/pthreadtypes.h:118: previous declaration of `pthread_rwlock_t' ../../include/wine/pthread.h:35: conflicting types for `pthread_rwlockattr_t' /usr/include/bits/pthreadtypes.h:126: previous declaration of `pthread_rwlockattr_t' This problem is not just with this package, ive had probems with some other programs as well (xmms, nicotine, mplayer......). ive simply resorted to working with rpms (they seem to work fine). I would like to learn how to compile as well though! I have a feeling that im missing some path pointers, but i really dont know where to start in debugging... Can anyone help? All the best. |
SOLVED.
i just installed the newest version of glibc. If anyone else has this problem, ive also found that often a patch is needed to get early versions of glibc to work with newer gcc versions. All is well. |
All times are GMT -5. The time now is 01:21 AM. |