From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKO0n-0004dW-Tn for qemu-devel@nongnu.org; Tue, 26 Mar 2013 03:09:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKO0l-0000bl-Bi for qemu-devel@nongnu.org; Tue, 26 Mar 2013 03:09:37 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:34506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKO0l-0000bY-2j for qemu-devel@nongnu.org; Tue, 26 Mar 2013 03:09:35 -0400 Received: by mail-ee0-f45.google.com with SMTP id b57so3518275eek.4 for ; Tue, 26 Mar 2013 00:09:34 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <515149A9.30101@redhat.com> Date: Tue, 26 Mar 2013 08:09:29 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20130214061026.15062.54597.stgit@melchior2.sdl.hitachi.co.jp> <20130214061042.15062.91573.stgit@melchior2.sdl.hitachi.co.jp> <511CE63D.6050405@redhat.com> <1364244642.5150b8be08e6f@webmail.sdl.hitachi.co.jp> In-Reply-To: <1364244642.5150b8be08e6f@webmail.sdl.hitachi.co.jp> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 04/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tomoki.sekiyama@hds.com Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com, vrozenfe@redhat.com, dle-discus@lists.sourceforge.jp, Tomoki Sekiyama Il 25/03/2013 21:50, Tomoki Sekiyama ha scritto: > Hi, > > Paolo Bonzini wrote: >> Il 14/02/2013 07:10, Tomoki Sekiyama ha scritto: >>> diff --git a/qga/vss-win32-provider/qga-provider.idl >> b/qga/vss-win32-provider/qga-provider.idl >>> new file mode 100644 >>> index 0000000..17abca0 >>> --- /dev/null >>> +++ b/qga/vss-win32-provider/qga-provider.idl >>> @@ -0,0 +1,20 @@ >>> +import "oaidl.idl"; >>> +import "ocidl.idl"; >>> + >>> +[ >>> + uuid(103B8142-6CE5-48A7-BDE1-794D3192FCF1), >>> + version(1.0), >>> + helpstring("QGAVSSProvider Type Library") >>> +] >>> +library QGAVSSHWProviderLib >>> +{ >>> + importlib("stdole2.tlb"); >>> + [ >>> + uuid(6E6A3492-8D4D-440C-9619-5E5D0CC31CA8), >>> + helpstring("QGAVSSProvider Class") >>> + ] >>> + coclass QGAVSSHWProvider >>> + { >>> + [default] interface IUnknown; >>> + }; >>> +}; >> >> Ok, I checked widl and it chokes on the importlib line. If that can be >> removed, it's fine to use widl. >> >> The invocation is >> >> widl -m32/-m64 -o qga-provider.tlb -t qga-provider.idl >> >> where code to choose between -m32 and -m64 is already in the configure >> script (search for `case "$cpu"`). >> >> Paolo > > Unfortunately, if I remove importlib("stdole2.tlb"), generated .tlb seems > rejected to register into Windows COM+ Catalog. > > Wine has stdole2.tlb in its fakedlls directory, but widl does not accept > this by > > error: Wrong or unsupported typelib magic 405a4d > > Even if I copied native stdole2.tlb, widl fails with the same error. > > Do you have any idea about this error? No, I suggest you ask on the Wine mailing lists. In the meanwhile we can include a precompiled .tlb file in the QEMU repository and use midl. Paolo