On 6/2/11 3:37 PM, "Russ Tyndall" <[email protected]> wrote:

> 
> On Jun 2, 2011, at 2:31 PM, Al Varnell wrote:
> 
>> I'm sure I've seen answers to this question on ClamXav's forum
>> <http://markallan.co.uk/BB/viewforum.php?f=1> if you don't get an answer
>> here.
> 
> Oh, yes, Mark very kindly tried to help me on the ClamAV forums earlier in the
> year:
> 
> <http://markallan.co.uk/BB/viewtopic.php?t=2295>
> 
> His instructions *seemed* to work (at least glancing through the output) but
> the binaries that were created seemed to just only have intel code (no PPC).
> 
> When I did lipo -info on the binaries they came back:
> 
> Non-fat file: /usr/local/clamav/sbin/clamd is architecture: i386
> 
> His instructions (after installing a particular compiler) included these
> steps:
> 
> CC="/usr/bin/gcc-4.2"
> CXX="/usr/bin/g++-4.2"
> CFLAGS="-O2 -g -D_FILE_OFFSET_BITS=64 -mmacosx-version-min=10.4 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
> CXXFLAGS="-O2 -g -D_FILE_OFFSET_BITS=64 -mmacosx-version-min=10.4 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
> 
> ./configure --disable-dependency-tracking  --enable-llvm --enable-clamdtop
> --with-user=_clamav --with-group=_clamav --enable-all-jit-targets
> --prefix=/usr/local/clamav
> 
> I have wondered if "make" or "make install" needs some kind've flag(?)....
> 
The only thing I can think of is the last update to XCode did not contain
what was needed to compile for PPC, so if you have updated recently that
portion needs to be added separately.  Again, Mark figured this out with his
last update.  I've run into several software developers who thought they
were producing Universal Binaries and were surprised by this.


-Al-
 
-- 
Al Varnell
Mountain View, CA



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to