mhash & AIDE

Help
2003-03-23
2012-09-14
  • Matt Enderby
    Matt Enderby
    2003-03-23

    Don't know where the most appropriate area to place this post but I'll start here.

    Tried to installed AIDE (advanced intrusion detection environment) which requires the mhash library. I downloaded & installed the latest version 0.8.18. The AIDE configure script complained about not finding mhash_get_block_size in the mhash library. After spending a couple of hours messing with trying to get it working I decided to try 0.8.17.  The configuration script ran error-free for whatever reason.

    I don't know if this is a bug or something that isn't implemented in the latest version. But, there you have it.

    For what it's worth...

    Matt...

    mattenderby@hotmail.com

     
    • Jonathan Day
      Jonathan Day
      2003-08-19

      I'll check the API and make sure it's correctly backwards-compatiable

       
    • was this problem ever fixed? i'm trying now to install aide & mhash and have the same problem (solaris 2.8). :-(

      thanks!

       
    • David Schwartz
      David Schwartz
      2004-01-05

      I'm having the same problem in a Debian installation.

       
    • Norrin Radd
      Norrin Radd
      2004-01-09

      I had the same problem. Running ./configure --enable-static for mhash allowed me to configure and compile aide against 0.8.18.

      However, aide segfaults. Not sure if this is related to Sparc architecture or something else I'm doing wrong. (It also segfaults for me with mhash 0.8.17)

       
    • Jimmy theGeek
      Jimmy theGeek
      2004-02-12

      I tried to install 0.8.18, then aide 0.10.  Got the same error others have mentioned.  Did a make clean, then a ./configure --enable-static=yes, but that did not clear the problem. 

      Tried 0.8.17, same thing.

       
    • bds45701
      bds45701
      2005-11-22

      I am having the same situation trying to build aide-CVS-20051122 with mhash-0.9.2 on AIX 5.1.

      The relevent output from AIDE's config.log is:

      =========================================
      configure:8797: checking for mhash_get_block_size in -lmhash
      configure:8827: gcc -o conftest -g -O2 -static -static conftest.c -lmhash -lz >&5
      collect2: library libmhash not found
      configure:8833: $? = 1
      configure: failed program was:
      | / confdefs.h. /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "aide"
      | #define VERSION "post-0.11-rc2"
      | #define YYTEXT_POINTER 1
      | #define HAVE_SYSLOG 1
      | #define BIG_ENDIAN_HOST 1
      | #define STDC_HEADERS 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_MEMORY_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_UNISTD_H 1
      | #define HAVE_USHORT 1
      | #define HAVE_ULONG 1
      | #define SIZEOF_UNSIGNED_SHORT 2
      | #define SIZEOF_UNSIGNED_INT 4
      | #define SIZEOF_UNSIGNED_LONG 4
      | #define SIZEOF_UNSIGNED_LONG_LONG 8
      | #define STDC_HEADERS 1
      | #define HAVE_READDIR 1
      | #define HAVE_READDIR_R
      | #define HAVE_USTAT 1
      | #define HAVE_MMAP 1
      | #define HAVE_SNPRINTF 1
      | #define HAVE_VSNPRINTF 1
      | #define HAVE_SYSLOG_H 1
      | #define HAVE_USTAT_H 1
      | #define AIDE_IDENT "aide"
      | #define AIDE_SYSLOG_FACILITY LOG_LOCAL0
      | #define AIDE_LOGOPT LOG_CONS
      | #define SYSLOG_PRIORITY LOG_NOTICE
      | #define _LARGEFILE_SOURCE 1
      | #define _LARGEFILE64_SOURCE 1
      | #define _FILE_OFFSET_BITS 64
      | #define AIDE_LSTAT_FUNC lstat64
      | #define AIDE_STAT_FUNC stat64
      | #define AIDE_FSTAT_FUNC fstat64
      | #define AIDE_STAT_TYPE stat64
      | #define AIDE_INO_TYPE ino64_t
      | #define AIDE_OFF_TYPE off64_t
      | #define AIDE_BLKCNT_TYPE blkcnt64_t
      | #define AIDE_READDIR_FUNC readdir64
      | #define AIDE_READDIR_R_FUNC readdir64_r
      | #define AIDE_DIRENT_TYPE dirent
      | #define CONFIG_FILE "/usr/local/etc/aide.conf"
      | #define DEFAULT_DB "/usr/local/etc/aide.db"
      | #define DEFAULT_DB_OUT "/usr/local/etc/aide.db.new"
      | #define HAVE_ZLIB_H 1
      | #define HAVE_LIBZ 1
      | #define WITH_ZLIB 1
      | #define HAVE_REGEXEC 1
      | #define HAVE_REGCOMP 1
      | / end confdefs.h. /
      |
      | / Override any gcc2 internal prototype to avoid an error. /
      | #ifdef __cplusplus
      | extern "C"
      | #endif
      | / We use char because int might match the return type of a gcc2
      | builtin and then its argument prototype would still apply.
      /
      | char mhash_get_block_size ();
      | int
      | main ()
      | {
      | mhash_get_block_size ();
      | ;
      | return 0;
      ac_cv_env_CPPFLAGS_set=''
      configure:8859: result: no
      configure:8870: error: You must have libmhash properly installed.

      ==============================================

      any help would be appreicated!

      Thanks.

      Brian