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

Submitter:  Evgeny Grin <karlson2k>
Submitted:  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 0.18.1.1: 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##*/}"
winfile="${winfile//\//\\}"
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-4448.
    Corresponding source code