[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
https://bugzilla.novell.com/show_bug.cgi?id=645920
https://bugzilla.novell.com/show_bug.cgi?id=645920#c0
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:1.9.2.10)
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%
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o jpegp4d-mono.exe -Wall temp.c `pkg-config --cflags
--libs
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:
/cygdrive/c/Programme/Mono-2.8/include/mono-2.0
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
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
`_g_utf16_to_
utf8'
/cygdrive/d/paco/jpegp4d-deploy/temp.c:185: undefined reference to
`_g_utf16_to_
utf8'
collect2: ld returned 1 exit status
[Fail]
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
with
#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