delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/17/06:00:56

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:from:subject:reply-to:to:message-id:date
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=o7TZxIbZIP4VkXxd8IfTMQAPyXq43NDVQ6FTIishNfW64WPgbAvh7
rfd6EBESxW7z8ZzDXyvLMIgqD2dYtMYfyCfNAN5lYT/zoLvr7GEXdvVZvXAl36ws
Sgoy0MJCOWdneGQniPfae59WmMGzDWUQ+OmjJd5bvd0/P2vYts0wgw=
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:from:subject:reply-to:to:message-id:date
:mime-version:content-type:content-transfer-encoding; s=default;
bh=+bPV6EN5qIr0ymuNpXCIRSW3eNo=; b=AiWKyG2uuiEEguwRX2tOuuwHbXEI
HCFhxtWfmQ6WbTPh9OzNm1Y7AJMZW1vSAAxSJnnb2qFWwrMFEEI+kq58rsmHD+T/
oZ3BW2HUbyQMnOUy791BO7oGFVG/KlKT5cowleA44LiK44Sca3emW5FlvAsjvICZ
K+cWld53/UMeU70=
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: No, score=-0.1 required=5.0 tests=BAYES_05,KAM_COUK,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=dll, reside, 2-1, Hx-languages-length:1943
X-HELO: mail-wm0-f45.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:reply-to:to:organization:message-id :date:user-agent:mime-version:content-type:content-transfer-encoding; bh=N98NfMXas3CnJNHszjVv4teizRv99dfUghI53E2o+/U=; b=kWp3J8+/jGZN39HIjfP83n7cnjl1c3Ss0UF3ngomqfKpxXvN1es0LSplOHiNlsfmN/ Rd0fg73p5wyO+vGRDUwA0gN2BYGFdPByzqcwkufKM4MQOyLd51cNDcxLgq67uJQmyYf3 bv5QdZMOxzZcBjptcpBxtHJMT0t/ZCdqg4L4uR1CcBFd9fY7vux6o8TGPNXTo4bYet+z HFnTXpeFQckpngElf9tcjlmDwgPHIpZXJCjsO9Gunzhe+Wtocn85KF2ECYLDfghwIR1m 7ir9owu1kawly9O+FRXrtdPWKWptHmhUd3Zb7pfu+/i3B3wir2qbw6X/aQjFeWeaVZic FTSw==
X-Gm-Message-State: ALoCoQnkl2SV4nbpVopLMa+hQ7Vt3/g1h7CdNn2XdJsSg3Jy1EEeYneBu2hYcyXWQAvXOuGAc1EkSzWI4+TH+b9sfiS/QgCWeQ==
X-Received: by 10.28.91.83 with SMTP id p80mr3397574wmb.87.1450350036511; Thu, 17 Dec 2015 03:00:36 -0800 (PST)
From: Philip Taylor <pbt AT observatorysciences DOT co DOT uk>
Subject: Problems using a DLL with Cygwin 64 bit
Reply-To: pbt AT observatorysciences DOT co DOT uk
To: cygwin AT cygwin DOT com
Message-ID: <567295D2.80900@observatorysciences.co.uk>
Date: Thu, 17 Dec 2015 11:00:34 +0000
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35
MIME-Version: 1.0

Environment:
Windows 7 (64 bit)
Cygwin 64 bit
GCC version: 4.9.3

To make use of a Prosilica camera, I am having to build applications using an 
externally supplied DLL (from the camera manufacturer, with no source code) in 
Cygwin64 and Cygwin32.  I am using the appropriate 32 or 64 bit version of the DLL, 
as supplied.

The most difficult problem encountered is when using Cygwin 64 bit. I was initially 
unable to link but, using pexports and dlltool, I managed to create a .lib file with 
which I linked OK. This got rid of the initial link failure message "error adding 
symbols: File in wrong format."

But having linked successfully, the application now crashes on startup:

$ ../../bin/cygwin-x86_64/prosilicaApp.exe
   6 [main] prosilicaApp (96896) 
C:\cygwin64\home\EPICS\R3.14.12.5\modules\areaDetector\2-2\ADProsilica\2-1\iocs\prosilicaIOC\bin\cygwin-x86_64\prosilicaApp.exe: 

*** fatal error - cygheap base mismatch detected - 0x1802FA400/0x6EA400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
Segmentation fault

The reference to cygwin DLL in the long error message appears spurious - there is 
only one cygwin DLL in my system and there are no problems running other Cygwin 
applications in the same environment.

I have tried with 2 different versions of the manufacturer's DLL. The same error 
occurs, but with different addresses shown in the "mismatch detected" message.

The error does not occur with a 32 bit Cygwin installation.

Any idea why this error is occurring only with 64 bit Cygwin?

Philip Taylor

(Observatory Sciences Ltd)

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