Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 92388 invoked from network); 9 Jun 2009 19:48:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jun 2009 19:48:19 -0000 Received: (qmail 27522 invoked by uid 500); 9 Jun 2009 19:48:30 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 27447 invoked by uid 500); 9 Jun 2009 19:48:30 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 27437 invoked by uid 99); 9 Jun 2009 19:48:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 19:48:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.221.203 as permitted sender) Received: from [209.85.221.203] (HELO mail-qy0-f203.google.com) (209.85.221.203) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 19:48:18 +0000 Received: by qyk41 with SMTP id 41so362772qyk.13 for ; Tue, 09 Jun 2009 12:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=icaQbo64t+vTlVx3qaWO8cQ6E251MBpSMRt5UV+5BBw=; b=dwuEV5Hc7t9fMvQtr+kybn+tL1HGRQMjTr4Iv8nxn0x829toBA0If/JqAS1wqW+ZKN tCIFbjeXxDOeE1j2MgTbVsAV/ZgK5oJO9KOfMRefgpVHZKs6WXTeU53O6wcbIP32y2Tm qIsxgoshhJ/04hZyGSKlN+x0lsg6nMLlIS94Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Z+WxPosEi119xz4K5aLIQOK0PNZ93BoQ1HolZaddgmmU91ob4k8I+jO8BD7M4sm+x/ emPJ4sBePbLbHALeiYuL0d2rruqWzT/+fIWggs8mjwmyZjLfMFmGHsjVWnWy3z/qrL6U OC7yM6PxwymQHqd8Xw8+5jFCCxiQnAqsd/nzk= Received: by 10.224.20.129 with SMTP id f1mr620353qab.29.1244576877339; Tue, 09 Jun 2009 12:47:57 -0700 (PDT) Received: from ?10.0.1.2? (c-66-31-20-188.hsd1.ma.comcast.net [66.31.20.188]) by mx.google.com with ESMTPS id 8sm150188qwj.54.2009.06.09.12.47.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Jun 2009 12:47:56 -0700 (PDT) Sender: Adam Kocoloski Message-Id: <683976B0-60F6-42A6-A7C2-6A28DB20E6F7@apache.org> From: Adam Kocoloski To: dev@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: windows Date: Tue, 9 Jun 2009 15:47:54 -0400 References: X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org On Jun 9, 2009, at 12:23 PM, Nathan Stott wrote: > I'm trying very hard to get a couchdb build from source running on > windows. > I am using 0.9.0. I have built the couch_erl_driver.dll with the > couch_erl_driver.c and the most recent version of ICU successfully, > but when > couch_util calls erl_ddll:load_driver I get error -136. I have > debugged > into the erlang source to find out more about this error and it is > ERL_DE_LOAD_ERROR_INCORRECT_VERSION > > > I'm a bit stumped. I don't know how this could be the wrong version. > > This error comes from line 1557 of erl_bif_ddll.c in erlang 5.7.1 > > Anyone got any suggestions about where I go from here? Hi Nathan, I'm confused. How does -136 translate to > #define ERL_DE_LOAD_ERROR_INCORRECT_VERSION -5 I thought we decided on IRC that this code in erl_win32_sys_ddll.c > int erts_sys_ddll_open_noext(char *dlname, void **handle) > { > HINSTANCE hinstance; > > if ((hinstance = LoadLibrary(dlname)) == NULL) { > return ERL_DE_DYNAMIC_ERROR_OFFSET - GetLastError(); > } else { > *handle = (void *) hinstance; > return ERL_DE_NO_ERROR; > } > } indicated that LoadLibrary(dlname) was NULL and GetLastError() returned 126, which according to WinError.h is > // > // MessageId: ERROR_MOD_NOT_FOUND > // > // MessageText: > // > // The specified module could not be found. > // > #define ERROR_MOD_NOT_FOUND 126L Best, Adam