After I upgraded clamav to 0.90 on FreeBSD ports, some other programs stop building. Here are them:
squidclam: cc -I/usr/local/include -L/usr/local/lib -O2 -fno-strict-aliasing -lbz2 -lclamav -lcrypto -lcurl -lgmp -liconv -lidn -lssl -lz -pipe -rpath=/usr/local/lib -s -o squidclam squidclam.c /var/tmp//ccM5lyd6.o(.text+0x8ce): In function `main': : undefined reference to `cl_perror' gmake: *** [all] Error 1 I changed cl_perror to cl_strerror, is it correct? ---------------------------------------------- havp: c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-strict-aliasing -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o scanners/clamlibscanner.o scanners/clamlibscanner.cpp scanners/clamlibscanner.cpp: In member function `virtual bool ClamLibScanner::InitDatabase()': scanners/clamlibscanner.cpp:32: error: `cl_loaddbdir' was not declared in this scope scanners/clamlibscanner.cpp:32: warning: unused variable 'cl_loaddbdir' scanners/clamlibscanner.cpp: In member function `virtual bool ClamLibScanner::ReloadDatabase()': scanners/clamlibscanner.cpp:68: error: `cl_loaddbdir' was not declared in this scope scanners/clamlibscanner.cpp:68: warning: unused variable 'cl_loaddbdir' gmake[1]: *** [scanners/clamlibscanner.o] Error 1 gmake[1]: Leaving directory `/home/garga/prs/clam-break/havp/work/havp-0.82/havp' gmake: *** [all] Error 2 I saw on Changelog cl_load is the substitutor to cl_loaddbdir, but this one has one more parameter called options and i don't know what I need to pass in this parameter. Is there an easy way to fix it? ---------------------------------------------- perl module Mail::ClamAV: ClamAV.xs: In function `clamav_perl_new': ClamAV.xs:65: warning: cast from pointer to integer of different size ClamAV.xs: In function `clamav_perl_statchkdir': ClamAV.xs:73: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_buildtrie': ClamAV.xs:89: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_maxreclevel': ClamAV.xs:101: warning: cast to pointer from integer of different size ClamAV.xs:103: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_maxfiles': ClamAV.xs:114: warning: cast to pointer from integer of different size ClamAV.xs:116: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_maxfilesize': ClamAV.xs:127: warning: cast to pointer from integer of different size ClamAV.xs:129: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_maxratio': ClamAV.xs:140: warning: cast to pointer from integer of different size ClamAV.xs:142: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl_archivememlim': ClamAV.xs:153: warning: cast to pointer from integer of different size ClamAV.xs:155: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl__scanbuff': ClamAV.xs:160: warning: cast to pointer from integer of different size ClamAV.xs:185: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast ClamAV.xs: In function `DESTROY': ClamAV.xs:194: warning: cast to pointer from integer of different size ClamAV.xs: In function `clamav_perl__scanfd': ClamAV.xs:204: warning: cast to pointer from integer of different size ClamAV.xs:229: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast ClamAV.xs: In function `clamav_perl__scanfile': ClamAV.xs:240: warning: cast to pointer from integer of different size ClamAV.xs:270: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast ClamAV.xs: In function `error': ClamAV.xs:293: warning: assignment makes pointer from integer without a cast ClamAV.xs: In function `clamav_perl_constant': ClamAV.xs:308: error: `CL_EMALFZIP' undeclared (first use in this function) ClamAV.xs:308: error: (Each undeclared identifier is reported only once ClamAV.xs:308: error: for each function it appears in.) ClamAV.xs:334: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function) *** Error code 1 Anybody could help me to fix these problems? Thanks -- Renato Botelho _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net