http://bugs.winehq.org/show_bug.cgi?id=10307
Summary: mono-1.2.5 quoting problem somewhere... Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Found this while trying http://www.mono-project.com/GtkSharp:_Hello_World
$ wget http://kegel.com/wine/winetricks $ sh winetricks mono12 $ cd ~/".wine/drive_c/Program Files/Mono-1.2.5.2" $ rm -f x.cs $ touch x.cs $ wine cmd /c bin/mcs.bat x.cs -pkg:gtk-sharp-2.0
fails with
error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/pango-sharp.dll' could not be found
(On Windows, it correctly complains that there's no entry point.)
The file "~/.wine/drive_c/Program Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/pango-sharp.dll" exists.
+relay shows a few clues.
000e:Call msvcrt.fopen(00153588 "C:\Program Files\Mono-1.2.5.2\lib\pkgconfig\gtk-sharp-2.0.pc",004059fa "r") ret=00405ae3 ... 000e:Call ntdll.strlen(001510e8 "Libs: -r:${libdir}/mono/gtk-sharp-2.0/pango-sharp.dll -r:${libdir}/mono/gtk-sharp-2.0/atk-sharp.dll -r:${libdir}/mono/gtk-sharp-2.0/gdk-sharp.dll -r:${libdir}/mono/gtk-sharp-2.0/gtk-sharp.dll") ret=00403d73 ... 000e:Call ntdll.strlen(00151698 "-r:C:/Program Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/pango-sharp.dll -r:C:/Program Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/atk-sharp.dll -r:C:/Program Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/gdk-sharp.dll -r:C:/Program Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/gtk-sharp.dll") ret=00409aa7 ... 000e:Call ntdll.strlen(001518c0 "-r:C:/Program") ret=00403d73 ... 000e:Call ntdll.strlen(001518ce "Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/pango-sharp.dll") ret=00403d73
Somehow when ${libdir} was expanded, some quotes were left off, or something.
It kind of looks like the variable expansion is happening inside mono. +all shows 000e:Call ntdll.strcmp(00155a30 "libdir",00155b78 "libdir") ret=672f5c28 000e:Ret ntdll.strcmp() retval=00000000 ret=672f5c28 000e:RET libglib-2.0-0.g_str_equal() retval=00000001 ret=672d181e 000e:RET libglib-2.0-0.g_hash_table_lookup() retval=00155bd0 ret=004033bf 000e:CALL libglib-2.0-0.g_strdup() ret=004033c7 000e:Call ntdll.strlen(00155bd0 "C:/Program Files/Mono-1.2.5.2/lib") ret=672f3670
so presumably it's mono that is screwing up here.
http://bugs.winehq.org/show_bug.cgi?id=10307
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #1 from Anastasius Focht focht@gmx.net 2007-11-04 15:46:38 --- Hello,
well it's actually the pkg-config tool screwing up here. It seems mono ships a native windows port of this. Though I wonder about the source ... I didn't find any in mono repository (tools).
They use either a stock one from http://pkgconfig.freedesktop.org/wiki/ or have a private development tree for such stuff. The binary signatures looks like mingw gcc 3.x
Regards
http://bugs.winehq.org/show_bug.cgi?id=10307
--- Comment #2 from Dan Kegel dank@kegel.com 2008-01-12 19:39:34 --- Still present today with current git and mono-1.2.6. This is probably a mono bug, as Anastasius says, so let's close this as soon as a bug's been filed against mono.
http://bugs.winehq.org/show_bug.cgi?id=10307
--- Comment #3 from Austin English austinenglish@gmail.com 2008-11-23 22:47:17 --- Still present in git/mono 1.9.1.
http://bugs.winehq.org/show_bug.cgi?id=10307
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #4 from Austin English austinenglish@gmail.com 2009-01-18 03:46:43 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=10307
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://ftp.novell.com/pub/m | |ono/archive/1.2.5.2/windows | |-installer/0/mono-1.2.5.2-g | |tksharp-2.10.2-win32-0.exe
--- Comment #5 from Austin English austinenglish@gmail.com 2010-06-13 05:36:01 --- http://ftp.novell.com/pub/mono/archive/1.2.5.2/windows-installer/0/mono-1.2....
Still present in 1.2-rc3: austin@laptop:~/.wine/drive_c/Program Files/Mono-1.2.5.2$ wine cmd /c bin/mcs.bat x.cs -pkg:gtk-sharp-2.0 error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/pango-sharp.dll' could not be found error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/atk-sharp.dll' could not be found error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/gdk-sharp.dll' could not be found error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/gtk-sharp.dll' could not be found error CS2001: Source file `Files/Mono-1.2.5.2/lib/mono/gtk-sharp-2.0/glib-sharp.dll' could not be found Compilation failed: 5 error(s), 0 warnings
http://bugs.winehq.org/show_bug.cgi?id=10307
--- Comment #6 from Anastasius Focht focht@gmx.net 2010-06-13 08:52:19 --- Hello,
--- quote --- Still present in 1.2-rc3: --- quote ---
I don't see the need why this bug still kept open. As already said: the pkg-config tool is broken, unable to handle paths containing spaces. You could try to run the tool manually in Windows and check if it exhibits the same behaviour, e.g.:
pkg-config.exe --libs gtk-sharp-2.0
Regards
http://bugs.winehq.org/show_bug.cgi?id=10307
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #7 from Austin English austinenglish@gmail.com 2010-06-13 13:26:18 --- Invalid, per Anastasius.
http://bugs.winehq.org/show_bug.cgi?id=10307
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Austin English austinenglish@gmail.com 2010-06-13 13:26:33 --- Closing. Thanks!