From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 0D4DE2F15E for ; Tue, 1 May 2001 23:38:31 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f423ZWR17242 for axp-list@listman.redhat.com; Tue, 1 May 2001 23:35:32 -0400 Received: from ellpspace.math.ualberta.ca (IDENT:michal@ellpspace.math.ualberta.ca [129.128.207.67]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f423ZVb17238 for ; Tue, 1 May 2001 23:35:31 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id VAA18653 for axp-list@redhat.com; Tue, 1 May 2001 21:38:13 -0600 Date: Tue, 1 May 2001 21:38:13 -0600 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: help decript nm output. Message-ID: <20010501213813.A18631@ellpspace.math.ualberta.ca> References: <3AEF7BC5.D7E60C92@jtcsv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AEF7BC5.D7E60C92@jtcsv.com>; from ram@jtcsv.com on Tue, May 01, 2001 at 08:15:17PM -0700 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Tue, May 01, 2001 at 08:15:17PM -0700, Ram Viswanadha wrote: > Hi, > Can anyone help me decipher this ? > I am linking libicu18n.so with libicuuc.so, the error is that the linker > finding undefined symbols. > nm's output is given below: .... > what is the difference here? > > [raghu@ganesh source]# nm common/libicuuc.so | grep setComparer > 0000000000057708 T __7setComparer__7UVectorFPFPvT1_Sc ^^^^ > [raghu@ganesh source]# nm i18n/libicui18n.so | grep setComparer > U __7setComparer__7UVectorFPFPvT1_c ^^^^ Here is one. The first library provides one symbol and the second looks for another one. A linker is behaving like expected. You are hacking, obviously, C++ and a symbol in C++ is not only a "bare" name but it has all its signature (arguments and their types) "mangled" into it. Or, if you prefer, if you change how a function is called then this is a different function. Michal