From clamav-users-bounces@lists.clamav.net  Mon Dec 17 19:03:47 2007
Return-Path: <clamav-users-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 zXv369EEPbja; Mon, 17 Dec 2007 19:03:47 +0100 (CET)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 4A2C416C016;
	Mon, 17 Dec 2007 19:03:36 +0100 (CET)
X-Original-To: clamav-users@tad.clamav.net
Delivered-To: clamav-users@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 8+lMZEqXC34L for <clamav-users@tad.clamav.net>;
	Mon, 17 Dec 2007 19:03:32 +0100 (CET)
Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185])
	by tad.clamav.net (Postfix) with ESMTP id 46D7916C00A
	for <clamav-users@lists.clamav.net>;
	Mon, 17 Dec 2007 19:03:32 +0100 (CET)
Received: by fk-out-0910.google.com with SMTP id 26so1728623fkx.8
	for <clamav-users@lists.clamav.net>;
	Mon, 17 Dec 2007 10:03:32 -0800 (PST)
Received: by 10.82.107.15 with SMTP id f15mr817000buc.0.1197914611646;
	Mon, 17 Dec 2007 10:03:31 -0800 (PST)
Received: from ?192.168.0.2? ( [86.125.52.42])
	by mx.google.com with ESMTPS id c25sm16027186ika.2007.12.17.10.03.29
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Mon, 17 Dec 2007 10:03:30 -0800 (PST)
Message-ID: <4766B9E6.6020003@gmail.com>
Date: Mon, 17 Dec 2007 20:03:18 +0200
From: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= <edwintorok@gmail.com>
User-Agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071008)
MIME-Version: 1.0
To: ClamAV users ML <clamav-users@lists.clamav.net>
References: <837a8ad10712170847q7876287eta936f45c686572b8@mail.gmail.com>
In-Reply-To: <837a8ad10712170847q7876287eta936f45c686572b8@mail.gmail.com>
Subject: Re: [Clamav-users] help, can't compile clamav-0.92 ("gcc bug")
X-BeenThere: clamav-users@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV users ML <clamav-users@lists.clamav.net>
List-Id: ClamAV users ML <clamav-users.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-users@lists.clamav.net>
List-Help: <mailto:clamav-users-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-users-bounces@lists.clamav.net
Errors-To: clamav-users-bounces@lists.clamav.net

exo dia wrote:
> Hi!
>
> We are using Ubuntu 6.06 LTS (Dapper Drake) on x86 boxes, and 6.06 uses gcc
> 4.0.3...and as such, we cannot compile the new clamav-0.92:
>
>     checking for a supported version of gcc... ok (4.0.3)
>     checking for gcc bug PR27603... ok, bug not present
>     checking for gcc bug PR28045... configure: error: your compiler has gcc
> PR28045 bug, use a different compiler, see
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
>
> How do you "use a different compiler"?  gcc 4.0.3 is what 6.06 LTS
> provides...I don't know how to change this (??).
>   
If you can't upgrade to a newer gcc, you can also use an older gcc that
doesn't have this bug:
Ubuntu 6.06 LTS provides gcc-3.4:
http://packages.ubuntu.com/dapper/devel/gcc-3.4

# apt-get install gcc-3.4

> If I were to disable compiler optimizations in the clamav build, could I
> work around this bug in gcc 4.0.3?  Which clamav file(s) have a problem with
> this bug?
>   
See clamav bug #613: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=613

The source code does specific bounds checks that this compiler
incorrectly removes.
If you compile ClamAV with a compiler that fails either of the 3 gcc bug
tests in configure,
the resulting binary may be subject to a buffer-overflow.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

