[Clamav-users] help, can't compile clamav-0.92 (gcc bug)

2007-12-17 Thread exo dia
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 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?

Thank you for any assistance!

--Ed
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] help, can't compile clamav-0.92 (gcc bug)

2007-12-17 Thread Török Edwin
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


Re: [Clamav-users] help, can't compile clamav-0.92 (gcc bug)

2007-12-17 Thread exo dia
On Dec 17, 2007 10:03 AM, Török Edwin [EMAIL PROTECTED] wrote:

 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

 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


Thank you very much for this information, I appreciate it!
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] help, can't compile clamav-0.92 (gcc bug)

2007-12-17 Thread fchan
Hi,
I have the same thing happening a my MacBookPro. I get this message also:
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

I'm using xcode_2.4.1_8m and I'm downloading xcode_3.0 to hopefully 
resolve this issue and hopefully that Apple updated gcc on this newer 
xcode. Any other Mac people seen this issue?

Thank you,
Frank

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 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?

Thank you for any assistance!

--Ed
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Error running 0.92 on CentOS 3.9

2007-12-17 Thread Mike Zanker
Hi,

0.92 compiles OK on CentOS 3.9 but when I try to run clamd I get

/usr/local/sbin/clamd: error while loading shared libraries:
libclamav.so.3: cannot open shared object file: No such file or directory

I've had to revert to 0.91.2 which works fine.

0.92 runs fine on my CentOS 4 boxes.

Have searched for this error message in the archives but nothing came up...

Thanks in advance,

-- 
Mike Zanker
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Error running 0.92 on CentOS 3.9

2007-12-17 Thread Tomasz Kojm
On Mon, 17 Dec 2007 18:59:16 +
Mike Zanker [EMAIL PROTECTED] wrote:

 Hi,
 
 0.92 compiles OK on CentOS 3.9 but when I try to run clamd I get
 
 /usr/local/sbin/clamd: error while loading shared libraries:
 libclamav.so.3: cannot open shared object file: No such file or directory

Please run 'ldconfig'

-- 
   oo. Tomasz Kojm [EMAIL PROTECTED]
  (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg
 \..._ 0DCA5A08407D5288279DB43454822DC8985A444B
   //\   /\  Mon Dec 17 20:19:44 CET 2007
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Error running 0.92 on CentOS 3.9

2007-12-17 Thread Mike Zanker
On 17/12/07 19:20, Tomasz Kojm wrote:

 Please run 'ldconfig'

Ah, simple as that - thanks!

Mike

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Error running 0.92 on CentOS 3.9

2007-12-17 Thread Török Edwin
Mike Zanker wrote:
 Hi,

 0.92 compiles OK on CentOS 3.9 but when I try to run clamd I get

 /usr/local/sbin/clamd: error while loading shared libraries:
 libclamav.so.3: cannot open shared object file: No such file or directory
   
Run ldconfig.

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


[Clamav-users] clamav gcc dependendencies ...

2007-12-17 Thread Per Jessen
I guess there was no other way than to make clamav dependent on gcc, but
it sure is bad timing.  
Only a week before Christmas, most systems are frozen, people have
already left for vacation etc.  Updating clamav is within reason for
us, but upgrading gcc too ...

Was/is there absolutely no way of fixing this gcc problem in the clamav
source?


/Per Jessen, Zürich

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] clamav gcc dependendencies ...

2007-12-17 Thread Török Edwin
Per Jessen wrote:
 I guess there was no other way than to make clamav dependent on gcc, but
 it sure is bad timing.  
 Only a week before Christmas, most systems are frozen, people have
 already left for vacation etc.  Updating clamav is within reason for
 us, but upgrading gcc too ...
   

You don't need to upgrade to 4.1.2/4.2.x.
gcc-3.4 can be nicely installed side-by-side with a 4.0.x/4.1.0 series
gcc, all you need to do is:

# apt-get install gcc-3.4
$ export CC=gcc-3.4
$ ./configure

 Was/is there absolutely no way of fixing this gcc problem in the clamav
 source?
   

There are bounds checks in the code, that the compiler removes, thus
leaving clamav vulnerable and crashing.
Sorry, but that is a broken compiler version.

--Edwin


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] clamav gcc dependendencies ...

2007-12-17 Thread James Kosin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Per Jessen wrote:
 I guess there was no other way than to make clamav dependent on
 gcc, but it sure is bad timing. Only a week before Christmas, most
 systems are frozen, people have already left for vacation etc.
 Updating clamav is within reason for us, but upgrading gcc too ...

 Was/is there absolutely no way of fixing this gcc problem in the
 clamav source?


 /Per Jessen, Zürich

 ___ Help us build a
 comprehensive ClamAV guide: visit http://wiki.clamav.net
 http://lurker.clamav.net/list/clamav-users.html
 IƧ��[�)Z�a���0rV�j��t===
You may be able to get by with disabling ALL optimizations.  One of
the problems at least was an Optimization problem.
'-O0' may do the trick.

- -James
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFHZuu3kNLDmnu1kSkRAiDnAJoCTzEmX5ZrWlDl68KZAb3gEms+6QCfTR80
CFf4UTv37ubqiMvvKsLD8j8=
=hBp7
-END PGP SIGNATURE-

-- 
Scanned by ClamAV - http://www.clamav.net

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] clamav gcc dependendencies ...

