* w32api funny
@ 2009-07-01 10:21 Dave Korn
2009-07-01 11:07 ` Corinna Vinschen
2009-07-01 12:43 ` Mark J. Reed
0 siblings, 2 replies; 4+ messages in thread
From: Dave Korn @ 2009-07-01 10:21 UTC (permalink / raw)
To: cygwin
I noticed this when we added StrStrI to setup.exe, and I forgot to bootstrap
the generated files; I got a bad exe that didn't work for me because it
imported StrStrIA from comctl32.dll (which was the next -l option in the
LDFLAGS), which - at least on w2k - doesn't actually export that function:
$ for x in /usr/lib/w32api/lib{comctl32,shell32,shlwapi}.a ; do echo $x; nm $x
| grep StrStrI ; done
/usr/lib/w32api/libcomctl32.a
00000000 T _StrStrIW@8
00000000 I __imp__StrStrIW@8
00000000 T _StrStrIA@8
00000000 I __imp__StrStrIA@8
/usr/lib/w32api/libshell32.a
00000000 T _StrStrIW@8
00000000 I __imp__StrStrIW@8
00000000 T _StrStrIA@8
00000000 I __imp__StrStrIA@8
/usr/lib/w32api/libshlwapi.a
00000000 T _StrStrIW@8
00000000 I __imp__StrStrIW@8
00000000 T _StrStrIA@8
00000000 I __imp__StrStrIA@8
$ cd $WINDIR/system32
$ for x in comctl32.dll shell32.dll shlwapi.dll ; do echo $x ; dumpbin
/exports $x | grep StrStrI ; done
comctl32.dll
shell32.dll
403 AB 00117E97 StrStrIA
404 AC 00117E9D StrStrIW
shlwapi.dll
710 F4 0000F2B4 StrStrIA
711 F5 00007E9E StrStrIW
I checked on an XP system as well, and it's not exported from comctl32.dll
there either. The definitions come from here:
/usr/src/w32api-3.13-1/lib/comctl32.def:125:StrStrIA@8
/usr/src/w32api-3.13-1/lib/comctl32.def:126:StrStrIW@8
and are present in CVS HEAD.
cheers,
DaveK
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: w32api funny
2009-07-01 10:21 w32api funny Dave Korn
@ 2009-07-01 11:07 ` Corinna Vinschen
2009-07-01 12:43 ` Mark J. Reed
1 sibling, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2009-07-01 11:07 UTC (permalink / raw)
To: cygwin
On Jul 1 11:33, Dave Korn wrote:
>
> I noticed this when we added StrStrI to setup.exe, and I forgot to bootstrap
> the generated files; I got a bad exe that didn't work for me because it
> imported StrStrIA from comctl32.dll (which was the next -l option in the
> LDFLAGS), which - at least on w2k - doesn't actually export that function:
>
> $ for x in /usr/lib/w32api/lib{comctl32,shell32,shlwapi}.a ; do echo $x; nm $x
> | grep StrStrI ; done
> /usr/lib/w32api/libcomctl32.a
> 00000000 T _StrStrIW@8
> 00000000 I __imp__StrStrIW@8
> 00000000 T _StrStrIA@8
> 00000000 I __imp__StrStrIA@8
> /usr/lib/w32api/libshell32.a
> 00000000 T _StrStrIW@8
> 00000000 I __imp__StrStrIW@8
> 00000000 T _StrStrIA@8
> 00000000 I __imp__StrStrIA@8
> /usr/lib/w32api/libshlwapi.a
> 00000000 T _StrStrIW@8
> 00000000 I __imp__StrStrIW@8
> 00000000 T _StrStrIA@8
> 00000000 I __imp__StrStrIA@8
>
> $ cd $WINDIR/system32
>
> $ for x in comctl32.dll shell32.dll shlwapi.dll ; do echo $x ; dumpbin
> /exports $x | grep StrStrI ; done
> comctl32.dll
> shell32.dll
> 403 AB 00117E97 StrStrIA
> 404 AC 00117E9D StrStrIW
> shlwapi.dll
> 710 F4 0000F2B4 StrStrIA
> 711 F5 00007E9E StrStrIW
>
> I checked on an XP system as well, and it's not exported from comctl32.dll
> there either. The definitions come from here:
>
> /usr/src/w32api-3.13-1/lib/comctl32.def:125:StrStrIA@8
> /usr/src/w32api-3.13-1/lib/comctl32.def:126:StrStrIW@8
>
> and are present in CVS HEAD.
I removed all the erroneously defined StrFOO entry points from comctl32.a.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: w32api funny
2009-07-01 10:21 w32api funny Dave Korn
2009-07-01 11:07 ` Corinna Vinschen
@ 2009-07-01 12:43 ` Mark J. Reed
2009-07-01 12:47 ` Dave Korn
1 sibling, 1 reply; 4+ messages in thread
From: Mark J. Reed @ 2009-07-01 12:43 UTC (permalink / raw)
To: cygwin
On Wed, Jul 1, 2009 at 6:33 AM, Dave Korn wrote:
>
> I noticed this when we added StrStrI to setup.exe, and I forgot to bootstrap
> the generated files; I got a bad exe that didn't work [...]
So, not really funny "ha-ha", then... too bad. I was hoping for an
API knee-slapper.
--
Mark J. Reed <markjreed@gmail.com>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: w32api funny
2009-07-01 12:43 ` Mark J. Reed
@ 2009-07-01 12:47 ` Dave Korn
0 siblings, 0 replies; 4+ messages in thread
From: Dave Korn @ 2009-07-01 12:47 UTC (permalink / raw)
To: cygwin
Mark J. Reed wrote:
> On Wed, Jul 1, 2009 at 6:33 AM, Dave Korn wrote:
>> I noticed this when we added StrStrI to setup.exe, and I forgot to bootstrap
>> the generated files; I got a bad exe that didn't work [...]
>
> So, not really funny "ha-ha", then... too bad.
Nah, just a funny peculiar.
> I was hoping for an API knee-slapper.
I heard that all the kids are into "api slapping" these days...
cheers,
DaveK
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-01 12:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-01 10:21 w32api funny Dave Korn
2009-07-01 11:07 ` Corinna Vinschen
2009-07-01 12:43 ` Mark J. Reed
2009-07-01 12:47 ` Dave Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).