speclib vs. -lc trouble.

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Thu Apr 9 21:07:00 GMT 2009


On Thu, Apr 09, 2009 at 10:51:50PM +0200, Corinna Vinschen wrote:
>On Apr  9 19:59, Dave Korn wrote:
>> Dave Korn wrote:
>> 
>> >   I examined the link map files.  For some reason a whole bunch of .idata$4
>> > sections go missing when you add -lc:
>> 
>> > -00000000 I __imp___fseeko64
>> 
>> 
>>   That's interesting.  In libc.a, there is one archive member supplying
>> fseeko64.  In libcygwin.a, there are two, and the new one comes first in the
>> archive meaning it'll be linked rather than the one that matches the one in
>> libc.a.
>
>Isn't that just the mapping from fseeko to _fseeko64 (see NEW_FUNCTIONS
>in Makefile.in)?

Yes, and that uncovers a fatal flaw in the speclib mark 3.  speclib mark
4 should get this right.

cgf



More information about the Cygwin-developers mailing list