delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/21/22:17:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020420143006.02a60ef0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Sat, 20 Apr 2002 14:38:37 -0400
To: "Matt Minnis" <mminnis AT prefres DOT com>, cygwin AT sources DOT redhat DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Problems linking program
In-Reply-To: <5.1.0.14.2.20020419152307.02585d38@mail.prefres.com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20020418151640 DOT 058629d8 AT pop DOT ma DOT ultranet DOT com>
<5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020418131625 DOT 01b09d28 AT mail DOT prefres DOT com>
Mime-Version: 1.0

At 04:25 PM 4/19/2002, Matt Minnis wrote:
>Larry,
>
>I did an nm -C and collected the output to a text file.
>I found references to these functions in libc, libg, and libcygwin.
>I am not quite sure what to look for now.
>Can you explain what I need to be looking for?
>
>Thanks,
>
>Matt
>
>At 02:24 PM 4/18/2002, you wrote:
>>At 02:16 PM 4/18/2002, Matt Minnis wrote:
>> >I am having trouble linking a program:
>> >
>> >What libraries are these found in?
>> >__umoddi3
>> >__udivdi3
>> >_cygwin_istext_for_stdio
>> >
>> >The errors are below:
>> >/usr/lib/libg.a(vfprintf.o): In function `vfprintf_r':
>> >/home/Habacker/src/cygwin-1.3.2-1/build/i686-pc-cygwin/newlib/libc/stdio/ ../../.
>> >./../../src/newlib/libc/stdio/vfprintf.c:774: undefined reference to `__umoddi3'
>> >
>> >/home/Habacker/src/cygwin-1.3.2-1/build/i686-pc-cygwin/newlib/libc/stdio/ ../../.
>> >./../../src/newlib/libc/stdio/vfprintf.c:775: undefined reference to `__udivdi3'
>> >
>> >/usr/lib/libg.a(stdio.o): In function `_stextmode':
>> >/home/Habacker/tmp/kde/cygwin-1.3.2-1/build/i686-pc-cygwin/newlib/libc/st dio/../
>> >../../../../src/newlib/libc/stdio/stdio.c:127: undefined reference to `_cygwin_i
>> >stext_for_stdio'
>> >make: *** [libgd.so.2.0.0] Error 1
>>
>>
>>
>>In all seriousness, 'nm' on the available libraries will tell you this.
>>
>>But I'm going to guess you won't find what you want.  It looks
>>to me like you have two (other) problems:
>>
>>     1. You're building with against some old Cygwin DLL code
>>
>>     2. You're trying to build the GNU C library
>>
>>You can rectify (1).  Good luck with (2).  You'll need it! ;-)
>>
>>
>>
>>
>>Larry Hall                              lhall AT rfk DOT com
>>RFK Partners, Inc.                      http://www.rfk.com
>>838 Washington Street                   (508) 893-9779 - RFK Office
>>Holliston, MA 01746                     (508) 893-9889 - FAX

Hi Matt,

I'm not sure I can explain what you should be looking for, since I'm not 
sure I understand what you're doing.  As I stated before, as near as I can
tell you're working with old Cygwin source (for some reason) and possibly
trying to build the GNU C library.  The former seems unnecessary at best and
the latter is a major undertaking at least.  But to your specific query,
libc.a and libg.a are simple symbolic links to libcygwin.a.  libcygwin.a 
is the import library for the Cygwin DLL, which has all the C library 
routines for the Cygwin environment.  Building with gcc/g++ as provided by
Cygwin automatically includes libcygwin.a.  If your symbols aren't resolving
but they are in this library, I'm going to guess that there is a library 
ordering problem but that's a shot in the dark (and not a very good one I
bet) given that I don't understand what you're trying to do and the details
of how you're doing it.

Good luck,


Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019