[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Get
From: |
Michele Locati |
Subject: |
[bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll |
Date: |
Fri, 4 Oct 2024 17:32:49 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?66292>
Summary: msgfmt for Windows compiled in cygwin: can't locate
GNU.Gettext.dll
Group: GNU gettext
Submitter: mlocati
Submitted: Fri 04 Oct 2024 11:32:46 PM CEST
Category: End-user / runtime
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 04 Oct 2024 11:32:46 PM CEST By: Michele Locati <mlocati>
I've compiled gettext for Windows using cygwin, using --enable-csharp=csc (and
csc.exe is in the PATH).
The first thing I noted is that some of the csharp-related tests are skipped.
For example I have:
Skipping test: C# engine not found
SKIP msgunfmt-csharp-1 (exit status: 77)
Please remark that I extracted the gettext tarball under cygwin with tar xzf
..., and I have:
$ ls -l /src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe
-rw-r--r-- 1 miche miche 2560 11 mag 2019
/src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe
$ /src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe
bash: /src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe: Permission
denied
If I do
$ chmod +x /src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe
then:
$ /src/gettext-0.22.5a/gettext-tools/m4/csharpexec-test.exe
$ echo $?
0
So, I guess that TESTCSHARP is set to no because of that (so, tests aren't
performed).
But the main problem is that msgfmt doesn't correctly relocate the path of
GNU.Gettext.dll.
I used the "/installed" prefix in cygwin, then invoked this command in a
"normal" (non cygwin) Windows shell:
msgfmt.exe --csharp -l it -d . it.po -vvv
I have this output:
Microsoft (R) Visual C# Compiler version 4.11.0-3.24460.3 (5649376e)
Copyright (C) Microsoft Corporation. All rights reserved.
warning CS1668: Invalid search path
'/cygdrive/d/a/gettext-iconv-windows/gettext-iconv-windows/installed/lib'
specified in '/LIB option' -- 'directory does not exist'
error CS0006: Metadata file 'GNU.Gettext.dll' could not be found
csc -target:library -out:it/Messages.resources.dll
-lib:/cygdrive/d/a/gettext-iconv-windows/gettext-iconv-windows/installed/lib
-reference:GNU.Gettext.dll -optimize+
'C:\Users\RUNNER~1\AppData\Local\Temp\msgZ92Hw3/resset.cs'
D:\a\gettext-iconv-windows\gettext-iconv-windows\files-unsigned\bin\msgfmt.exe:
compilation of C# class failed
it.po: 1 translated message.
Error: Process completed with exit code 1.
PS: you can view a sample at
https://github.com/mlocati/gettext-iconv-windows/actions/runs/11186699109/job/31102244862
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66292>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll,
Michele Locati <=
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Bruno Haible, 2024/10/04
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Michele Locati, 2024/10/05
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Bruno Haible, 2024/10/06
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Michele Locati, 2024/10/07
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Bruno Haible, 2024/10/07
- [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll, Bruno Haible, 2024/10/08