From owner-freebsd-ports@FreeBSD.ORG Fri Jun 24 15:16:05 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B710F16A41C for ; Fri, 24 Jun 2005 15:16:05 +0000 (GMT) (envelope-from sven@dmv.com) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AA7243D1D for ; Fri, 24 Jun 2005 15:16:05 +0000 (GMT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) by smtp-gw-cl-d.dmv.com (8.12.10/8.12.10) with ESMTP id j5OFFpwG064808; Fri, 24 Jun 2005 11:15:51 -0400 (EDT) (envelope-from sven@dmv.com) From: Sven Willenberger To: Manfred Antar In-Reply-To: <6.2.1.2.2.20050624072918.03cae588@pozo.com> References: <00ba01c577df$4c80a9c0$0201a8c0@BKUBESA> <6.2.1.2.2.20050624072918.03cae588@pozo.com> Content-Type: text/plain Date: Fri, 24 Jun 2005 11:16:42 -0400 Message-Id: <1119626202.18388.7.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 Cc: ports@freebsd.org, rob@debank.tv, =?iso-8859-2?Q?B=F8etislav?= Kubesa Subject: Re: FreeBSD Port: clamav-0.86 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: Fri, 24 Jun 2005 15:16:05 -0000 On Fri, 2005-06-24 at 07:35 -0700, Manfred Antar wrote: > At 03:35 AM 6/23/2005, =?iso-8859-2?Q?B=F8etislav_Kubesa?= wrote: > >Hello, I`m not able to compile clamav-0.86 {clamav-milter} on FreeBSD 5.4. > >Here is the output : > > > >Making all in clamav-milter > >cc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include > > -O -pipe -march=pentium4 -c -o cfgparser.o `test -f > >'../shared/cfgparser.c' || echo './'`../shared/cfgparser.c > >cc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include > > -O -pipe -march=pentium4 -c -o getopt.o `test -f '../shared/getopt.c' || > >echo './'`../shared/getopt.c > >cc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include > > -O -pipe -march=pentium4 -c -o memory.o `test -f '../shared/memory.c' || > >echo './'`../shared/memory.c > >cc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include > > -O -pipe -march=pentium4 -c -o misc.o `test -f '../shared/misc.c' || echo > >'./'`../shared/misc.c > >cc -DHAVE_CONFIG_H -I. -I. -I.. -I../clamd -I../libclamav -I../shared -I/usr/local/include > > -O -pipe -march=pentium4 -c clamav-milter.c > >clamav-milter.c: In function `clamfi_gethostbyname': > >clamav-milter.c:4261: warning: comparison between pointer and integer > >/bin/sh /usr/local/bin/libtool15 --mode=link > > -O -pipe -march=pentium4 -L/usr/local/lib -pthread -o clamav-milter > >cfgparser.o getopt.o memory.o misc.o clamav-milter.o > >../libclamav/libclamav.la -lmilter -pthread -lwrap > >mkdir .libs > >cc -O -pipe -march=pentium4 -pthread -o .libs/clamav-milter cfgparser.o > >getopt.o memory.o misc.o clamav-milter.o -pthread -L/usr/local/lib > >../libclamav/.libs/libclamav.so -lbz2 -lgmp -lcurl -lssl -lcrypto -lz -lmilter > > -pthread -lwrap -Wl,--rpath -Wl,/usr/local/lib > >clamav-milter.o(.text+0x5f1e): In function `clamfi_gethostbyname': > >: undefined reference to `gethostbyname_r' > >*** Error code 1 > > > >Can you help me with this somehow please ? Previous version 0.85.1 worked > >without any troubles. > > > >Thank you. > > > >BK > > I had to add --disable-pthread to the COFIGURE_ARGS in the Makefile to > get it to compile. It's funny cause there is already --disable-gethostbyname_r > in the Makefile but it doesn't work. > Manfred FWIW there is a lwres_gethostbyname_r (not regular gethostbyname_r); not sure about how different the lightweight version is but perhaps that could be used in lieu of gethostbyname_r ? Sven