Odhiambo Washington wrote:
* Niklas Saers Mailinglistaccount <[EMAIL PROTECTED]> [20031007 02:06]: wrote:

Hi, for a few days now I've been getting the following error when
compiling clamav from CVS on a FreeBSD 5-system. Any  ideas as to how to
resolve this issue?

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clamav\"
-DVERSION=\"20030829\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DBUFFSIZE=131072 -DFBUFFSIZE=16384 -DSTDC_HEADERS=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_SYS_TYPES_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
-DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DCLAMD_USE_SYSLOG=1
-DCLAMAVUSER=\"clamav\" -DCLAMAVGROUP=\"clamav\" -DC_BIGSTACK=1
-DDB1NAME=\"viruses.db\" -DDB2NAME=\"viruses.db2\"
-DDATADIR=\"/usr/local/share/clamav\" -DCONFDIR=\"/usr/local/etc\"
-DC_URANDOM=1 -DCL_THREAD_SAFE=1 -DC_BSD=1 -DWORDS_LITTLEENDIAN=1 -I. -I.
-I.. -I./zziplib -Wall -c zziplib/zzip-dir.c -MT zzip-dir.lo -MD -MP -MF
.deps/zzip-dir.TPlo  -fPIC -DPIC -o .libs/zzip-dir.lo
In file included from zziplib/zzip.h:21,
                from zziplib/zzip-dir.c:13:
zziplib/zziplib.h:83: syntax error before "zzip_ssize_t"
zziplib/zziplib.h:83: warning: type defaults to `int' in declaration of
`zzip_ssize_t'
zziplib/zziplib.h:83: warning: data definition has no type or storage
class
zziplib/zziplib.h:184: syntax error before "zzip_file_read"
zziplib/zziplib.h:184: warning: type defaults to `int' in declaration of
`zzip_file_read'
zziplib/zziplib.h:184: warning: data definition has no type or storage
class
zziplib/zziplib.h:191: syntax error before "zzip_read"
zziplib/zziplib.h:191: warning: type defaults to `int' in declaration of
`zzip_read'
zziplib/zziplib.h:191: warning: data definition has no type or storage
class
*** Error code 1



Same here on a 5.1-RELEASE system. I believe it's something being worked on.




-Wash

There's a patch in the ports tree,
--------------------------------------------------------------------------
--- libclamav/zziplib/zziplib.h.orig    Mon Sep 29 13:44:52 2003
+++ libclamav/zziplib/zziplib.h Fri Oct  3 15:45:22 2003
@@ -19,6 +19,9 @@
 #ifndef _ZZIP_ZZIP_H /* zziplib.h */
 #define _ZZIP_ZZIP_H

+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
 #include <zzip-conf.h>

 #include <fcntl.h>
--------------------------------------------------------------------------
It's named patch-zziplib.h (security/clamav-devel/files)

Rob Evers





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to