René Berber wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad Morgan wrote:


Can someone please provide an example configure command or script that will
build ClamAV from source under Cygwin?


Before running configure you have to create user clamav and group clamavg or
adjust the following.
Or you could simply use the built-in user Administrator and group Administrators, or whatever user/group your mailserver runs as.

Also, I don't use curl but you may ommit the last
parameter if you want to.

If you need curl, you can install curl-7.15.1 from source.

./configure --prefix=/usr --sysconfdir=/etc --with-user=clamav \
- --with-group=clamavg --with-dbdir=/usr/share/clamav --without-libcurl

After this, you need to edit libtool, change lines 120, 122, 124 so that they
start with:

     \$CC -shared -Wl,

The shared option is needed to allow the library to be compiled into a dll
(again you may opt to only use static libraries).

Which means using CFLAGS="-static --static".
In my case I also had to install gmp from source, as the built-in gmp in cygwin somehow doesn't work (you can ignore this, but freshclam will give warnings about digital signature).

So in my case, the steps to build clamav from source are :
- install the built-in clamav from cygwin port, which should ensure that necessary dependencies are also installed
-   install gmp and curl from source
-   install clamav

So, to use static libraries (well, almost static. You still need cygwin1.dll) and put binaries in c:\clamav, the configure line used was CFLAGS="-static --static -L/usr/local/lib" ./configure --prefix=/cygdrive/c/clamav --enable-id-check --disable-clamav --with-user=Administrator --with-group=Administrators

Regards,

Fajar
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to