[Mono-bugs] [Bug 645920] New: mkbundle fails due to missing reference to g_utf16_to_utf8 (2.8.0, Windows XP)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 12 16:27:54 EDT 2010



           Summary: mkbundle fails due to missing reference to
                    g_utf16_to_utf8 (2.8.0, Windows XP)
    Classification: Mono
           Product: Mono: Tools
           Version: 2.8.x
          Platform: i686
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: patrick.kowalzick at web.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:
Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10

mkbundle fails with errors:

$ mkbundle -z -o jpegp4d-mono.exe jpegp4d-mono-sharp.exe
OS is: Windows
Sources: 1 Auto-dependencies: False
    embedding: D:\paco\jpegp4d-deploy\jpegp4d-mono-sharp.exe
    compression ratio: 38.11%
as -o temp.o temp.s
gcc -mno-cygwin -g -o jpegp4d-mono.exe -Wall temp.c `pkg-config --cflags 
mono-2|dos2unix` -lz temp.o
cygwin warning:
   MS-DOS style path detected: C:/Programme/Mono-2.8/include/mono-2.0
   Preferred POSIX equivalent is: 

   CYGWIN environment variable option "nodosfilewarning" turns off this 
   Consult the user's guide for more details about POSIX paths:
temp.c: In function `main':
temp.c:170: warning: implicit declaration of function `g_utf16_to_utf8'
temp.c:170: warning: assignment makes pointer from integer without a cast
temp.c:185: warning: assignment makes pointer from integer without a cast
/tmp/ccgvpEs0.o: In function `main':
/cygdrive/d/paco/jpegp4d-deploy/temp.c:170: undefined reference to 
/cygdrive/d/paco/jpegp4d-deploy/temp.c:185: undefined reference to 
collect2: ld returned 1 exit status

Errors appear because of command line options handling (?), see comment below:
/* CommandLineToArgvW() might return a different argc than the
 * one passed to main(), so let it overwrite that, as we won't
 * use argv[] on Windows anyway.

Workaround, if no command line options used:
Edit temp.c and replace all 
  #ifdef _WIN32
  #ifdef _WIN32_NOTTHISONE
except the one for
  #include <windows.h>

restart failed gcc command.

Reproducible: Always

Steps to Reproduce:
1. Create simple C# project
2. Run mkbundle

Actual Results:  
No executable compiled.

Expected Results:  
Compiled executable.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list