public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sebastien Barre <Sebastien.Barre@utc.fr>
To: "Kevin Wright" <kwright@aspectdv.com>
Cc: <cygwin@sourceware.cygnus.com>
Subject: Re: Any cygwin ports of Berkeley DB libraries?
Date: Wed, 10 Mar 1999 15:27:00 -0000	[thread overview]
Message-ID: <4.1.19990310224248.016b7020@mail.club-internet.fr> (raw)
In-Reply-To: < 004001be6a60$1b423100$8f88f726@holstein.ASPECTDV.COM >

At 11:07 09/03/99 -0800, Kevin Wright wrote:

>I have tried to build this myself from the source code and always run into
>trouble. So far, I have tried to build versions 1.86, 2.3.16, & 2.7.3 with
>no luck.

Well, seems to me that I'm finally gonna be able to help someone in this
list :)

I successfully built/tested/installed 2.7.3, and here is the patch, which
was not that obivous :( I also made a bug report to the author :

vvvvv CUT HERE  vvvvv
diff -urN db-2.7.3-orig/mutex/mutex.c db-2.7.3/mutex/mutex.c
--- db-2.7.3-orig/mutex/mutex.c	Tue Nov 10 17:52:03 1998
+++ db-2.7.3/mutex/mutex.c	Sat Mar 06 13:06:09 1999
@@ -117,7 +117,7 @@
 #define	TSL_UNSET(tsl)	(*(tsl) = 0)
 #endif
 
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(HAVE_ASSEM_X86_GCC)
 /*
  * XXX
  * DBDB this needs to be byte-aligned!!
diff -urN db-2.7.3-orig/os/os_fsync.c db-2.7.3/os/os_fsync.c
--- db-2.7.3-orig/os/os_fsync.c	Mon Oct 12 15:33:53 1998
+++ db-2.7.3/os/os_fsync.c	Sat Mar 06 13:08:01 1999
@@ -38,7 +38,7 @@
 #ifdef __hp3000s900
 #define	fsync(fd)	__mpe_fsync(fd);
 #endif
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
 #define	fsync(fd)	_commit(fd);
 #endif
 
^^^^ CUT HERE  ^^^^^

cd db-2.7.3
patch -p1 < the_path

______________________________________________________________
Sebastien Barre                  http://www.hds.utc.fr/~barre/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Sebastien Barre <Sebastien.Barre@utc.fr>
To: "Kevin Wright" <kwright@aspectdv.com>
Cc: <cygwin@sourceware.cygnus.com>
Subject: Re: Any cygwin ports of Berkeley DB libraries?
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <4.1.19990310224248.016b7020@mail.club-internet.fr> (raw)
Message-ID: <19990331194500.yxvVR039SBwWr4s5hGVoh7QxwNn04jXmvCpyHA67cn0@z> (raw)
In-Reply-To: <004001be6a60$1b423100$8f88f726@holstein.ASPECTDV.COM>

At 11:07 09/03/99 -0800, Kevin Wright wrote:

>I have tried to build this myself from the source code and always run into
>trouble. So far, I have tried to build versions 1.86, 2.3.16, & 2.7.3 with
>no luck.

Well, seems to me that I'm finally gonna be able to help someone in this
list :)

I successfully built/tested/installed 2.7.3, and here is the patch, which
was not that obivous :( I also made a bug report to the author :

vvvvv CUT HERE  vvvvv
diff -urN db-2.7.3-orig/mutex/mutex.c db-2.7.3/mutex/mutex.c
--- db-2.7.3-orig/mutex/mutex.c	Tue Nov 10 17:52:03 1998
+++ db-2.7.3/mutex/mutex.c	Sat Mar 06 13:06:09 1999
@@ -117,7 +117,7 @@
 #define	TSL_UNSET(tsl)	(*(tsl) = 0)
 #endif
 
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(HAVE_ASSEM_X86_GCC)
 /*
  * XXX
  * DBDB this needs to be byte-aligned!!
diff -urN db-2.7.3-orig/os/os_fsync.c db-2.7.3/os/os_fsync.c
--- db-2.7.3-orig/os/os_fsync.c	Mon Oct 12 15:33:53 1998
+++ db-2.7.3/os/os_fsync.c	Sat Mar 06 13:08:01 1999
@@ -38,7 +38,7 @@
 #ifdef __hp3000s900
 #define	fsync(fd)	__mpe_fsync(fd);
 #endif
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
 #define	fsync(fd)	_commit(fd);
 #endif
 
^^^^ CUT HERE  ^^^^^

cd db-2.7.3
patch -p1 < the_path

______________________________________________________________
Sebastien Barre                  http://www.hds.utc.fr/~barre/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


  parent reply	other threads:[~1999-03-10 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-09 11:11 Kevin Wright
     [not found] ` < 004001be6a60$1b423100$8f88f726@holstein.ASPECTDV.COM >
1999-03-10 15:27   ` Sebastien Barre [this message]
1999-03-31 19:45     ` Sebastien Barre
1999-03-31 19:45 ` Kevin Wright
1999-03-09 12:40 Craig Nelson
1999-03-31 19:45 ` Craig Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.1.19990310224248.016b7020@mail.club-internet.fr \
    --to=sebastien.barre@utc.fr \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=kwright@aspectdv.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).