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
--On Wednesday, February 5, 2020 11:38 AM +0530 Vijay Kumar pasumarthivijaykumar@gmail.com wrote:
#define DEFAULT_MAPSIZE (10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 1048576)
You've clearly screwed with the code. Do not make any changes to the code, I've already told you this.
mdb_stat.c:17:23: fatal error: ac\unistd.h: No such file or directory #include <ac\unistd.h>
Install the headers that provide this header file.
You haven't said at all what environment you're building under. I personally use MSYS2.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Quanah Gibson-Mount wrote:
--On Wednesday, February 5, 2020 11:38 AM +0530 Vijay Kumar pasumarthivijaykumar@gmail.com wrote:
#define DEFAULT_MAPSIZE (10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 1048576)
You've clearly screwed with the code. Do not make any changes to the code, I've already told you this.
mdb_stat.c:17:23: fatal error: ac\unistd.h: No such file or directory #include <ac\unistd.h>
Our mdb_stat.c has no such include directive. Again, someone has mucked with his source.
Install the headers that provide this header file.
You haven't said at all what environment you're building under. I personally use MSYS2.
openldap-technical@openldap.org