Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2007 15:30:08 GMT
From:      Laurent Frigault <lfrigault@agneau.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/110334: clamav-0.90.1 does not compile under FreeBSD 4.X
Message-ID:  <200703151530.l2FFU8I2062182@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/110334; it has been noted by GNATS.

From: Laurent Frigault <lfrigault@agneau.org>
To: bug-followup@FreeBSD.org, lfrigault@agneau.org
Cc:  
Subject: Re: ports/110334: clamav-0.90.1 does not compile under FreeBSD 4.X
Date: Thu, 15 Mar 2007 16:16:48 +0100

 On Thu, Mar 15, 2007 at 02:30:03PM +0000, FreeBSD-gnats-submit@FreeBSD.org wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `ports/110334'.
 > The individual assigned to look at your
 > report is: freebsd-ports-bugs. 
 > 
 > You can access the state of your problem report at any time
 > via this link:
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=110334
 > 
 > >Category:       ports
 > >Responsible:    freebsd-ports-bugs
 > >Synopsis:       clamav-0.90.1 does not compile under FreeBSD 4.X
 > >Arrival-Date:   Thu Mar 15 14:30:02 GMT 2007
 
 There seems to be an other problem with libthr under FreeBSD 5.X .
 clamd locks when using this lib (at least on my home system) :
 
 % uname -a
 FreeBSD obelix.bergerie.agneau.org 5.5-STABLE FreeBSD 5.5-STABLE #0: Tue Oct  3 10:54:54 CEST 2006 lolo@obelix.bergerie.agneau.org:/usr/src/sys/i386/compile/OBELIX  i386
 
 I've modified the previous patch to only use libthr under OSVERSION >= 6.X :
 
 --- Makefile.orig       Thu Mar 15 16:09:03 2007
 +++ Makefile    Thu Mar 15 15:58:53 2007
 @@ -30,9 +30,14 @@
  USE_LDCONFIG=  yes
  USE_RC_SUBR=   clamav-clamd clamav-freshclam
 
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} >= 600000
  # This port has a problem with -pthread,
  # force to use -lthr until it's not fixed.
  PTHREAD_LIBS=  -lthr
 +.endif
 +
 
  PORTDOCS=      *
 
 @@ -99,8 +104,6 @@
 
  PLIST_SUB+=    CLAMAVUSER=${CLAMAVUSER} \
                 CLAMAVGROUP=${CLAMAVGROUP}
 -
 -.include <bsd.port.pre.mk>
 
  .if ${OSVERSION} == 502010
  PTHREAD_LIBS=  -pthread
 
 
 -- 
 Laurent Frigault | <url:http://www.agneau.org/>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703151530.l2FFU8I2062182>