Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: "Ames Andreas (PN-SYS/A)" To: cygwin AT cygwin DOT com Subject: Re: Compiling openldap 2.0.18... Date: Thu, 20 Dec 2001 17:28:14 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C18973.52D045F0" ------_=_NextPart_000_01C18973.52D045F0 Content-Type: text/plain; charset="iso-8859-1" Hi, Kent Perrier writes: > I am attempting to compile openldap (duh) and the configure fails > because I either don''t have a POSIX regex (which I cannot > understand, since I have reinstalled the POSIX regex library to make > sure I had it) or it is "broken." At least that is what configure > tells me. Since I saw a post to the list in October the 2.0.15 was > compiled correctly I assumed that 2.0.18 would as well. Is there > anything special that I need to do to get it to work? I've also tried to compile openldap 2.0.18 on cygwin. I resolved the configure issue by just commenting out the respective section ;-B; finally I know that regexp is there and I don't need configure to guess around. I've included the 'patched' configure-script. In this forma it runs successfully on my system. But even then openldap refuses to compile completely. Compilation breaks in the server part. When linking slapd I get the following error message: "Warning: resolving _gdbm_errno by linking to __imp__gdbm_errno (auto-import) nmth000000.o(.idata$4+0x0): undefined reference to `_nm__gdbm_errno'" libgdbm is in the library list. This *may* be just an issue of sequence of libraries but I don't know. As I currently only need the client part (ldapsearch for integration in emacs) I didn't check out how to 'repair' openldap for cygwin. The needed client parts are correctly compiled. Please note that there is a MSVC .dsp file in the 'build'-subdirectory. Perhaps it is usable, but I didn't try. HTH, andreas ------_=_NextPart_000_01C18973.52D045F0 Content-Type: application/octet-stream; name="configure_openldap_2.0.18.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="configure_openldap_2.0.18.patch" --- configure~ Tue Oct 23 17:46:32 2001=0A= +++ configure Wed Oct 31 17:24:15 2001=0A= @@ -5252,55 +5252,57 @@=0A= =0A= =0A= =0A= -echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6=0A= -echo "configure:5257: checking for compatible POSIX regex" >&5=0A= -if eval "test \"\${ol_cv_c_posix_regex+set}\" =3D set"; then=0A= - echo $ac_n "(cached) $ac_c" 1>&6=0A= -else=0A= - =0A= - if test "$cross_compiling" =3D yes; then=0A= - ol_cv_c_posix_regex=3Dcross=0A= -else=0A= - cat > conftest.$ac_ext <=0A= -#include =0A= -static char *pattern, *string;=0A= -main()=0A= -{=0A= - int rc;=0A= - regex_t re;=0A= -=0A= - pattern =3D "^A";=0A= -=0A= - if(regcomp(&re, pattern, 0)) {=0A= - return -1;=0A= - }=0A= +# echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6=0A= +# echo "configure:5257: checking for compatible POSIX regex" >&5=0A= +# if eval "test \"\${ol_cv_c_posix_regex+set}\" =3D set"; then=0A= +# echo $ac_n "(cached) $ac_c" 1>&6=0A= +# else=0A= + =0A= +# if test "$cross_compiling" =3D yes; then=0A= +# ol_cv_c_posix_regex=3Dcross=0A= +# else=0A= +# cat > conftest.$ac_ext <=0A= +# #include =0A= +# static char *pattern, *string;=0A= +# main()=0A= +# {=0A= +# int rc;=0A= +# regex_t re;=0A= +=0A= +# pattern =3D "^A";=0A= +=0A= +# if(regcomp(&re, pattern, 0)) {=0A= +# return -1;=0A= +# }=0A= =0A= - string =3D "ALL MATCH";=0A= +# string =3D "ALL MATCH";=0A= =0A= - rc =3D regexec(&re, string, 0, (void*)0, 0);=0A= +# rc =3D regexec(&re, string, 0, (void*)0, 0);=0A= =0A= - regfree(&re);=0A= +# regfree(&re);=0A= =0A= - return rc;=0A= -}=0A= -EOF=0A= -if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) = 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) = 2>/dev/null=0A= -then=0A= - ol_cv_c_posix_regex=3Dyes=0A= -else=0A= - echo "configure: failed program was:" >&5=0A= - cat conftest.$ac_ext >&5=0A= - rm -fr conftest*=0A= - ol_cv_c_posix_regex=3Dno=0A= -fi=0A= -rm -fr conftest*=0A= -fi=0A= +# return rc;=0A= +# }=0A= +# EOF=0A= +# if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval = $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; = exit)=0A= +# then=0A= +# ol_cv_c_posix_regex=3Dyes=0A= +# else=0A= +# echo "configure: failed program was:" >&5=0A= +# cat conftest.$ac_ext >&5=0A= +# rm -fr conftest*=0A= +# ol_cv_c_posix_regex=3Dno=0A= +# fi=0A= +# rm -fr conftest*=0A= +# fi=0A= + =0A= +# fi=0A= =0A= -fi=0A= +ol_cv_c_posix_regex=3Dyes=0A= =0A= echo "$ac_t""$ol_cv_c_posix_regex" 1>&6=0A= =0A= ------_=_NextPart_000_01C18973.52D045F0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------_=_NextPart_000_01C18973.52D045F0--