"Christian Hack" <[EMAIL PROTECTED]> ???????/???????? ? ???????? ?????????: news:[EMAIL PROTECTED] > I'm running an old RH6.2 based box, which does most things OK for now (it's > still kernel 2.2 though). I'm looking to upgrade soon, but would like to get > ClamAV going on it for now. > > When I run configure, I get these errors: > 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 > checking for pthread.h... yes > > but it continues on. When I run make I get: > > /bin/sh ../libtool --mode=compile > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -g -O2 -c -o others.lo > `test -f 'others.c' || echo './'`others.c > rm -f .libs/others.lo > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -g -O2 -c > others.c -Wp,-MD,.deps/others.TPlo -fPIC -DPIC -o .libs/others.lo > In file included from others.c:43: > /usr/include/pthread.h:141: parse error before `*' > /usr/include/pthread.h:143: `pthread_create' declared as function returning > a function > > followed by a big bunch of errors.
It's strange, because I am able to compile clamav on an even older, RH6.0-based system. Looks like something is wrong with your pthread headers. From the error message, it looks like the compiler does not recogniz the pthread_attr_t type. You may want to check that the header /usr/include/bits/pthreadtypes.h is present and declares pthread_attr_t. You may also want to verify the integrity of your headers with rpm -V glibc-devel command. Leonid. ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users