On 2009-12-22 14:43, Renato Botelho wrote:
> 2009/12/22 Török Edwin <[email protected]>:
>   
>> Because the compiler is too old:
>>
>> checking for supported C++ compiler version... configure: error: C++ 
>> compiler too old (3.4.6)
>>     
>
> By default, ports use the default base system compiler, of course i can force 
> it
> to use other version of GCC, do you think it's the correct option?
>
>   

See my other mail on what happens, to sum up: "no LLVM -> fallback to
the slower interpreter mode".
It also defaults to auto-detecting at configure time whether LLVM will
work or not.

Now there is nothing wrong with 3.4.6, except that atomic builtins are
not available, not even for i686.
But since atomic builtins won't be available on any compiler for FreeBSD
i386 anyway,
I think you could force ClamAV to build LLVM: passing --enable-llvm=yes
to configure should take care of that.

It will then be your responsibility to check that your compiler is not
broken,  but for users the default is to enable it only if safe.

See here for more details on requirements:
http://git.clamav.net/gitweb?p=clamav-devel.git;a=blob;f=docs/clamdoc.pdf;h=ad82aa037d85d0d66c537916b223e308df37cf57;hb=HEAD


> If yes, which version do you think is necessary at least? We have from
> 4.2 to 4.5 available.
>   

I think 4.3 or 4.4 would be a good choice.

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

Reply via email to