On Fri, Sep 10, 2010 at 1:18 PM, Ozkan Sezer <[email protected]> wrote:
> On Fri, Sep 10, 2010 at 1:11 PM, Kai Tietz <[email protected]> wrote:
>> 2010/9/10 Ozkan Sezer <[email protected]>:
>>> On Fri, Sep 10, 2010 at 12:59 PM, Xiaofan Chen <[email protected]> wrote:
>>>> On Fri, Sep 10, 2010 at 5:43 PM, Kai Tietz <[email protected]> wrote:
>>>>
>>>>>> Unfortunately it does not work under Windows 7 x64.
>>>>>>
>>>>>> I got the following error.
>>>>>> "Windows cannot load the device driver for this hardware.
>>>>>> The driver may be corrupted or missing. (Code 39)"
>>>>>>
>>>>>> I will update later with more information.
>>>>>>
>>>>>
>>>>> Not sure here, it could be here undefined references DLLs, or
>>>>> unavailable API. You can check imports here by using objdump -x
>>>>> <driver> to see more details.
>>>>
>>>> I will check that.
>>>>
>>>>> Other issue could be that signing is missing.
>>>> Signing is not an issue here. We have access to KMCS signing
>>>> certificate (from GlobalSign) and we have released signed
>>>> driver since v1.2.0.0.
>>>>
>>>>
>>>> --
>>>> Xiaofan
>>>>
>>>
>>>
>>> I guess changing libusb0_drv.def to look like simply
>>>
>>> EXPORTS
>>>    DriverEntry
>>>
>>> ... not helps, either?
>>>
>>> --
>>> O.S.
>>>
>>
>> Another option of some interest to you here is
>> '-fno-set-stack-executable'. It prevent that code tries to call
>> VirtualProtect for nested functions. As VirtualProtect isn't available
>> in kernel mode AFAIK, this could be an issue here, too. Additionally
>> you can use here option '-static', which makes sure that you don't get
>> dependencies to libgcc_s... dll
>
> Well the libusb0.sys file in the given link only links to ntoskrnl.exe,
> and usbd.sys so it's pretty much static already?
>

Speaking of linkage to usbd.sys, where did you get libusbd.a for linking
to it? AFAICS, we don't provide it (shame on us.)  Your libusb0.sys looks
for a _USBD_CreateConfigurationRequestEx, notice the leading underscore,
so can this be the problem?

--
O.S.

------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to