www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/06/03/19:59:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD99F382C5ED
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 253NrDMi025900
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1654300393;
bh=uyEMb1dtoGqiiR8ANXYyKOoZg3rvBS1UNUNChifnL2U=;
h=Date:From:To:Subject:In-Reply-To:References:From;
b=16a5bTYLbnMbNg35v6Nji0UiYCKzerIvsjjESyMvK/qeaumMDvhK0VxqLuCFWpVAB
XVp06oJ6GL73dsNAt6WkaNiPa5kKZson7anMK6GJMJ0FuNWXm0s8+uGXFw5kNEXNtf
PKDIwuA7fjpNmsFHnVBmAhMaIFdeCEOqBXmQl0OFhkC3/UMh4nkbXgkff31XEH2ubj
CO6h+eN8AD8Fx6Iv1lnISLfujj7IE4hQxxycsoLRRERgXBAAK8X67PCzaZ386HQwQu
7ADIR4X84UqxqbufNGWUykcuS21GnWN3XRZ0ZMBp2C9NR6mDf/VTXuAMr86o3VWWlf
LZSYUdqHpxkwQ==
X-Nifty-SrcIP: [119.150.44.95]
Date: Sat, 4 Jun 2022 08:53:14 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Readline not working correctly with cygwin1.dll in same directory
Message-Id: <20220604085314.58740d42e22a134140b376ea@nifty.ne.jp>
In-Reply-To: <9087f783897148ff8c47965379fd66b5@ads.uni-passau.de>
References: <9087f783897148ff8c47965379fd66b5 AT ads DOT uni-passau DOT de>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Fri, 3 Jun 2022 18:37:29 +0000
"Mexis, Nico" wrote:
> Dear CygWin team,
> 
> this is my first bug report and I hope I have chosen the right recipients here.
> I am very sorry if this is the wrong address.
> 
> Here is my bug report:
> Currently, I am trying to compile a software for commutative algebra, namely CoCoA 5, using CygWin.
> The compilation itself is working correctly and finishes as expected.
> CoCoA 5 uses readline in order to facilitate inputs from the console.
> When starting the resulting executable within CygWin bash, readline and all of its features work correctly.
> Also, as long as CygWin's DLLs are within Windows's PATH, in the default (and new) Windows Terminal, everything is working fine.
> However, when trying to create a distributable zip file with all the libraries included, something strange happens:
> In order to allow users without a CygWin installation to start CoCoA 5, all the required DLLs need to be distributed together with the application itself.
> All the required libraries could be found using DependencyWalker and cygcheck.
> Of course, as expected, cygwin1.dll is one of the required DLLs.
> As soon as I place cygwin1.dll in the installation directory where CoCoA 5's executable resides, readline support breaks.
> For some reason, the input line behaves very strangely, e.g., backspace and the arrow keys are not working correctly.
> All of the other DLLs (including cygreadline7.dll) can reside in the installation directory without causing trouble.
> But as soon as cygwin1.dll is also added in the installation directory, this bug reappears.
> 
> Another strange observation:
> This problem does not seem to only affect CoCoA 5, but also many other similar applications like PARI/GP.
> As soon as cygwin1.dll is copied into the same directory as the application's exe, this strange bug appears.
> 
> Sadly, I do not know about a fix yet since cygwin1.dll is needed for all users without a local CygWin installation.
> But - in turn - adding cygwin1.dll causes this bug which makes the console application very uncomfortable to use.
> 
> I would be very happy if you know a fix for this strange issue since I could not find something similar online.
> Best regards and thank you very much in advance,

If the program depends on cygncurses*.dll, it also needs
/usr/share/terminfo.

It should be placed in the relative path ../usr/share/terminfo
from the directory where cygwin1.dll exists.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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