Hi,
I have googled and browsed your mailing list archives for instructions on how to build OpenLDAP for Windows but haven’t found any up-to-date information on it. Is such a thing still supported? I found out that at least Visual Studio workspace files were dropped away some years and versions ago. I would need an OpenLDAP lib that can be linked by Visual Studio 2013 (and probably by later VS versions in the future).
I have Windows 8.1, Cygwin 1.7.35(0.287/5/3) and MinGW. I have tried to do according to this: http://www.openldap.org/faq/data/cache/897.html but ran into issues already in the ./configure phase (btw, it says “WARNING: unrecognized options: --disable-slurpd”). The final error in running that is this: configure: error: select() required.
I’m not familiar with Unixes but Google told me that select() is a native Unix command. Is that correct and if so, what should I do with a Windows machine to handle that? Or should I do the whole building task according to some completely different instructions? I need only the client side of OpenLDAP.
Thanks for any help in advance!
Ps. Just in case it matters, this is the corresponding part extracted from my config.log:
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char select ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_select || defined __stub___select
| choke me
| #endif
|
| int
| main ()
| {
| return select ();
| ;
| return 0;
| }
configure:14150: result: no
configure:14154: error: select() required.
On Wed, 9 Sep 2015 09:55:10 +0300 Ilja Maki wrote:
I have googled and browsed your mailing list archives for instructions on how to build OpenLDAP for Windows but haven’t found any up-to-date information on it. Is such a thing still supported? I found out that at least Visual Studio workspace files were dropped away some years and versions ago. I would need an OpenLDAP lib that can be linked by Visual Studio 2013 (and probably by later VS versions in the future).
I have Windows 8.1, Cygwin 1.7.35(0.287/5/3) and MinGW. I have tried to do according to this: http://www.openldap.org/faq/data/cache/897.html but ran into issues already in the ./configure phase (btw, it says “WARNING: unrecognized options: --disable-slurpd”). The final error in running that is this: configure: error: select() required.
I’m not familiar with Unixes but Google told me that select() is a native Unix command. Is that correct and if so, what should I do with a Windows machine to handle that? Or should I do the whole building task according to some completely different instructions? I need only the client side of OpenLDAP.
I am sure you have checked out these URL's
http://www.applicationporting.org/2013/08/step-by-step-guide-for-openldap-wi...
http://www.openldap.org/software/download/
http://stackoverflow.com/questions/10484788/compiling-openldap-using-visual-...
BTW, update to Win 10. It is free and will save you from having to do it when 8.1 is no longer supported. I love Win 10 PRO as compared to Win 8.1 PRO.
Jerry wrote:
On Wed, 9 Sep 2015 09:55:10 +0300 Ilja Maki wrote:
I have googled and browsed your mailing list archives for instructions on how to build OpenLDAP for Windows but haven’t found any up-to-date information on it. Is such a thing still supported? I found out that at least Visual Studio workspace files were dropped away some years and versions ago. I would need an OpenLDAP lib that can be linked by Visual Studio 2013 (and probably by later VS versions in the future).
I have Windows 8.1, Cygwin 1.7.35(0.287/5/3) and MinGW. I have tried to do according to this: http://www.openldap.org/faq/data/cache/897.html but ran into issues already in the ./configure phase (btw, it says “WARNING: unrecognized options: --disable-slurpd”). The final error in running that is this: configure: error: select() required.
We use MSYS, not Cygwin. It's a lighter-weight and faster build environment. Cygwin tries to pretend to be POSIX, so it will fool the configure script into looking for Unix-compatible APIs instead of Windows APIs.
I’m not familiar with Unixes but Google told me that select() is a native Unix command. Is that correct and if so, what should I do with a Windows machine to handle that? Or should I do the whole building task according to some completely different instructions? I need only the client side of OpenLDAP.
I am sure you have checked out these URL's
http://www.applicationporting.org/2013/08/step-by-step-guide-for-openldap-wi...
http://www.openldap.org/software/download/
http://stackoverflow.com/questions/10484788/compiling-openldap-using-visual-...
stackoverflow is not a reliable source of OpenLDAP knowledge.
BTW, update to Win 10. It is free and will save you from having to do it when 8.1 is no longer supported. I love Win 10 PRO as compared to Win 8.1 PRO.
Thank you for the replies.
It turned out that this is the solution: https://github.com/mbooth101/openldap
That allows you to build it using native Windows tools (like Visual Studio command prompt) so there is no risk of running into linking or other problems later on.
It turned out that this is the solution: https://github.com/mbooth101/openldap
That allows you to build it using native Windows tools (like Visual Studio command prompt) so there is no risk of running into linking or other problems later on.
Can you explain to us what you mean by 'solution'?
I had a quick look at that URL and see no reference whatsoever about overlays, backends (e.g. ODBC, DB, SASL), dependencies (e.g. OpenSSL) and tests (approx. 70 tests)?
Cheers.
By 'solution' I mean a solution to the issue mentioned in the title, e.g. building OpenLDAP for Windows. With the instructions provided in that URL I was able to successfully (that is, without build or any other type of errors) build OpenLDAP library in Windows. Even better, by doing according to those instructions I was able to do it by using tools that are kind of 'native' to Windows (like Visual Studio command prompt), not tools that try to emulate some other operating system (like Cygwin or Msys). I needed this so that I can use it from my C++ application developed in Visual Studio through the OpenLDAP api, e.g. by calling functions declared in ldap.h. I don't quite understand how any backends would be related to this...? If I recall correctly, two dependent libraries were required during the linking phase (I think they were OpenSSL and a regex lib), but that became solved by providing the linker with a path to pre-built versions of them (the question concerned only building OpenLDAP, not the dependencies).
ps. English is not my native language, so please be kind if there are that sort of inaccuracies in my text.
On Sat, Sep 12, 2015 at 6:01 AM, Sergio NNX sfhacker@hotmail.com wrote:
It turned out that this is the solution: https://github.com/mbooth101/openldap
That allows you to build it using native Windows tools (like Visual
Studio
command prompt) so there is no risk of running into linking or other problems later on.
Can you explain to us what you mean by 'solution'?
I had a quick look at that URL and see no reference whatsoever about overlays, backends (e.g. ODBC, DB, SASL), dependencies (e.g. OpenSSL) and tests (approx. 70 tests)?
Cheers.
openldap-technical@openldap.org