Quoting Matthew Walker ([EMAIL PROTECTED]):
> Any recomendations for sucessfully compiling 0.90 using FreeBSD 4.11 with GCC
> 3.4.6?
Find the #include <resolv.h> in configure add add these includes
above that line.
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
Without those includes DNS will be disabled. Look at your config.log
file.
This is what I configure with on 4.11 with gcc 2.95.4.
./configure --with-dbdir=/var/db/clamav \
--with-zlib=/usr \
--mandir=/usr/local/share/man \
--disable-zlib-vcheck \
--disable-clamuko \
--disable-clamav \
--enable-bigstack \
--disable-gethostbyname_r \
--enable-readdir_r \
--disable-dependency-tracking \
--with-user=sweep \
--with-group=sweep \
--without-libcurl
This fixes the missing lib problem.
find . -name Makefile -print | xargs grep -l pthread | xargs perl -pi -e
's/-lpthread -lc_r/-pthread/g'
Changing this in configure
freebsd*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-lpthread -lc_r"
TH_SAFE="-thread-safe"
to this
freebsd*)
if test "$have_pthreads" = "yes"; then
THREAD_LIBS="-pthread"
TH_SAFE="-thread-safe"
may fix the missing lib problem also.
John Capo
Tuffmail.com
>
> So far I tried the following:
>
> First Attempt
> $ make clean;./configure CC=gcc34 CFLAGS="-pthread -O3"; make
> /usr/libexec/elf/ld: cannot find -lpthread
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop in /usr/packages/clamav-0.90/libclamav.
> *** Error code 1
>
> Stop in /usr/packages/clamav-0.90.
> *** Error code 1
>
> Stop in /usr/packages/clamav-0.90.
>
> Second Attempt:
> $ make clean;./configure --disable-pthreads CC=gcc34 CFLAGS="-O3"; make
>
> creating clamconf
> Making all in database
> Making all in docs
> Making all in etc
> Making all in clamav-milter
>
> However when I disable 'pthreads' it doesn't compile ClamD or Clamdscan only
> libclamav.
>
> [/usr/packages/clamav-0.90/clamd]$ ls
> .deps dazukoio_compat12.c server.h
> Makefile dazukoio_compat12.h session.c
> Makefile.am dazukoio_xp.h session.h
> Makefile.in localserver.c shared.h
> clamd.c localserver.h tcpserver.c
> clamuko.c others.c tcpserver.h
> clamuko.h others.h thrmgr.c
> dazuko_xp.h scanner.c thrmgr.h
> dazukoio.c scanner.h
> dazukoio.h server-th.c
>
> [/usr/packages/clamav-0.90/clamdscan]$ ls
> .deps Makefile.am clamdscan.c client.h
> Makefile Makefile.in client.c defaults.h
>
> 0.88.7 compiled without any special flags.
>
> Thank You.
>
>
>
>
>
>
>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html