From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18536 invoked by alias); 20 Dec 2001 16:28:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 18515 invoked from network); 20 Dec 2001 16:28:36 -0000 Received: from unknown (HELO derui011.eb.eds.de) (192.85.16.85) by sources.redhat.com with SMTP; 20 Dec 2001 16:28:36 -0000 Received: from DEFRM001.fr.de.tenovis.com (gate.eds.de [192.85.16.1]) by derui011.eb.eds.de (8.10.2/8.10.2) with ESMTP id fBKGSXp30500 for ; Thu, 20 Dec 2001 17:28:33 +0100 Received: by DEFRM001.fr.de.tenovis.com with Internet Mail Service (5.5.2653.19) id ; Thu, 20 Dec 2001 17:28:34 +0100 Message-ID: From: "Ames Andreas (PN-SYS/A)" To: cygwin@cygwin.com Subject: Re: Compiling openldap 2.0.18... Date: Thu, 20 Dec 2001 08:41:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C18973.52D045F0" X-SW-Source: 2001-12/txt/msg01011.txt.bz2 ------_=_NextPart_000_01C18973.52D045F0 Content-Type: text/plain; charset="iso-8859-1" Content-length: 1549 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" Content-length: 2917 --- configure~ Tue Oct 23 17:46:32 2001=0A= +++ configure Wed Oct 31 17:24:15 2001=0A= @@ -5252,55 +5252,57 @@=0A= =20=0A= =20=0A= =20=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= -=20=20=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= +=20=20=20=20=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= =20=09=0A= - string =3D "ALL MATCH";=0A= +# string =3D "ALL MATCH";=0A= =20=09=0A= - rc =3D regexec(&re, string, 0, (void*)0, 0);=0A= +# rc =3D regexec(&re, string, 0, (void*)0, 0);=0A= =20=0A= - regfree(&re);=0A= +# regfree(&re);=0A= =20=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_li= nk) 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= +=20=20=20=20=0A= +# fi=0A= =20=0A= -fi=0A= +ol_cv_c_posix_regex=3Dyes=0A= =20=0A= echo "$ac_t""$ol_cv_c_posix_regex" 1>&6=0A= =20=0A= =0A= ------_=_NextPart_000_01C18973.52D045F0 Content-Type: text/plain; charset=us-ascii Content-length: 214 -- 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--