You have to set CXXFLAGS CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" ./configure --enable-llvm --enable-clamdtop --with-user=_clamav --with-group=_clamav
On Feb 12, 2011, at 9:16 AM, James Brown wrote: > I have been compiling clamav all day with a great many combinations of > options. > No matter what I try, it won't build in 64bit. > > I used: > > ./configure CFLAGS='-arch x86_64' --build=x86_64-apple-darwin9.8.0 > make > sudo make install (after stopping clamd) > > The configure output had: > > === configuring in llvm > (/Users/jlbrown/Downloads/clamav-0.97/libclamav/c++/llvm) > configure: running /bin/sh ./configure --disable-option-checking > '--prefix=/usr/local' 'CFLAGS=-arch x86_64' > '--build=x86_64-apple-darwin9.8.0' 'build_alias=x86_64-apple-darwin9.8.0' > '--enable-ltdl-convenience' '--enable-optimized' > 'llvm_cv_gnu_make_command=make' '--enable-targets=host-only' > '--enable-bindings=none' '--enable-libffi=no' '--without-llvmgcc' > '--without-llvmgxx' --cache-file=/dev/null --srcdir=. > checking build system type... x86_64-apple-darwin9.8.0 > checking host system type... x86_64-apple-darwin9.8.0 > checking target system type... x86_64-apple-darwin9.8.0 > checking type of operating system we're going to host on... Darwin > checking type of operating system we're going to target... Darwin > checking target architecture... x86_64 > checking for gcc... gcc > > so that looks good. > > But the output of 'make' was full of lines like this: > > ld warning: in .libs/libclamav.lax/libclamavcxx.a/ValueSymbolTable.o, file is > not of required architecture > ld warning: in .libs/libclamav.lax/libclamavcxx.a/ValueTracking.o, file is > not of required architecture > ld warning: in .libs/libclamav.lax/libclamavcxx.a/ValueTypes.o, file is not > of required architecture > ld warning: in .libs/libclamav.lax/libclamavcxx.a/Verifier.o, file is not of > required architecture > ld warning: in .libs/libclamav.lax/libclamavcxx.a/VirtRegMap.o, file is not > of required architecture > > And the result is a 32-bit binary: > > file /usr/local/sbin/clamd > /usr/local/sbin/clamd: Mach-O executable i386 > > > I have tried CFLAGS, CXXFLAGS, LDFLAGS, CPPFLAGS and --build settings. > everything I tried either failed or built i386. > > Does anyone have any suggestions? > > Thanks, > > James. > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://www.clamav.net/support/ml _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
