[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: configure with back-sql on mingw/msys fails.



 

On 1/11/07, Zhang William <william.zzw@gmail.com> wrote:


On 1/10/07, Pierangelo Masarati <ando@sys-net.it> wrote:
> Zhang William wrote:
>

> You should post the contents of config.log (or direct to a publicly
> accessible URL pointing to that file).
>

OK, I use openldap2.3.24:
export CFLAGS="-g -I/c/cpp/lib-gcc/include -I/c/cpp/lib-gcc/include/bdb" LDFLAGS="-L/c/cpp/lib-gcc/lib -L/c/cpp/mingw/lib" CPPFLAGS="-g -I/c/cpp/lib-gcc/include/bdb"; ./configure --enable-hdb=no --enable-overlays --enable-sql --enable-meta --enable-ldap  --enable-rewrite --enable-null --enable-shared=no
 
config.log:

http://www.myjavaserver.com/~jjcang/config.log.txt
 

I found that the error is for the lack of some basic types which is defined in windows.h, so I edited configure as:
line: 1414
cat >>confdefs.h <<_ACEOF
#ifdef MINGW
#include <windows.h>
#endif //zzw: mingw need this ?
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
line: 6689
#ifndef MINGW
char SQLDriverConnect (); //zzw: mingw dont accept this ?
#else
#include <sqlext.h>
#endif
int
main ()
{
#ifndef MINGW
SQLDriverConnect ();
#else
   SQLDriverConnect(0,0,0,0,0,0,0,0);
#endif
and add "-DMINGW" in CFLAGS.
in makefile of slapd, add "-lRpcrt4" in AC_LIBS.
 
And make OK, but not very sure it can run with sql backend successfully.

--
Regards.
William