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

Re: compiling under cygwin



>>>>> Cory Bestgen writes:

    > I am trying to compile the latest release under cygwin on windows and am
    > getting some errors.
    > Does anyone know why the make is failing or what can be done to get it to
    > finish comiling?
    > The "make depend" command completed fine.

Why don't you just download the cygwin version with setup.exe from
http://cygwin.com

It uses shared libraries and passes all tests. Here's the patch I used
for compilation.

diff -urN -x .build -x .inst -x .sinst openldap-2.2.26-orig/build/top.mk openldap-2.2.26/build/top.mk
--- openldap-2.2.26-orig/build/top.mk	2005-01-20 18:00:55.000000000 +0100
+++ openldap-2.2.26/build/top.mk	2005-05-04 12:50:55.288185600 +0200
@@ -69,7 +69,7 @@
 LIBTOOL = @LIBTOOL@
 LIBRELEASE = @OPENLDAP_LIBRELEASE@
 LIBVERSION = @OPENLDAP_LIBVERSION@
-LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION)
+LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION) -no-undefined
 
 # libtool --only flag for libraries: platform specific
 NT_LTONLY_LIB = # --only-$(BUILD_LIBS_DYNAMIC)
diff -urN -x .build -x .inst -x .sinst openldap-2.2.26-orig/configure openldap-2.2.26/configure
--- openldap-2.2.26-orig/configure	2005-03-23 00:20:29.000000000 +0100
+++ openldap-2.2.26/configure	2005-05-04 12:50:55.318228800 +0200
@@ -8724,6 +8724,10 @@
 
 fi
 
+if test "${CYGWIN}" = yes
+then
+ echo Winsock tests disabled on Cygwin
+else 
 if test "$ac_cv_header_winsock_h" = yes; then
 echo $ac_n "checking for winsock""... $ac_c" 1>&6
 echo "configure:8730: checking for winsock" >&5
@@ -8782,7 +8786,7 @@
 
 echo "$ac_t""$ol_cv_winsock" 1>&6
 fi
-
+fi
 
 echo $ac_n "checking for socket""... $ac_c" 1>&6
 echo "configure:8789: checking for socket" >&5


Ciao
  Volker