From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1747 invoked by alias); 28 Jul 2008 12:28:46 -0000 Received: (qmail 1737 invoked by uid 22791); 28 Jul 2008 12:28:45 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jul 2008 12:28:25 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6SCSIUa024473; Mon, 28 Jul 2008 08:28:18 -0400 Received: from zebedee.pink (vpn-12-238.rdu.redhat.com [10.11.12.238]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6SCSG8b017075; Mon, 28 Jul 2008 08:28:17 -0400 Message-ID: <488DBB56.30309@redhat.com> Date: Mon, 28 Jul 2008 13:26:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: "Vardhan, Sundara (GE Infra, Energy)" CC: Rob Sherry , gcc-help@gcc.gnu.org Subject: Re: Link error References: <8E460D1B58F94945A20AA70D4D41430D052DEACB@ALPMLVEM08.e2k.ad.ge.com> In-Reply-To: <8E460D1B58F94945A20AA70D4D41430D052DEACB@ALPMLVEM08.e2k.ad.ge.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00295.txt.bz2 Vardhan, Sundara (GE Infra, Energy) wrote: > Hi Andrew Hi. Could I please ask you to stop stop-posting? It's getting very confusing. > I checked libc.a using nm and .__memmove is defined. The following is the compile/load line where it fails > > gcc -W1,-soname=x.so -o x.so .*I6.o -shared -Wall -D__USE_GNU -D_GNU_SOURCE -DDEBUG -DLEAVE_OUT_REV_ID -O2 -D_ALL_SOURCE -Drs6000 -D__EXTENSIONS__ -I/usr/openwin/include -DAIX53 -U__MATH__ -DAIX -DRS6000 -fPIC -L -lsbI6 -L -ldbI6 > /lib/libc.a(moveeq.o):moveeq.s:(.pr+0xc): undefined reference to `.___memmove' > Ouch. You're linking statically against libc. I don't know what's causing this, but I suspect it's a Bad Thing. Andrew.