Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2008 09:48:23 -0300
From:      Renato Botelho <garga@FreeBSD.org>
To:        Pieter Sybesma <psy@gicom.nl>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: clamav-0.93.1_2
Message-ID:  <20080630124822.GA1310@bluepex.com>
In-Reply-To: <4868C51F.5070504@gicom.nl>
References:  <4868C51F.5070504@gicom.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <garga @ FreeBSD.org>
               <garga @ freebsdbrasil.com.br>
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-----



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