On 30/05/2008, at 1:34 AM, Ian Eiloart wrote:
>
> Fails to compile on OSX 10.5.2 and 10.5.3 (client and server) with  
> XCode
> 3.0. Apple's distributions include a version of gcc4.0.1 (yes, it's  
> very
> old), which ClamAV's configure script doesn't like that version of  
> gcc:
>
>
> % ./configure
> ...
> ...
> ...
> checking for a supported version of gcc... ok (4.0.1)
> checking for gcc bug PR27603... ok, bug not present
> checking for gcc bug PR26763-2... ok, bug not present
> checking for valid code generation of CLI_ISCONTAINED... 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
>
>
>
> /Developer/usr/bin/gcc-4.0 -v
> Using built-in specs.
> Target: i686-apple-darwin9
> Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- 
> checking
> -enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
> --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
> --host=i686-apple-darwin9 --target=i686-apple-darwin9
> Thread model: posix
> gcc version 4.0.1 (Apple Inc. build 5465)
>
>
> -- 
> Ian Eiloart

Ian, this worked for me to get earlier versions to compile under OS X:

did you try adding CFLAGS="-O0" to your ./configure
command? Eg:

./configure --enable-experimental CFLAGS="-O0"

This worked for me when I was getting the same errors. See the
threads on this list on 11 and 12 January.

I haven't tried it on 93.1 RC1, but have on 0.93 and some of the .92  
releases.

James.

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

Reply via email to