From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12490 invoked by alias); 21 Apr 2002 20:28:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12483 invoked from network); 21 Apr 2002 20:28:03 -0000 Received: from unknown (HELO mta06-svc.ntlworld.com) (62.253.162.46) by sources.redhat.com with SMTP; 21 Apr 2002 20:28:03 -0000 Received: from SD ([80.4.129.4]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020421202801.YQNX20036.mta06-svc.ntlworld.com@SD> for ; Sun, 21 Apr 2002 21:28:01 +0100 From: swamp-dog@ntlworld.com (Guy Harrison) To: Subject: Re: Problems linking program Date: Sun, 21 Apr 2002 13:46:00 -0000 Message-ID: <3cc411d5.271181939@smtp.ntlworld.com> References: <5.1.0.14.2.20020418131625.01b09d28@mail.prefres.com> <5.1.0.14.2.20020419152307.02585d38@mail.prefres.com> In-Reply-To: <5.1.0.14.2.20020419152307.02585d38@mail.prefres.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-SW-Source: 2002-04/txt/msg01149.txt.bz2 On Fri, 19 Apr 2002 15:25:27 -0500, "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? In the case of functions, big 'T's ;-) Loosely: Definitions. One thereof. Multiple definitions means you have to make an executive decision about which lib was intended, and no definition implies "go download missing package" or "bad config wrong machine". nm -A --defined-only `find /lib -name '*.a'` | grep umoddi3 [snip path]/libgcc.a:_umoddi3.o:00000000 b .bss /libgcc.a:_umoddi3.o:00000000 d .data /libgcc.a:_umoddi3.o:00000000 ? .stab /libgcc.a:_umoddi3.o:00000000 ? .stabstr /libgcc.a:_umoddi3.o:00000000 t .text /libgcc.a:_umoddi3.o:00000000 t ___clz_tab /libgcc.a:_umoddi3.o:00000000 t ___gnu_compiled_c /libgcc.a:_umoddi3.o:00000100 T ___umoddi3 /libgcc.a:_umoddi3.o:00000000 t gcc2_compiled ...implies "-lgcc" is missing from the link line. Now you're certainly on your own because that's automatically done via "specs". [snip] --=20 swamp-dog@ntlworld.com -- 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/