Very nice John, at least I could run aide on windows if I had no access to a linux box.

I also wonder if anyone has tried to display their aide reports or import them into a database.

I am working on a web page that will do it, currently just displaying it as a text file works the best.

I would be interested in anyone working on project, or who have an information on projects.

Thanks,

Mike
http://www.shirkdog.us

From: John Kristoff <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: AIDE compilation under cygwin
Date: Sat, 29 May 2004 16:43:36 -0500

On Tue, 16 Mar 2004 22:04:37 -0600
John Kristoff <[EMAIL PROTECTED]> wrote:

> 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:
[...]
>   /[dir]/mhash-0.8.18/lib/mhash.c:664: multiple definition of `_main'

I finally got around to looking at this again and thought I would post
my solution in case any one else had a need for it.

Richard had pointed out the following in mhash.c:

  #ifdef WIN32
  WIN32DLL_DEFINE int main (void)
  {
          /* empty main function to avoid linker error (see cygwin FAQ) */
  }
  #endif

The cygwin FAQ at <http://cygwin.com/faq/faq_toc.html#TOC95> mentions a
potential problem with dynamic libraries needing this hack or that the
compiler line needs to be reordered.  I didn't have much luck with the
latter, so to solve I removed the definition and main() function from
the mhash.c source file and built mhash as follows:

  ./configure --enable-static=yes --enable-shared=no
  make

Then aide as:

  ./configure --with-extra-libs=-L/path/to/mhash-0.8.18/lib/.libs \
     --with-extra-includes=-I/path/to/mhash-0.8.18/lib
  make

A working aide.exe was the result.

John


_________________________________________________________________
Watch the online reality show Mixed Messages with a friend and enter to win a trip to NY http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/





Reply via email to