kernel32.dll breakage (was Re: [ANNOUNCEMENT] Updated: cygwin-1.7.6-1)

Chris Sutcliffe ir0nh34d@gmail.com
Sat Aug 21 19:30:00 GMT 2010


  On 21/08/2010 2:58 PM, Corinna Vinschen wrote:
> Not anymore. I could reproduce the problem on XP, but not on W7. This
> reminded me of a checkin to w32api from yesterday.  The kernel32.def
> file, which is used to create the kernel32.a inport library for
> linking against kernel32.dll has been regenerated on a Windows 7 system.
>
> The problem is that CreateProcessAsUserW was never available in
> kernel32.dll, but in advapi32.dll(*).  However, with the new kernel32.def,
> CreateProcessAsUserW is now exported by kernel32.a as well.
>
> Apparently kernel32.dll *does* export CreateProcessAsUserW now under
> Windows 7.  However, *officially*, the CreateProcessAsUserW symbol is
> still provided by advapi32.dll.
>
> Chris [Sutcliffe], can we please revert this change for now?  It breaks
> building Win32 apps, if the link order prefers kernel32.a over advapi32.a.

Done.

> In theory, shouldn't the gendef script drop symbols from kernel32.def
> which are defined in advapi32.dll?  That would fix the problem, afaics.

That would be ideal, but I'm not sure what the capabilities of gendef 
are in this respect.

Cheers!

Chris


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list