Hi all and hi rob (FreeBSD clamv port mantainer). I am using a build box FreeBSD 4.10-STABLE to build a daily clamav binary. For some reason I can't use the FreeBSD port system so I am obliged to build it by hand.
I get the latest daily cvs tarball: http://www.clamav.net/snapshot/clamav-devel-latest.tar.gz I am unpacking it and then use the following configure line: ./configure --enable-milter --sysconfdir=/usr/local/etc --prefix=/usr/local --with-dbdir=/usr/local/share/clamav --disable-clamav --disable-clamuko --enable-bigstack --disable-dependency-tracking Then I iussue a make and I get after a while: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -c blob.c -fPIC -DPIC -o .libs/blob.lo gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -c blob.c -o blob.o >/dev/null 2>&1 mv -f .libs/blob.lo blob.lo /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -c -o mbox.lo mbox.c rm -f .libs/mbox.lo gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -c mbox.c -fPIC -DPIC -o .libs/mbox.lo mbox.c:382: curl/curl.h: No such file or directory *** Error code 1 I could not find the file curl.h in my system. It seems (because I am in holyday right now with limited Internet access) that the last time I succesfully build it is on: 20040806. I have examined the file: mbox.c and I found the following lines that could cause the problem ... ---> begin <--- #define CHECKURLS /* If an email contains URLs, check them */ #ifdef CHECKURLS #define LIBCURL /* To build with LIBCURL: * LDFLAGS=`curl-config --libs` ./configure ... */ #define MAX_URLS 10 /* * Maximum number of URLs scanned in a message * part */ #ifdef LIBCURL #include <curl/curl.h> #endif #endif --> end <-- Bypass the I go some steps forward but then I get : gcc -DSENDMAIL_BIN=\"/usr/sbin/sendmail\" -g -O2 -o .libs/clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o ../libclamav/.libs/libclamav.so -lz -lbz2 -lgmp -lmilter -lc_r -lwrap -Wl,--rpath -Wl,/usr/local/lib /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() clamav-milter.o: In function `clamfi_gethostbyname': /usr/home/gm-projects/clamav/clamav-devel-latest/clamav-milter/clamav-milter.c:3262: undefined reference to `gethostbyname_r' *** Error code 1 Stop in /usr/home/gm-projects/clamav/clamav-devel-latest/clamav-milter. I have the following env: FreeBSD mckoy.masternet.it 4.10-STABLE FreeBSD 4.10-STABLE #4: Tue Jul 27 19:43:32 CEST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FREEBSD i386 # gcc -v Using builtin specs. gcc version 2.95.4 20020320 [FreeBSD] # pkg_info | grep auto autoconf-2.59_2 Automatically configure source code on many Un*x platforms automake-1.9 GNU Standards-compliant Makefile generator (version 1.9) Any tips to get thing working ? Thanks. Ciao Gianmarco ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
