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

 
 

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

Submitted by:  Evgeny Grin <karlson2k>
Submitted on:  Tue Dec 25 14:42:08 2012  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue Dec 25 14:42:08 2012, 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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 27 01:32:30 2016haibleCategoryNone=>Build

    Back to the top


    Powered by Savane 3.1-cleanup