[prev in list] [next in list] [prev in thread] [next in thread] 

List:       clamav-users
Subject:    [Clamav-users] compile errors
From:       "Walgamotte, David" <david.walgamotte () wild ! net>
Date:       2003-09-30 14:39:41
[Download RAW message or body]

Hello,

 Excellent project as the world truly needs a good opensource anti virus
mail gateway program. I'm having a bit of trouble compiling using 
gcc egcs-2.91.66 on Linux. Everything compiled fine except when I use the
--enable-milter option in which clamav-milter.c fails to compile.

Any help would be much appreciated. 


Below are the errors received when running make ......


./configure --prefix=/usr/local --sysconfdir=/usr/local/etc
--disable-klamuko --enable-milter

make 


gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clamav\"
-DVERSION=\"0.60\" -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
-DHAVE_MALLOC_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
-DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DNOBZ2PREFIX=1 -DCLAMD_USE_SYSLOG=1
-DCLAMAVUSER=\"clamav\" -DCLAMAVGROUP=\"clamav\" -DDB1NAME=\"viruses.db\"
-DDB2NAME=\"viruses.db2\" -DDATADIR=\"/usr/local/share/clamav\"
-DCONFDIR=\"/usr/local/etc\" -DC_URANDOM=1 -DC_LINUX=1 -DCL_THREAD_SAFE=1
-DCLAMUKO=1 -DWORDS_LITTLEENDIAN=1  -I. -I. -I../clamd -I../libclamav    -g
-O2 -c `test -f 'clamav-milter.c' || echo './'`clamav-milter.c
clamav-milter.c:208: parse error before `tcpSocket'
clamav-milter.c:208: warning: data definition has no type or storage class
clamav-milter.c: In function `main':
clamav-milter.c:383: `in_port_t' undeclared (first use in this function)
clamav-milter.c:383: (Each undeclared identifier is reported only once
clamav-milter.c:383: for each function it appears in.)
clamav-milter.c:383: parse error before `cpt'
make[1]: *** [clamav-milter.o] Error 1
make[1]: Leaving directory `/usr/local/clamav-0.60/clamav-milter'
make: *** [all-recursive] Error 1




Many Thanks


David Walgamotte

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>compile errors</TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">&nbsp;Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;Excellent project as the world truly needs a good \
opensource anti virus mail gateway program. I'm having a bit of trouble compiling \
using </FONT></P>

<P><FONT SIZE=2 FACE="Arial">gcc egcs-2.91.66 on Linux. Everything compiled fine \
except when I use the --enable-milter option in which clamav-milter.c fails to \
compile.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Any help would be much appreciated. </FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Below are the errors received when running make \
......</FONT> </P>
<BR>

<P><FONT SIZE=2 FACE="Arial">./configure --prefix=/usr/local \
--sysconfdir=/usr/local/etc --disable-klamuko --enable-milter</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">make </FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">gcc -DPACKAGE_NAME=\&quot;\&quot; \
-DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; \
-DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; \
-DPACKAGE=\&quot;clamav\&quot; -DVERSION=\&quot;0.60\&quot; -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 -DHAVE_MALLOC_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 \
-DSIZEOF_LONG=4 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DNOBZ2PREFIX=1 -DCLAMD_USE_SYSLOG=1 \
-DCLAMAVUSER=\&quot;clamav\&quot; -DCLAMAVGROUP=\&quot;clamav\&quot; \
-DDB1NAME=\&quot;viruses.db\&quot; -DDB2NAME=\&quot;viruses.db2\&quot; \
-DDATADIR=\&quot;/usr/local/share/clamav\&quot; \
-DCONFDIR=\&quot;/usr/local/etc\&quot; -DC_URANDOM=1 -DC_LINUX=1 -DCL_THREAD_SAFE=1 \
-DCLAMUKO=1 -DWORDS_LITTLEENDIAN=1&nbsp; -I. -I. -I../clamd \
-I../libclamav&nbsp;&nbsp;&nbsp; -g -O2 -c `test -f 'clamav-milter.c' || echo \
'./'`clamav-milter.c</FONT></P>

<P><FONT SIZE=2 FACE="Arial">clamav-milter.c:208: parse error before \
`tcpSocket'</FONT> <BR><FONT SIZE=2 FACE="Arial">clamav-milter.c:208: warning: data \
definition has no type or storage class</FONT> <BR><FONT SIZE=2 \
FACE="Arial">clamav-milter.c: In function `main':</FONT> <BR><FONT SIZE=2 \
FACE="Arial">clamav-milter.c:383: `in_port_t' undeclared (first use in this \
function)</FONT> <BR><FONT SIZE=2 FACE="Arial">clamav-milter.c:383: (Each undeclared \
identifier is reported only once</FONT> <BR><FONT SIZE=2 \
FACE="Arial">clamav-milter.c:383: for each function it appears in.)</FONT> <BR><FONT \
SIZE=2 FACE="Arial">clamav-milter.c:383: parse error before `cpt'</FONT> <BR><FONT \
SIZE=2 FACE="Arial">make[1]: *** [clamav-milter.o] Error 1</FONT> <BR><FONT SIZE=2 \
FACE="Arial">make[1]: Leaving directory `/usr/local/clamav-0.60/clamav-milter'</FONT> \
<BR><FONT SIZE=2 FACE="Arial">make: *** [all-recursive] Error 1</FONT> </P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">Many Thanks</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">David Walgamotte</FONT>
</P>

</BODY>
</HTML>


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic