> 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 > Using the above command I was able to get through "make" without error but "make install" fails:
$ make install Making install in libclamav make[1]: Entering directory `/home/brad/clamav-0.88/libclamav' make[2]: Entering directory `/home/brad/clamav-0.88/libclamav' test -z "/cygdrive/c/clamav/lib" || mkdir -p -- "/cygdrive/c/clamav/lib" /bin/sh ../libtool --mode=install /usr/local/bin/install -c 'libclamav.la' '/cygdrive/c/clamav/lib/libclamav.la' /usr/local/bin/install -c .libs/libclamav.lai /cygdrive/c/clamav/lib/libclamav.la /usr/local/bin/install: line 1: Installation: command not found /usr/local/bin/install: line 3: The: command not found /usr/local/bin/install: line 4: and: command not found /usr/local/bin/install: line 5: of: command not found somewhere.: cannot open `somewhere.' (No such file or directory) For: cannot open `For' (No such file or directory) binary: cannot open `binary' (No such file or directory) distributions,: cannot open `distributions,' (No such file or directory) you: cannot open `you' (No such file or directory) should: cannot open `should' (No such file or directory) create: cannot open `create' (No such file or directory) a: cannot open `a' (No such file or directory) directory: cannot open `directory' (No such file or directory) /usr/local/bin/install: line 7: somewhere: command not found /usr/local/bin/install: line 8: syntax error near unexpected token `(' /usr/local/bin/install: line 8: `will automagically create a directory for you (webalizer-x.xx-xx). If' make[2]: *** [install-libLTLIBRARIES] Error 2 make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/brad/clamav-0.88/libclamav' make[1]: Leaving directory `/home/brad/clamav-0.88/libclamav' _______________________________________________ http://lurker.clamav.net/list/clamav-users.html