Re: clamav bug

2008-07-04 Thread Duane Hill

On Fri, 4 Jul 2008, Ben Stuyts wrote:


On 3 Jul 2008, at 06:25, yance wrote:

I have just update m ports collection. My FreeBSD is 6.0-RELEASE, and when 
I

tried to install clamav from ports collection it returned an error:



../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r'


I recently had the same problem on FreeBSD 5.5. I fixed it by changing the 
port's Makefile as follows:


RCS file: /home/ncvs/ports/security/clamav/Makefile,v
retrieving revision 1.116
diff -c -r1.116 Makefile
*** Makefile17 Jun 2008 11:20:03 -  1.116
--- Makefile27 Jun 2008 18:52:49 -
***
*** 48,54 
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
!   --enable-gethostbyname_r \
--disable-dependency-tracking
CPPFLAGS+=  -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
--- 48,54 
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
!   --disable-gethostbyname_r \
--disable-dependency-tracking
CPPFLAGS+=  -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}


I did the same change on 6.1. However, I still received the error. 
Ultimate solution was to upgrade to 7.0.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: clamav bug

2008-07-04 Thread Ben Stuyts


On 3 Jul 2008, at 06:25, yance wrote:

I have just update m ports collection. My FreeBSD is 6.0-RELEASE,  
and when I

tried to install clamav from ports collection it returned an error:


../libclamav/.libs/libclamav.so: undefined reference to  
`gethostbyname_r'


I recently had the same problem on FreeBSD 5.5. I fixed it by changing  
the port's Makefile as follows:


RCS file: /home/ncvs/ports/security/clamav/Makefile,v
retrieving revision 1.116
diff -c -r1.116 Makefile
*** Makefile17 Jun 2008 11:20:03 -  1.116
--- Makefile27 Jun 2008 18:52:49 -
***
*** 48,54 
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
!   --enable-gethostbyname_r \
--disable-dependency-tracking
  CPPFLAGS+=-I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
--- 48,54 
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
!   --disable-gethostbyname_r \
--disable-dependency-tracking
  CPPFLAGS+=-I${LOCALBASE}/include \
${PTHREAD_CFLAGS}


Hope this helps,
Ben

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: clamav bug

2008-07-03 Thread David Wood

Hi,

In message <[EMAIL PROTECTED]>, yance 
<[EMAIL PROTECTED]> writes

I have just update m ports collection. My FreeBSD is 6.0-RELEASE, and when I
tried to install clamav from ports collection it returned an error:


The problem is not clamav - it's your old and unsupported operating 
system.


6.0-RELEASE is End of Life and no longer supported by the ports 
collection. There's been one thread about clamav in recent days, where 
the maintainer responded that the necessary support in the port for 
these EoL versions of FreeBSD has been removed.


You are strongly recommended to upgrade to a supported version of 
FreeBSD - 6.3-RELEASE or 7.0-RELEASE.



Information on the supported versions and their respective End of Life 
dates can be found at http://www.freebsd.org/security/index.html (look 
towards the bottom of the page).


FreeBSD 6.0-RELEASE went end of life on 31 January 2007, I believe.


Best wishes,




David
--
David Wood
[EMAIL PROTECTED]
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


clamav bug

2008-07-03 Thread yance
Hi,

 

I have just update m ports collection. My FreeBSD is 6.0-RELEASE, and when I
tried to install clamav from ports collection it returned an error:

 

# make install

===>  Building for clamav-0.93.1_2

make  all-recursive

Making all in libclamunrar

Making all in libclamunrar_iface

Making all in libclamav

Making all in lzma

Making all in .

Making all in clamscan

/bin/sh /usr/local/bin/libtool --tag=CC--mode=link cc  -O2
-fno-strict-aliasing -pipe   -L/usr/local/lib  -lthr -o clamscan output.o
getopt.o  cfgparser.o misc.o options.o  clamscan.o others.o manager.o
treewalk.o  ../libclamav/libclamav.la -lthr

cc -O2 -fno-strict-aliasing -pipe -o .libs/clamscan output.o getopt.o
cfgparser.o misc.o options.o clamscan.o others.o manager.o treewalk.o
-L/usr/local/lib ../libclamav/.libs/libclamav.so
/usr/ports/security/clamav/work/clamav-0.93.1/libclamunrar_iface/.libs/libcl
amunrar_iface.so
/usr/ports/security/clamav/work/clamav-0.93.1/libclamunrar/.libs/libclamunra
r.so -lbz2 /usr/local/lib/libgmp.so -lz -lthr  -Wl,--rpath
-Wl,/usr/local/lib

../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r'

*** Error code 1

 

Stop in /usr/ports/security/clamav/work/clamav-0.93.1/clamscan.

*** Error code 1

 

Stop in /usr/ports/security/clamav/work/clamav-0.93.1.

*** Error code 1

 

Stop in /usr/ports/security/clamav/work/clamav-0.93.1.

*** Error code 1

 

Stop in /usr/ports/security/clamav.

*** Error code 1

 

Stop in /usr/ports/security/clamav.

 

 

Tried to modify Makefile into the following:

 

CONFIGURE_ARGS= --with-dbdir=${DBDIR} \

--with-zlib=/usr \

--without-thread \

--disable-gethostbyname_r \

--disable-zlib-vcheck \

--disable-clamuko \

--disable-clamav \

--disable-pthread \

--enable-bigstack \

--enable-readdir_r \

 

Please advise.

 

 

Kind regards,

 

 

Yance

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"