Re: [libvirt] Experimental 32-bit windows libvirt installer
by Richard W.M. Jones
[CC-ing to the cross-compiler mailing list]
On Tue, Nov 16, 2010 at 12:09:29PM +0100, Matthias Bolte wrote:
> 2010/11/16 Richard W.M. Jones <rjones(a)redhat.com>:
> > On Tue, Nov 16, 2010 at 11:56:12AM +0100, Matthias Bolte wrote:
> >> I recently tested the Fedora provided mingw32-libvirt on Windows and
> >> virsh just segfaults before main() for me.
> >
> > Sounds like a bug in a shared library. Can you get a stack trace
> > from this?
>
> Sure, here it is:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x6cc7cf5f in _pei386_runtime_relocator ()
> from F:\msys_setup\msys\fedora\usr\i686-pc-mingw32\sys-root\mingw\bin\libvirt-0.dll
> (gdb) bt
> #0 0x6cc7cf5f in _pei386_runtime_relocator ()
> from F:\msys_setup\msys\fedora\usr\i686-pc-mingw32\sys-root\mingw\bin\libvirt-0.dll
> #1 0x00000001 in ?? ()
> #2 0x0022f9f0 in ?? ()
> #3 0x6cc0113d in DllMainCRTStartup@12 (hDll=<value optimized out>,
> dwReason=<value optimized out>, lpReserved=<value optimized out>)
> at dllcrt1.c:67
> #4 0x7c9111a7 in ntdll!LdrSetAppCompatDllRedirectionCallback ()
> from C:\WINDOWS\system32\ntdll.dll
> #5 0x6cc00000 in ?? ()
> #6 0x7c92cbab in ntdll!LdrHotPatchRoutine ()
> from C:\WINDOWS\system32\ntdll.dll
> #7 0x7c93173e in ntdll!RtlMapGenericMask ()
> from C:\WINDOWS\system32\ntdll.dll
> #8 0x7c931639 in ntdll!RtlMapGenericMask ()
> from C:\WINDOWS\system32\ntdll.dll
> #9 0x7c91eac7 in ntdll!LdrCreateOutOfProcessImage ()
> from C:\WINDOWS\system32\ntdll.dll
> (gdb)
>
> I used this packages from http://kojipkgs.fedoraproject.org/packages
>
> mingw32-libvirt-0.8.3-1.fc15.noarch.rpm
> mingw32-libvirt-debuginfo-0.8.3-1.fc15.noarch.rpm
> mingw32-gnutls-2.6.4-3.fc13.noarch.rpm
> mingw32-libgcrypt-1.4.4-4.fc12.noarch.rpm
> mingw32-libgpg-error-1.6-13.fc13.noarch.rpm
> mingw32-gettext-0.17-12.fc12.noarch.rpm
> mingw32-iconv-1.12-12.fc12.noarch.rpm
> mingw32-zlib-1.2.3-19.fc12.noarch.rpm
> mingw32-portablexdr-4.9.1-1.fc15.noarch.rpm
> mingw32-libxml2-2.7.6-1.fc13.noarch.rpm
> mingw32-readline-5.2-7.fc12.noarch.rpm
> mingw32-termcap-1.3.1-8.fc12.noarch.rpm
>
> Matthias
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
13 years, 6 months
[mingw32-glib2] Dropped the mingw64 macros as Fedora doesn't have mingw64 support yet
by Erik van Pienbroek
commit 2e2670266f9eaf91b9da305164df64af24a7fd7e
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Sun Nov 7 16:37:21 2010 +0100
Dropped the mingw64 macros as Fedora doesn't have mingw64 support yet
mingw32-glib2.spec | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/mingw32-glib2.spec b/mingw32-glib2.spec
index 63c76e5..1d5ccd2 100644
--- a/mingw32-glib2.spec
+++ b/mingw32-glib2.spec
@@ -139,11 +139,9 @@ find $RPM_BUILD_ROOT -name \*.la -exec sed -i s@' -lintl'@@ {} \;
# Let binaries depending on GLib link against libproxy-intl in a way that libtool doesn't refuse
sed -i s@"inherited_linker_flags=''"@"inherited_linker_flags='-Wl,%{_mingw32_libdir}/libintl.a -Wl,--exclude-libs=libintl.a -lkernel32 -lmsvcrt'"@ $RPM_BUILD_ROOT%{_mingw32_libdir}/libglib-2.0.la
-sed -i s@"inherited_linker_flags=''"@"inherited_linker_flags='-Wl,%{_mingw64_libdir}/libintl.a -Wl,--exclude-libs=libintl.a -lkernel32 -lmsvcrt'"@ $RPM_BUILD_ROOT%{_mingw64_libdir}/libglib-2.0.la
# Drop the reference to libintl from the pgkconfig and .la files as it's a soft dependency now
sed -i s/" -lintl"// $RPM_BUILD_ROOT%{_mingw32_libdir}/pkgconfig/glib-2.0.pc
-sed -i s/" -lintl"// $RPM_BUILD_ROOT%{_mingw64_libdir}/pkgconfig/glib-2.0.pc
%find_lang glib20
13 years, 6 months
Smartcard PC/SC support in MingW on Fedora
by François Kooman
Hi,
I would like to see PC/SC support in MingW so it becomes possible to
compile applications using card readers, for example libnfc and
gpshell on Fedora for Windows. What would be the steps in order to
achieve this?
pcsc-lite (pcsc-lite-libs and pcsc-lite-devel) seems to be a
re-implementation of the PC/SC stack in Windows to work on Unices.
Ideally it would be possible to compile and link on Linux and run on
Windows using their native PC/SC implementation.
I also see that the package wine (and wine-devel) have some files
related to PC/SC support. For example these files are available in
wine:
/usr/lib/wine/fakedlls/winscard.dll
/usr/lib/wine/winscard.dll.so
/
usr/include/wine/windows/winscard.h
/usr/lib/wine/libwinscard.def
Would that be of any help?
How should I proceed to get PC/SC compile/link working on MingW?
Regards,
François
13 years, 6 months