As suggested on the Ntop mailing list I'm posting this
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
int main(int argc, char *argv)
dbf = gdbm_open("test.db", 0, GDBM_WRCREAT,
if (dbf == NULL)
printf("Database 'test.db' open failed: unknown
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.