delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/08/04/18:22:12

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A1393858431
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1722810131;
bh=adU+5zMhddY11Gh1dIkO0eKOCx6rHdUOL9T/f9iCFNc=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=WUPm+N9JS6nao8Umgu9Jd8mJPzz0f+f71PJKGGgBWYgQhQTa1qpodiU+8Dr9as1gt
QMPWpKxO4X0BwHRUDMhA8eEFslGHHdCcCcV45A/Z6baCl/ZtM+CoLvU1ZvUMPJclvN
YEqpEXVT0ke6Nj8J9TlO/IJJlFCfdt5ydxCp8gX4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C318A385841C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C318A385841C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722810109; cv=none;
b=ekfnL7/YY7Oyh7uUWV5vdHmnvblD2Akrs8ynWqTbutkzmUkZKGgoJzYEDtH63SvxonePY0MNSWNiMdH2gSQipFyAsSuEZgo6if3NnBE9uE+AtT2luItpOtyOO/LkyQMVlrTNpCyRozMJPRUmFp/lwXmhCPgWAVGA4qVf+Upbf4k=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1722810109; c=relaxed/simple;
bh=c7VhyDiOh5r0npmt1Adh4p24W60B9Orb7Cc6nA0DvQ4=;
h=Message-ID:Date:MIME-Version:From:Subject:To;
b=SYXm++R48n+aNQT2SmH3SGMATC+PtYKU24RcqpNw22NWrTtfytUJxvpmnGLQp5NikJOFCm4tvODmDuhqpuxBr+L/EgOsTLviX8uF4yYwVYfdgWYLigmHloTA8910xohf2Hx4gqvaxv0trdQmlLOcwebTgeWum+MZxlWVlwe0c3s=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <3f4f4f26-7a30-407f-93e7-abd24b09f35a@systematicsw.ab.ca>
Date: Sun, 4 Aug 2024 16:21:45 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: mbrtoc32 not found following update.
To: cygwin AT cygwin DOT com
References: <CAKFuvzaWeqJZ4Pd61CVxSz7SR6DQ9aopcZF+9emXWKpy8L2q+A AT mail DOT gmail DOT com>
<e620e773-29d1-493d-9110-4bab78fc9d7a AT SystematicSW DOT ab DOT ca>
<CAKFuvzboz8F09eb1+COgVSsKnMVZr_Z1=h5_tAX2LyaYejLiyw AT mail DOT gmail DOT com>
<CAKFuvza7ySzsBtMnUrw5D0Pp-wZS5TEbM6hRPcRo4bByFJDtew AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAKFuvza7ySzsBtMnUrw5D0Pp-wZS5TEbM6hRPcRo4bByFJDtew@mail.gmail.com>
X-Rspamd-Queue-Id: E7F1120025
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP,
UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6
X-Rspamd-Server: rspamout07
X-Stat-Signature: cn98wqkqxneiy813uhcdq3hi75sm437e
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+2K+xYQ0D3sf0SKsxqaI54cB9bH1hzddI=
X-HE-Tag: 1722810105-203998
X-HE-Meta: U2FsdGVkX1/ZM1do8vDiMh8ZlZV5U5wx3WxxYlNpc+v2i3tYYj0I6t8FY7rdxt5WXF5Y95m/cL22ztGmgiuhXMBhFi81Qt5Wjvoz5jAOZE1fKUB/WRrJidL1QDC0MFQob8TaqPOEipCP1A2ljVPpWvnpXcmlTh9zalwqzOGGygVR4hvZO+U/vxFOFHqWA/BuCPqv7GLN66w3dCpCOulpym777QnmjvCogPV6dEcboQTr+J9Uzjmt2Bf5R+iHHd8R9Lgd8SVLjR3lTuJeAT6QGoej1JQnpSEQe0KBoAqnitMDAFHCFVy1Nt00LNlXWjAm8338Uthz+QphjhfiAp9OXT1j2cchYwlO
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.30
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>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT systematicsw DOT ab DOT ca>
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>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 474MMCN93000062

On 2024-08-04 12:28, Eric J Korpela via Cygwin wrote:
> Was away for a couple days and just came back to this.  Reboots didn't seem
> to get the DLL replaced, which
> probably means something is weirdly broken with file permissions in windows
> on my system.   That bodes ill for
> the future, and probably means a Windows reinstall is in my future.

File permission issues on Cygwin directories and files can sometimes be 
clarified by running `setfacl -b|--remove-all` which removes all *extended* ACL 
entries, and reduces ACLs to match effective POSIX permissions, which can then 
be fixed by `chmod -c|-v perms files`.

I use `lsattr -adl ...` on directories, `ls -adl ...` on directories and files, 
`getfacl ...` on directories and files, and `icacls $(cygpath -am ...)` to look 
at permissions.
If `chmod -c|-v perms files` does not fix an issue, I carefully use
`setfacl -m acls files` to make ACLs look normal.

[I have found running `setfacl -k|--remove-default` which removes all default 
ACL entries DACLs on Cygwin or non-Cygwin directories means nothing can create 
anything under those directories as no DACLs are there to define default 
permissions.]

> Eventually I booted to knoppix, deleted the offending file, booted to
> windows and reinstalled the cygwin package.
> That fixed the problem.

Good to hear.
You could just launch MS Windows File Explorer `cygstart .` or `cygstart /` and 
delete the offending file(s).

> Thanks for your help.

Most such problems happen because something has been running and not yet 
terminated before running Cygwin Setup, or Windows Scheduled Tasks running 
Cygwin processes while running Cygwin Setup.

I start Task Manager, tab Details, sort by Image path name, check for anything 
running from Cygwin install paths, and kill them, then run Cygwin Setup.

After checking all Cygwin postinstall processes have completed, as above, I 
check thru /var/log/setup.log.full for any significant issues, and rerun Cygwin 
Setup if required.

My Cygwin login profile checks for not-yet-replaced binaries:

	/usr/{{,s}bin,lib}/*.{dll,exe}.new

and not-renamed non-permanent postinstall scripts:

	/etc/postinstall/[!0z][!pqrst][!_]*.*sh

and their existence tells me something did not complete successfully.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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