From owner-freebsd-ports@FreeBSD.ORG Mon Jun 30 13:14:25 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 206A61065671 for ; Mon, 30 Jun 2008 13:14:25 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id 5CC278FC1C for ; Mon, 30 Jun 2008 13:14:23 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: (qmail 50125 invoked from network); 30 Jun 2008 09:47:41 -0300 Received: by simscan 1.1.0 ppid: 50111, pid: 50115, t: 1.7516s scanners: clamav: 0.91.1/m: spam: 3.1.1 X-Spam-Checker-Version: SpamAssassin: -last, FreeBSD Brasil LTDA rulesets: Yes X-Spam-Status: No, hits=-1.9 required=3.7 Received: from unknown (HELO botelhor.bluepex.com) (garga@200.161.198.143) by capeta.freebsdbrasil.com.br with SMTP; 30 Jun 2008 09:47:39 -0300 Received: (qmail 40313 invoked by uid 1001); 30 Jun 2008 09:48:23 -0300 Date: Mon, 30 Jun 2008 09:48:23 -0300 From: Renato Botelho To: Pieter Sybesma Message-ID: <20080630124822.GA1310@bluepex.com> References: <4868C51F.5070504@gicom.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <4868C51F.5070504@gicom.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: clamav-0.93.1_2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 13:14:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jun 30, 2008 at 01:35:59PM +0200, Pieter Sybesma wrote: > Hi, > > I'm getting this on compiling clamav: > > > cc -O -pipe -march=pentium4 -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/libclamunrar_iface.so /usr/ports/security/clamav/work/clamav-0.93.1/libclamunrar/.libs/libclamunrar.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. > > ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.33714.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=clamav-0.93_1 UPGRADE_PORT_VER=0.93_1 make > > ** Fix the problem and try again. > > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > > ! security/clamav (clamav-0.93_1) (linker error) > > It seems it's a problem since you removed the following from the > Makefile last in version 1.112 2008/06/09 16:13:25: > > > .if ${OSVERSION} < 601103 > > CONFIGURE_ARGS+= --disable-gethostbyname_r > > .else > > CONFIGURE_ARGS+= --enable-gethostbyname_r > > .endif > > I'm running the following version: > > > qmailin# uname -a > > FreeBSD qmailin.gicom.nl 5.3-RELEASE-p37 FreeBSD 5.3-RELEASE-p37 #1: Mon Mar 12 12:47:07 CET 2007 root@qmailin.gicom.nl:/usr/obj/usr/src/sys/MYKERNEL i386 Yes, the problem occours because i removed that lines. I removed them because since Last May 31, any FreeBSD < 6.2 is no longer supported anymore. This was announced one year before. Now, all "hackerisms" that made ports build and work fine on these version will be removed from the tree. FreeBSD project people strongly recommend to upgrade at least to 6.3. Thanks - -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc PAIN: Falling out of a twenty story building, and snagging your eyelid on a nail. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkho1hYACgkQ6CRbiSJE7amZkwCaAtVbC7hrk3JL7hEAWIs52TR4 0J4An3GxRPvGms38NkDooo/e8Xtf7hou =LHv+ -----END PGP SIGNATURE-----