delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/08/16:41:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=jHZh3oIPROt06+1vZKtWcYS7v0ra
QS57vT43VtegarCgR0fRvbekduXQwJos1MQLFuYyg4NZqJtafbpeRwzMYaMKPzQB
bRmbbHYxQ3HSIcLthdkuZ6dLkVJ15UJZcOi5UXyZPErJa1ougE1alej8LuOSXP4+
jsftU5MEB3gxZiI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=crkBTmPp1bGeZWMqwgSyiLmkllo=; b=CC
4mzmBvuXvd8zK7QnBoeQio4vC11EJUlORtF0ZN3Dy6ofGMKX43m5MDa3gOXSftom
lx61OQ6z5ie7DyCKNVL2AxXwWsjl4wAwWSmv/ccPSZtlTnVOOrYv3mmvrodSoSjp
Fz/L8z6pkt7SARpOpzI9HYiTqtsnOqqz126t2OOVQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.4 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-la0-f44.google.com
X-Received: by 10.152.5.201 with SMTP id u9mr19959852lau.24.1415482878832; Sat, 08 Nov 2014 13:41:18 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\))
Subject: Re: [ANNOUNCEMENT] Updated: sqlite3-3.8.7.1-1 for Cygwin/Cygwin64
From: Alexpux <alexpux AT gmail DOT com>
In-Reply-To: <announce.CAO1jNwtx+DpDBnB962bnjK9BZ3EBhdBQei-K0a6cEB8AfkLJQA@mail.gmail.com>
Date: Sun, 9 Nov 2014 00:41:17 +0300
Message-Id: <133E1FBB-4DFA-49E0-B8F8-7B0DAD167FCC@gmail.com>
References: <announce.CAO1jNwtx+DpDBnB962bnjK9BZ3EBhdBQei-K0a6cEB8AfkLJQA AT mail DOT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sA8Lfb1F019143

> 4 нояб. 2014 г., в 15:26, Jan Nijtmans написал(а):
> 
> SQLite is a software library that implements a self-contained,
> serverless, zero-configuration, transactional SQL database engine
> 
> Changes since 3.8.6-1
> =====================
> * Updated to upstream 3.8.7.1 release. See:
>     <http://www.sqlite.org/changes.html>
>  Main new feature: "pragma threads=?" (default=0, max = 8). This
>  enables SQLite to use multiple processor cores at the same
>  time for sorting operations. See:
>    <http://www.sqlite.org/pragma.html#pragma_threads>
> * Additional SQLite (minor) bug-fixes, cherry-picked from SQLite trunk:
>  * Add special handling for static mutexes in sqlite3_mutex_alloc()
>    when automatic calls to sqlite3_initialize() are enabled
>    <http://www.sqlite.org/src/info/7857d27caa>
>  * Fix the %c format character in sqlite3VXPrintf() so that it correctly
>    handles precisions larger than 70
>    <http://www.sqlite.org/src/info/08a27440f1>
>  * Fix a (probably harmless) bug in the CSV output mode of
>    the command-line shell
>    <http://www.sqlite.org/src/info/19fe4a0a47>
>  * Change the command-line shell man-page to use the ".tr"
>    troff directive instead of ".cc" for escaping the initial "."
>    characters in the ".help" output
>    <http://www.sqlite.org/src/info/67f0d469da>
> * Additional SQLite bug-fixes, rejected (apparently) upstream
>  but important (and simple) enough for Cygwin:
>  * VFS filename truncation issues
>    <http://www.sqlite.org/src/info/c060923a54>
>  * Wrong filename handling in sqlite3_load_extension() for Cygwin
>    <http://osdir.com/ml/sqlite-users/2014-02/msg00431.html>
>  * pragma database_list returns win32 paths on Cygwin
>    <http://osdir.com/ml/sqlite-users/2014-02/msg00515.html>
>  * ISO time leap second
>    <http://osdir.com/ml/sqlite-users/2014-07/msg00606.html>
>  * update to Unicode 7.0 for FTS3 tokenizer
> 

Hi!
We tried to update MSYS2 sqlite3 to the same version and found that on i686 doesn’t work properly because the wrong calling convention is used when calling GetModuleHandleW and SetDllDirectoryW.
Here is the patch to fix this issue:

diff -Naur sqlite-autoconf-3080701-orig/sqlite3.c sqlite-autoconf-3080701/sqlite3.c
--- sqlite-autoconf-3080701-orig/sqlite3.c	2014-11-08 20:34:01.593800000 +0300
+++ sqlite-autoconf-3080701/sqlite3.c	2014-11-08 20:37:42.146600000 +0300
@@ -33758,14 +33758,14 @@
   { "GetModuleHandleW",         (SYSCALL)0,                      0 },
 #endif
 
-#define osGetModuleHandleW ((HMODULE(*)(LPCWSTR))aSyscall[76].pCurrent)
+#define osGetModuleHandleW ((HMODULE(WINAPI*)(LPCWSTR))aSyscall[76].pCurrent)
 
 #if defined(SQLITE_WIN32_HAS_WIDE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
   { "SetDllDirectoryW",         (SYSCALL)SetDllDirectoryW,       0 },
 #else
   { "SetDllDirectoryW",         (SYSCALL)0,                      0 },
 #endif
 
-#define osSetDllDirectoryW ((BOOL(*)(LPCWSTR))aSyscall[77].pCurrent)
+#define osSetDllDirectoryW ((BOOL(WINAPI*)(LPCWSTR))aSyscall[77].pCurrent)
 
 #if defined(__CYGWIN__)
   { "getenv",                   (SYSCALL)getenv,                 0 },

Regards,
Alexey.

> --
> Jan Nijtmans
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019