Issue 7879 - liblmdb "mtest" programs do not build on mingw64
Summary: liblmdb "mtest" programs do not build on mingw64
Status: VERIFIED FIXED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-22 13:35 UTC by batterseapower@hotmail.com
Modified: 2020-03-12 15:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description batterseapower@hotmail.com 2014-06-22 13:35:00 UTC
Full_Name: Max Bolingbroke
Version: LMDB HEAD
OS: Windows
URL: ftp://ftp.openldap.org/incoming/max-bolingbroke-20140622.patch
Submission from: (NULL) (81.111.197.81)


srandom/random do not appear to be defined on mingw. The trivial patch in
max-bolingbroke-20140622.patch simply defines these functions to the C standard
equivalents on Windows, which lets LMDB build cleanly there.

I, Maximilian Bolingbroke, hereby place the following modifications to liblmdb
(and only these modifications) into the public domain. Hence, these
modifications may be freely used and/or redistributed for any purpose with or
without attribution and/or other notice.
Comment 1 Howard Chu 2014-06-23 07:40:47 UTC
changed notes
changed state Open to Test
moved from Incoming to Build
Comment 2 Howard Chu 2014-06-23 14:42:21 UTC
batterseapower@hotmail.com wrote:
> Full_Name: Max Bolingbroke
> Version: LMDB HEAD
> OS: Windows
> URL: ftp://ftp.openldap.org/incoming/max-bolingbroke-20140622.patch
> Submission from: (NULL) (81.111.197.81)
>
>
> srandom/random do not appear to be defined on mingw. The trivial patch in
> max-bolingbroke-20140622.patch simply defines these functions to the C standard
> equivalents on Windows, which lets LMDB build cleanly there.

I've committed a different change. There's no real need to use srandom over 
srand, and the fewer ifdef's the better.
>
> I, Maximilian Bolingbroke, hereby place the following modifications to liblmdb
> (and only these modifications) into the public domain. Hence, these
> modifications may be freely used and/or redistributed for any purpose with or
> without attribution and/or other notice.
>
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 OpenLDAP project 2014-08-01 21:04:07 UTC
fixed in mdb.master
Comment 4 Quanah Gibson-Mount 2015-06-18 21:25:36 UTC
changed state Test to Closed