2007-12-17 Thread Karsten Bräckelmann
Please resist the urge to top-post.

On Mon, 2007-12-17 at 15:52 -0800, fchan wrote:
 Hello,
 I'm on a MacBookPro running 10.4.11 with xcode 
 2.5 and I tried your suggestion export 
 CC=gcc-3.4 and I got this error:

The advice was rather specific to Debian. And actually started by
installing GCC 3.4...

 checking for gcc... gcc-3.4
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 See `config.log' for more details.
 
 Here is what saw in config.log:
 
 ./configure: line 1: gcc-3.4: command not found

See?

  guenther


-- 
char *t=[EMAIL PROTECTED];
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;il;i++){ i%8? c=1:
(c=*++x); c128  (s+=h); if (!(h=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] announcing ClamAV 0.92

2007-12-17 Thread Ed Kasky
At 07:01 AM Monday, 12/17/2007, you wrote -=

Dear ClamAV users,

This release provides various bugfixes, optimisations and improvements
to the scanning engine. The new features include support for ARJ and
SFX-ARJ archives, AutoIt, basic SPF parser in clamav-milter (to reduce
phishing false-positives), faster scanning and others (see ChangeLog).
To get a consistent behaviour of the anti-phishing module on all platforms,
libclamav now includes the regex library from OpenBSD.

And don't forget to run ldconfig after updating.  I got the following:

Starting clamav-milter: clamav-milter: error while loading shared 
libraries: libclamav.so.3: cannot open shared object file: No such 
file or directory

Ed

. . . . . . . . . . . . . . . . . .
Randomly Generated Quote (542 of 1319):
Fortune and love befriend the bold.
 -- Ovid

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] announcing ClamAV 0.92

2007-12-17 Thread Mark
Anyone done this on FreeBSD yet?

http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/clamav/

Is a no-show.

- Mark


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] announcing ClamAV 0.92

2007-12-17 Thread Steven Stern
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/17/2007 08:05 PM, Ed Kasky wrote:
 At 07:01 AM Monday, 12/17/2007, you wrote -=
 
 Dear ClamAV users,

 This release provides various bugfixes, optimisations and improvements
 to the scanning engine. The new features include support for ARJ and
 SFX-ARJ archives, AutoIt, basic SPF parser in clamav-milter (to reduce
 phishing false-positives), faster scanning and others (see ChangeLog).
 To get a consistent behaviour of the anti-phishing module on all platforms,
 libclamav now includes the regex library from OpenBSD.
 
 And don't forget to run ldconfig after updating.  I got the following:
 
 Starting clamav-milter: clamav-milter: error while loading shared 
 libraries: libclamav.so.3: cannot open shared object file: No such 
 file or directory
 
 Ed

I saw ldconfig run during the make process.

- --

  Steve
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHZ1X6eERILVgMyvARAjQeAJ9Sc2fzMIJa5hCScShE32IqZoIxfgCfdgGr
Spe/L+Hfxz7ryVJ9+Vwulks=
=VU8E
-END PGP SIGNATURE-
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] announcing ClamAV 0.92

2007-12-17 Thread Ed Kasky
At 09:09 PM Monday, 12/17/2007, Steven Stern wrote -=
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/17/2007 08:05 PM, Ed Kasky wrote:
  At 07:01 AM Monday, 12/17/2007, you wrote -=
 
  Dear ClamAV users,
 
  This release provides various bugfixes, optimisations and improvements
  to the scanning engine. The new features include support for ARJ and
  SFX-ARJ archives, AutoIt, basic SPF parser in clamav-milter (to reduce
  phishing false-positives), faster scanning and others (see ChangeLog).
  To get a consistent behaviour of the anti-phishing module on all 
 platforms,
  libclamav now includes the regex library from OpenBSD.
 
  And don't forget to run ldconfig after updating.  I got the following:
 
  Starting clamav-milter: clamav-milter: error while loading shared
  libraries: libclamav.so.3: cannot open shared object file: No such
  file or directory
 
  Ed

I saw ldconfig run during the make process.

- --

   Steve

I saw the following during make install

(cd /usr/local/lib  { ln -s -f libclamav.so.3.0.3 libclamav.so || { 
rm -f libclamav.so  ln -s libclamav.so.3.0.3 libclamav.so; }; })

and

PATH=$PATH:/sbin ldconfig -n /usr/local/lib

However, for some reason, on FC6, I had to manually update the lib links...

Ed

. . . . . . . . . . . . . . . . . .
Randomly Generated Quote (295 of 1319):
A hermit is a deserter from the army of humanity.

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] announcing ClamAV 0.92

2007-12-17 Thread Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed Kasky
Sent: dinsdag 18 december 2007 6:28
To: clamav-users@lists.clamav.net
Subject: Re: [Clamav-users] announcing ClamAV 0.92

  Starting clamav-milter: clamav-milter: error while loading
  shared libraries: libclamav.so.3: cannot open shared object
  file: No such file or directory
 
  Ed

 I saw the following during make install

(cd /usr/local/lib  { ln -s -f libclamav.so.3.0.3 libclamav.so || { 
 rm -f libclamav.so  ln -s libclamav.so.3.0.3 libclamav.so; }; })

Hmm, maybe because milter is looking for libclamav.so.3, whereas
symlinks seems to be made for libclamav.so.3.0.3 only?

- Mark

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html