~ubuntu-branches/ubuntu/hardy/clamav/hardy-backports

« back to all changes in this revision

Viewing changes to libclamav/others.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-01 11:26:02 UTC
  • mfrom: (0.5.36 natty)
  • Revision ID: james.westby@ubuntu.com-20101201112602-f408toqx14w4duw7
Tags: 0.96.4+dfsg-1ubuntu1~hardy1
* Source backport for Hardy:
  - Build without llvm support on lpia to fix FTBFS (not a regression as
    llvm has never built on hardy lpia)
  - Drop -T -W from apparmor_parser calls in clamav-daemon and freshclam
    postinsts since it is not supported in Hardy's apparmor
  - Drop deny rule in freshclam apparmor profile since deny is not
    supported in Hardy's apparmor
  - Drop dh_lintian from debian/rules and adjust version of debhelper
    build-dep
  - Drop build-dep and libclamav-dev depends on non-existent libtommath-dev
  - Changed Section to 'utils' for clamav-dbg package
  - Drop versioning of lsb-base depends
  - Revert lsb status changes from maintainer scripts
  - Ignore test suite errors on hppa
  - Build-depend on libltdl3-dev instead of libltdl-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
#include "default.h"
68
68
#include "scanners.h"
69
69
#include "bytecode.h"
 
70
#include "bytecode_api_impl.h"
70
71
 
71
72
int (*cli_unrar_open)(int fd, const char *dirname, unrar_state_t *state);
72
73
int (*cli_unrar_extract_next_prepare)(unrar_state_t *state, const char *dirname);
261
262
        struct timeval tv;
262
263
        unsigned int pid = (unsigned int) getpid();
263
264
 
 
265
        const char *zlibver = zlibVersion();
 
266
        int cmp = cli_bcapi_version_compare(NULL, zlibver, strlen(zlibver),
 
267
                                            ZLIB_VERSION, strlen(ZLIB_VERSION));
 
268
        if (cmp) {
 
269
            cli_dbgmsg("zlib version at runtime: %s, compile time: %s\n",
 
270
                       zlibver, ZLIB_VERSION);
 
271
        }
 
272
        if (cmp < 0) {
 
273
            cli_warnmsg("zlib version at runtime is older than compile time: %s < %s\n",
 
274
                        zlibver, ZLIB_VERSION);
 
275
            cli_infomsg(NULL, "Make sure zlib is built as shared library, and that the new zlib library is installed in the proper place\n");
 
276
        }
 
277
 
264
278
    {
265
279
        unrar_main_header_t x;
266
280
        if (((char*)&x.flags - (char*)&x) != 3) {