As suggested on the Ntop mailing list I'm posting this
bug report.
While trying to build Ntop under Win98, I found that if
I used as prescribed the gdbm-1.8.0-2001-04-30.zip
it was unable to create the needed databases.
To make sure Ntop was not the problem I created a
simple program that only open (create) and close a
database, and I reproduced the bug. Here's my test
program:
#include <stdio.h>
#include <gdbm.h>
int main(int argc, char *argv[])
{
GDBM_FILE dbf;
dbf = gdbm_open("test.db", 0, GDBM_WRCREAT,
00664, NULL);
if (dbf == NULL)
printf("Database 'test.db' open failed: unknown
gdbm errno");
else
gdbm_close(dbf);
}
If you build this program with gdbm-1.8.0-2001-04-30
it will not create the database but il will if you build it
with gdbm-1.8.0-2001-01-26. The created file will be
empty (0 length) and trying to open an existing one
does not succeed any better.
This has been compiled with MinGW (MinGW-
1.1.tar.gz) on the Win98 plateform. Please note that
the bug does not appear on the Win2K plateform.
Serge Couture
Network administrator
scouture@dgeq.qc.ca