Does someone have any detailed notes about installing a current version
of AIDE under cygwin?  mhash appears to compile OK, but the configure
script in AIDE fails in its mhash library check.  From the config.log:

  configure:2996: gcc -E -g -O2 -I/[dir]/mhash-0.8.18/lib -static conftest.c 
>/dev/null 2>conftest.out
  configure:3028: checking for gzdopen in -lz
  configure:3047: gcc -o conftest -g -O2 -static -g -O2 -I/[dir]/mhash-0.8.18/lib 
-static  -L/[dir]/mhash-0.8.18/lib/.libs -static conftest.c -lz   1>&5
  configure:3096: checking for regexec
  configure:3124: gcc -o conftest -g -O2 -static -g -O2 -I/dir]/mhash-0.8.18/lib 
-static  -L/[dir]/mhash-0.8.18/lib/.libs conftest.c -lz  1>&5
  configure:3096: checking for regcomp
  configure:3124: gcc -o conftest -g -O2 -static -g -O2 -I/[dir]/mhash-0.8.18/lib 
-static  -L/[dir]/mhash-0.8.18/lib/.libs conftest.c -lz  1>&5
  configure:3208: checking for mhash_get_block_size in -lmhash
  configure:3227: gcc -o conftest -g -O2 -static -g -O2 -I/[dir]/mhash-0.8.18/lib 
-static  -L/[dir]/mhash-0.8.18/lib/.libs conftest.c -lmhash  -lz  1>&5
  /[dir]/mhash-0.8.18/lib/.libs/libmhash.a(mhash.o)(.text+0xd70): In function `main':
  /[dir]/mhash-0.8.18/lib/mhash.c:664: multiple definition of `_main'
  /cygdrive/c/WINDOWS/TEMP/cc0Ut2p0.o(.text+0x0):/[dir]/aide-0.10/configure:3222: 
first defined here
  collect2: ld returned 1 exit status
  configure: failed program was:
  #line 3216 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* 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; }

Thanks for any hints,

John

Reply via email to