public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compiling openldap 2.0.18...
@ 2001-12-18 12:06 Kent Perrier
  2001-12-18 12:10 ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Kent Perrier @ 2001-12-18 12:06 UTC (permalink / raw)
  To: cygwin

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?

Kent

PS Please reply to the list only.
-- 
'My Fellow Americans, Let's Roll'

       -- President George W. Bush

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Compiling openldap 2.0.18...
@ 2001-12-20  8:41 Ames Andreas (PN-SYS/A)
  2001-12-20 13:13 ` Jason Tishler
  0 siblings, 1 reply; 12+ messages in thread
From: Ames Andreas (PN-SYS/A) @ 2001-12-20  8:41 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

Hi,

Kent Perrier <kent.perrier@oneco.net> 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


[-- Attachment #2: configure_openldap_2.0.18.patch --]
[-- Type: application/octet-stream, Size: 2520 bytes --]

--- configure~	Tue Oct 23 17:46:32 2001
+++ configure	Wed Oct 31 17:24:15 2001
@@ -5252,55 +5252,57 @@
 
 
 
-echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
-echo "configure:5257: checking for compatible POSIX regex" >&5
-if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  
-	if test "$cross_compiling" = yes; then
-  ol_cv_c_posix_regex=cross
-else
-  cat > conftest.$ac_ext <<EOF
-#line 5266 "configure"
-#include "confdefs.h"
-
-#include <sys/types.h>
-#include <regex.h>
-static char *pattern, *string;
-main()
-{
-	int rc;
-	regex_t re;
-
-	pattern = "^A";
-
-	if(regcomp(&re, pattern, 0)) {
-		return -1;
-	}
+# echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
+# echo "configure:5257: checking for compatible POSIX regex" >&5
+# if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
+#     echo $ac_n "(cached) $ac_c" 1>&6
+# else
+    
+#     if test "$cross_compiling" = yes; then
+#         ol_cv_c_posix_regex=cross
+#     else
+#         cat > conftest.$ac_ext <<EOF
+# #line 5266 "configure"
+# #include "confdefs.h"
+
+# #include <sys/types.h>
+# #include <regex.h>
+# static char *pattern, *string;
+# main()
+# {
+# 	int rc;
+# 	regex_t re;
+
+# 	pattern = "^A";
+
+# 	if(regcomp(&re, pattern, 0)) {
+# 		return -1;
+# 	}
 	
-	string = "ALL MATCH";
+# 	string = "ALL MATCH";
 	
-	rc = regexec(&re, string, 0, (void*)0, 0);
+# 	rc = regexec(&re, string, 0, (void*)0, 0);
 
-	regfree(&re);
+# 	regfree(&re);
 
-	return rc;
-}
-EOF
-if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
-  ol_cv_c_posix_regex=yes
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -fr conftest*
-  ol_cv_c_posix_regex=no
-fi
-rm -fr conftest*
-fi
+# 	return rc;
+# }
+# EOF
+#         if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit)
+#             then
+#             ol_cv_c_posix_regex=yes
+#         else
+#             echo "configure: failed program was:" >&5
+#             cat conftest.$ac_ext >&5
+#             rm -fr conftest*
+#             ol_cv_c_posix_regex=no
+#         fi
+#         rm -fr conftest*
+#     fi
+    
+# fi
 
-fi
+ol_cv_c_posix_regex=yes
 
 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
 


[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-12-21 12:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-18 12:06 Compiling openldap 2.0.18 Kent Perrier
2001-12-18 12:10 ` Corinna Vinschen
2001-12-18 12:56   ` Kent Perrier
2001-12-18 13:07     ` Corinna Vinschen
2001-12-18 13:14       ` Kent Perrier
2001-12-20 13:10         ` Jason Tishler
2001-12-20 14:08           ` Perrier,Kent - PLANO
2001-12-20 14:20             ` Christopher Faylor
2001-12-20 14:56               ` Kent Perrier
2001-12-21  4:14                 ` Jason Tishler
2001-12-20  8:41 Ames Andreas (PN-SYS/A)
2001-12-20 13:13 ` Jason Tishler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).