bugGNU gettext - Bugs: bug #37980, Some Gettext 0.18.2 C Sharp errors...


You are not allowed to post comments on this tracker with your current authentication level.

bug #37980: Some Gettext 0.18.2 C Sharp errors on MinGW/Msys/Windows

Submitted by:  Evgeny Grin <karlson2k>
Submitted on:  Tue 25 Dec 2012 02:42:08 PM UTC  
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 25 Dec 2012 02:42:08 PM UTC, original submission:  

There are several Gettext compilation errors with C#.

/bin/sh ../csharpcomp.sh -O -g -o msgfmt.net.exe ../../../../../source/gettext-0.18.2/gettext-tools/src/msgfmt.cs
error CS1504: Не удалось открыть исходный файл "t:\MinGW-w64\mingw\libs_build\gettext\build\gettext-0.18.2-x32\shared\gettext-tools\src\msgfmt.cs"
        ("Не удается найти указанный файл. ")
make[3]: *** [msgfmt.net.exe] Error 1

Translation: "error CS1504: Can't open source file ... ("Source file not found")"
Seems that csc is ignoring path, when path contain forward slashes and not quoted. When filename is quoted, then files just can't be found, even if copied to build directory.
Workaround is the same as for just copy all *.cs files from source to build directories.
As csc is used only with Msys, this can be fixed like this:

pushd "${filename%/*}" 1> /dev/null
winfile="${pwd -W}/${filename##*/}"
command ... ... "$winfile"
popd 1> /dev/null

Other problem arises when trying to 'make' only in 'gettext-tools' directory. Referenced "GNU.Gettext.dll" not found as "GNU.Gettext.dll" was not build.

Evgeny Grin <karlson2k>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by karlson2k (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone => Build

    Back to the top

    Powered by Savane 3.7