Hi Team,

Can you please let me know once any documentation you have on building mdb_stat tool ? I dont see any documentation on same.

/opt/openldap/libraries/liblmdb  

[root@KedarM8 liblmdb]# make
gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized   -c mdb.c
mdb.c: In function ‘mdb_env_open2’:
mdb.c:615:64: warning: integer overflow in expression [-Woverflow]
 #define DEFAULT_MAPSIZE (10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 1048576)
                                                                ^
mdb.c:4399:21: note: in expansion of macro ‘DEFAULT_MAPSIZE’
   meta.mm_mapsize = DEFAULT_MAPSIZE;
                     ^
gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized   -c midl.c
ar rs liblmdb.a mdb.o midl.o
ar: creating liblmdb.a
gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized  -fPIC  -c mdb.c -o mdb.lo
mdb.c: In function ‘mdb_env_open2’:
mdb.c:615:64: warning: integer overflow in expression [-Woverflow]
 #define DEFAULT_MAPSIZE (10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 1048576)
                                                                ^
mdb.c:4399:21: note: in expansion of macro ‘DEFAULT_MAPSIZE’
   meta.mm_mapsize = DEFAULT_MAPSIZE;
                     ^
gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized  -fPIC  -c midl.c -o midl.lo
gcc  -pthread -shared -o liblmdb.so mdb.lo midl.lo
gcc -pthread -O2 -g -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized   -c mdb_stat.c
mdb_stat.c:17:23: fatal error: ac\unistd.h: No such file or directory
 #include <ac\unistd.h>
                       ^
compilation terminated.
make: *** [mdb_stat.o] Error 1



--
Thanks & Regards,
 
Vijay Kumar
+91-94944 44009