Hi there.

I'm trying to install clamav on an Apple XServer with Mac OS X 10.3.5 (and all updates today).

My first try is with september 2003 dev tools installer. A second try with XCode Tools 1.5 gave the same result. The third gave better result but...

Here are the results for my 2 first tries. When I
        ./configure
somewhere in the log I get the following warning;

checking resolv.h usability... no
checking resolv.h presence... yes
configure: WARNING: resolv.h: present but cannot be compiled
configure: WARNING: resolv.h: check for missing prerequisite headers?
configure: WARNING: resolv.h: see the Autoconf documentation
configure: WARNING: resolv.h: section "Present But Cannot Be Compiled"
configure: WARNING: resolv.h: proceeding with the preprocessor's result
configure: WARNING: resolv.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for resolv.h... yes
...
configure: WARNING: ****** GNU MP 2 or newer NOT FOUND - digital signature support will be disabled !

When I make, make fail with the following warning and error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -MT mbox.lo -MD -MP -MF .deps/mbox.Tpo -c mbox.c -fno-common -DPIC -o .libs/mbox.lo
mbox.c: In function `checkURLs':
mbox.c:2593: warning: assignment discards qualifiers from pointer target type
mbox.c:2594: warning: assignment discards qualifiers from pointer target type
...
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -MT message.lo -MD -MP -MF .deps/message.Tpo -c message.c -fno-common -DPIC -o .libs/message.lo
message.c: In function `messageExport':
message.c:1431: warning: assignment discards qualifiers from pointer target type
message.c: In function `messageToFileblob':
message.c:1554: warning: passing arg 3 of `messageExport' from incompatible pointer type
message.c:1554: warning: passing arg 4 of `messageExport' from incompatible pointer type
message.c:1554: warning: passing arg 5 of `messageExport' from incompatible pointer type
message.c:1554: warning: passing arg 6 of `messageExport' from incompatible pointer type
message.c:1554: warning: passing arg 7 of `messageExport' from incompatible pointer type
message.c: In function `messageToBlob':
message.c:1564: warning: passing arg 3 of `messageExport' from incompatible pointer type
message.c:1564: warning: passing arg 4 of `messageExport' from incompatible pointer type
message.c:1564: warning: passing arg 5 of `messageExport' from incompatible pointer type
message.c:1564: warning: passing arg 6 of `messageExport' from incompatible pointer type
message.c:1564: warning: passing arg 7 of `messageExport' from incompatible pointer type
....
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -g -O2 -MT chmunpack.lo -MD -MP -MF .deps/chmunpack.Tpo -c chmunpack.c -fno-common -DPIC -o .libs/chmunpack.lo
chmunpack.c: In function `chm_endian_convert_64':
chmunpack.c:175: warning: integer constant is too large for "long" type
chmunpack.c:176: warning: integer constant is too large for "long" type
chmunpack.c:177: warning: integer constant is too large for "long" type
-----
/bin/sh ../libtool --mode=link gcc -g -O2 -o libclamav.la -rpath /usr/local/lib -version-info 1:4:0 matcher-ac.lo matcher-bm.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo unrarlib.lo zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo snprintf.lo strrcpy.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo cabd.lo lzxd.lo mszipd.lo qtmd.lo system.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo fsg.lo line.lo untar.lo -lz -lbz2 -L/usr/lib -lcurl -arch i386 -arch ppc -lz -lssl -lcrypto -lz
rm -fr .libs/libclamav.la .libs/libclamav.* .libs/libclamav.*


*** Warning: linker path does not have real file for library -lbz2.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libbz2 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libbz2.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
....
if gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I.. -I../shared -I../libclamav -g -O2 -MT dns.o -MD -MP -MF ".deps/dns.Tpo" -c -o dns.o dns.c; \
then mv -f ".deps/dns.Tpo" ".deps/dns.Po"; else rm -f ".deps/dns.Tpo"; exit 1; fi
dns.c: In function `txtquery':
dns.c:53: error: `C_IN' undeclared (first use in this function)
dns.c:53: error: (Each undeclared identifier is reported only once
dns.c:53: error: for each function it appears in.)
dns.c:53: error: `T_TXT' undeclared (first use in this function)
dns.c:58: error: `HEADER' undeclared (first use in this function)
dns.c:73: error: `INT16SZ' undeclared (first use in this function)
make[2]: *** [dns.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

For the third try, I first installed the "GNU Multiple Precision Arithmetic Library". With this library installed only the "resolv.h" warning appear during configure.


After configure, I've added "#define BIND_8_COMPAT 1" at the end of "clamav-config.h" (thanks to j�rgen n�rgaard). With that I could make and install clamav.

When I run clamscan on the clamas source folder
        /usr/local/bin/clamscan -r -l scan.txt .
I get the following (OKs not shown)

./contrib/clamdwatch/clamdwatch.tar.gz: Eicar-Test-Signature FOUND
./docs/MacOSX/Macintosh.tar.gz: Bad format or broken data
./test/clam-error.rar: RAR module failure
./test/clam-error.rar: OK
./test/clam.cab: ClamAV-Test-File FOUND
./test/clam.exe: ClamAV-Test-File FOUND
./test/clam.exe.bz2: ClamAV-Test-File FOUND
./test/clam.rar: ClamAV-Test-File FOUND
./test/clam.zip: ClamAV-Test-File FOUND

Are the "Bad format or broken data" and "RAR module failure" normal error or are there still some things to change to make them disapear ?


Jo�l Brogniart



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to