On Tue, Nov 28, 2006 at 09:22:08AM +0900, H.Yagi said: > Dear Sir , > > I tried to do ClamAV 0.90 Compilation on BSDI 3.1. > But I could not do "make". > It indicated error messages. > I used gcc version 2.7.2.1. > pather# make > make all-recursive > Making all in libclamav > source='matcher-ac.c' object='matcher-ac.lo' libtool=yes DEPDIR=.deps > depmode=g > cc /usr/contrib/bin/ksh ../depcomp /usr/contrib/bin/ksh > ../libtool --mode=compi > le > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./mspack -I./unrar -g -O2 -c -o > matcher-ac.lo matcher-ac.c > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./mspack -I./unrar -g -O2 -c > matcher-ac. > c -Wp,-MD,.deps/matcher-ac.TPlo -o matcher-ac.o > In file included from others.h:25, > from matcher-ac.c:37: > cltypes.h:36: redefinition of `int8_t' > /usr/include/machine/types.h:48: `int8_t' previously declared here > cltypes.h:41: redefinition of `int16_t' > /usr/include/machine/types.h:50: `int16_t' previously declared here > cltypes.h:48: redefinition of `int32_t' > /usr/include/machine/types.h:52: `int32_t' previously declared here > cltypes.h:59: redefinition of `int64_t' > /usr/include/machine/types.h:56: `int64_t' previously declared here > *** Error code 1 > Stop. > *** Error code 1 > Stop. > *** Error code 1 > Stop. > > Please let me know how to make.
Add machine/types.h to the list of files in the AC_CHECK_HEADERS macro in configure.in. Then add #elif defined HAVE_MACHINE_INT_TYPES_H /* BSDI 3.1 */ #include <machine/types.h> At about line 31 of libclamav/cltypes.h. You'll have to rerun autoconf and so on. If it works, let us know and send a patch. I don't have access to one of those machines to take a look at the header, but I do see that the unsigned variants may not be typedef'ed, so it may need a more invasive fix. Good luck, -- -------------------------------------------------------------------------- | Stephen Gran | "The road to hell is paved with melting | | [EMAIL PROTECTED] | snowballs." -- Larry Wall | | http://www.lobefin.net/~steve | in <[EMAIL PROTECTED]> | --------------------------------------------------------------------------
signature.asc
Description: Digital signature
_______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html