Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Charles Wilson Subject: Re: libtool 20030216: problem recognizing import libraries Date: Fri, 07 Mar 2003 15:05:34 -0500 Lines: 64 Message-ID: <3E68FB8E.90400@ece.gatech.edu> References: <3E685D89 DOT D4F7B8E4 AT ecn DOT nl> <3E68E8BA DOT 4030008 AT ece DOT gatech DOT edu> <3E68F447 DOT EFFE2992 AT freeler DOT nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en 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/