From clamav-devel-bounces@lists.clamav.net  Thu Jun 18 13:22:11 2009
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id jVzLSJ1pcl-J; Thu, 18 Jun 2009 13:22:11 +0200 (CEST)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 5BDD716C0A6;
	Thu, 18 Jun 2009 13:22:09 +0200 (CEST)
X-Original-To: clamav-devel@tad.clamav.net
Delivered-To: clamav-devel@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZcR0TMNEPefH for <clamav-devel@tad.clamav.net>;
	Thu, 18 Jun 2009 13:22:06 +0200 (CEST)
Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com
	[209.85.220.222])
	by tad.clamav.net (Postfix) with ESMTP id 4491916C09B
	for <clamav-devel@lists.clamav.net>;
	Thu, 18 Jun 2009 13:22:06 +0200 (CEST)
Received: by fxm22 with SMTP id 22so1144395fxm.8
	for <clamav-devel@lists.clamav.net>;
	Thu, 18 Jun 2009 04:22:05 -0700 (PDT)
Received: by 10.103.193.12 with SMTP id v12mr973333mup.23.1245324123186;
	Thu, 18 Jun 2009 04:22:03 -0700 (PDT)
Received: from debian ([79.114.104.2])
	by mx.google.com with ESMTPS id i7sm2247880mue.18.2009.06.18.04.22.02
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Thu, 18 Jun 2009 04:22:02 -0700 (PDT)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	by debian (Postfix) with ESMTP id 1A53E2D64F
	for <clamav-devel@lists.clamav.net>;
	Thu, 18 Jun 2009 14:22:02 +0300 (EEST)
Message-ID: <4A3A2359.1000801@gmail.com>
Date: Thu, 18 Jun 2009 14:22:01 +0300
From: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= <edwintorok@gmail.com>
User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
MIME-Version: 1.0
To: ClamAV Development <clamav-devel@lists.clamav.net>
References: <747dc8f30906161558q26020dd5k8f85a3671eb9c911@mail.gmail.com>
	<4A389021.4060302@gmail.com>
	<747dc8f30906180412v21f71c0alaaacc3473e67d674@mail.gmail.com>
In-Reply-To: <747dc8f30906180412v21f71c0alaaacc3473e67d674@mail.gmail.com>
Subject: Re: [Clamav-devel] Problems building 0.95.2 under FreeBSD 6.3
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

On 2009-06-18 14:12, Renato Botelho wrote:
> 2009/6/17 T=F6r=F6k Edwin <edwintorok@gmail.com>:
>   =

>> On 2009-06-17 01:58, Renato Botelho wrote:
>>     =

>>> Hi,
>>>
>>> After upgrade clamav on FreeBSD ports collection i recieved this email
>>> from a user, talking about this problem building on 6.3.
>>>
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP=
OSE.
>>> configure:3597: $? =3D 0
>>> configure:3604: cc -v >&5
>>> Using built-in specs.
>>> Configured with: FreeBSD/i386 system compiler
>>> Thread model: posix
>>> gcc version 3.4.6 [FreeBSD] 20060305
>>> configure:3608: $? =3D 0
>>> configure:3615: cc -V >&5
>>> cc: `-V' option must have argument
>>> configure:3619: $? =3D 1
>>> configure:3642: checking for C compiler default output file name
>>> configure:3664: cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include
>>> -L/usr/local/lib  -pthread conftest.c  >&5
>>> /usr/lib/libpthread.so: undefined reference to `__fcntl_compat'
>>>
>>>       =

>> Can you try compiling this program with various flags:
>> int main() { return 0; }
>>
>> cc -O2 -fno-strict-aliasing -pipe -L/usr/local/lib -pthread test.c
>> cc -O2  -pipe -L/usr/local/lib -pthread test.c
>> cc -O2  -pipe -L/usr/local/lib test.c
>> cc -pipe -L/usr/local/lib -pthread test.c
>>     =

>
> Here is the results on 6.3, i asked the guy to test it with -lpthread and=
 -lpth,
> i'll send you the results.
>
> cc -O2 -fno-strict-aliasing -pipe -L/usr/local/lib -pthread test.c
> /usr/lib/libpthread.so: undefined reference to `__fcntl_compat'
>
> cc -O2  -pipe -L/usr/local/lib -pthread test.c
> /usr/lib/libpthread.so: undefined reference to `__fcntl_compat'
>
> cc -O2  -pipe -L/usr/local/lib test.c
> WORKS!!!
>
> cc -pipe -L/usr/local/lib -pthread test.c
> /usr/lib/libpthread.so: undefined reference to `__fcntl_compat'
>
>   =


The only change to configure in 0.95.2 was the addition of
-fno-strict-aliasing, the removal of -lmalloc on Solaris, and the
addition of _THREAD_SAFE on AIX.

Did 0.95.1 compile on this platform? If -pthread causes linking to fail,
I don't see how 0.95.1 compiled.
What library contains the missing symbol? It looks like something that
belongs in libc, or libc_r.

Best regards,
--Edwin



_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

