libtool 20030216: problem recognizing import libraries
Charles Wilson
cwilson@ece.gatech.edu
Fri Mar 7 20:09:00 GMT 2003
Teun Burgers wrote:
> Charles Wilson wrote:
>
>
>>Now, about your problem: I'm a bit confused, because I do *not* see that
>>behavior. Please take the attached script, which contains only the new
>>win32_libid() code -- the only parted changed by the patched
>>libtool-20030216 -- and run the following tests:
>>
>>./cygwin_libid /usr/lib/libcygwin.a
>>./cygwin_libid /usr/lib/w32api/libuser32.a
>>./cygwin_libid /usr/lib/w32api/libadvapi32.a
>>./cygwin_libid /usr/lib/w32api/libkernel32.a
>>./cygwin_libid /usr/lib/w32api/libshell32.a
>>
>>And report back...
>
>
> At my Win98 SE box at home it reports this:
>
> unknown
> unknown
> unknown
> unknown
> unknown
Well, that's the problem then. Here (w2k), I get 'x86 archive import'
for all of them. So why is the script failing on your box, and
succeeding on mine?
Let's try this: change the sh-bang line to '#!/bin/sh -x' and show the
result of
'./cygwin_libid /usr/lib/libcygwin.a > outputfile 2>&1'
Here's my results:
+ OBJDUMP=objdump
+ NM=nm
+ win32_libid /usr/lib/libcygwin.a
+ win32_libid_type=unknown
+ file -L /usr/lib/libcygwin.a
+ win32_fileres=/usr/lib/libcygwin.a: current ar archive
+ eval objdump -f /usr/lib/libcygwin.a
+ objdump -f /usr/lib/libcygwin.a
+ head -n 10
+ grep -E file format pe-i386(.*architecture: i386)?
+ eval nm -f posix -A /usr/lib/libcygwin.a
+ nm -f posix -A /usr/lib/libcygwin.a
+ sed -n -e 1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;}}
+ win32_nmres=import
+ test Ximport = Ximport
+ win32_libid_type=x86 archive import
+ echo x86 archive import
x86 archive import
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list