From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7444 invoked by alias); 19 Dec 2005 11:19:22 -0000 Received: (qmail 7411 invoked by uid 22791); 19 Dec 2005 11:19:20 -0000 X-Spam-Check-By: sourceware.org Received: from smtp14.wanadoo.fr (HELO smtp14.wanadoo.fr) (193.252.23.69) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Dec 2005 11:19:17 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1404.wanadoo.fr (SMTP Server) with ESMTP id 721487000064 for ; Mon, 19 Dec 2005 12:19:14 +0100 (CET) Received: from takamaka.act-europe.fr (AStDenis-105-1-21-175.w81-248.abo.wanadoo.fr [81.248.233.175]) by mwinf1404.wanadoo.fr (SMTP Server) with ESMTP id 4E401700006C; Mon, 19 Dec 2005 12:19:13 +0100 (CET) X-ME-UUID: 20051219111913320.4E401700006C@mwinf1404.wanadoo.fr Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 54B0F47E79; Mon, 19 Dec 2005 15:19:02 +0400 (RET) Date: Mon, 19 Dec 2005 11:19:00 -0000 From: Joel Brobecker To: Petchesi Gabriel Horatiu Cc: gdb@sources.redhat.com Subject: Re: gdb on AIX Message-ID: <20051219111902.GD31944@adacore.com> References: <1134986205.16296.30.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134986205.16296.30.camel@localhost.localdomain> User-Agent: Mutt/1.4i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00158.txt.bz2 > gcc -g -O2 -Wl,-bbigtoc -lpthdebug \ > -o gdb gdb.o libgdb.a \ > ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a -lcurses -liconv ../libiberty/libiberty.a > ld: 0711-317 ERROR: Undefined symbol: .pow > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > collect2: ld returned 8 exit status pow() is part of libm. On our AIX machine (5.3), configure automatically adds -lm to the list of libs (ie "-lcurses -lm -liconv") or somesuch. I think the check that adds it is: # We might need to link with -lm; most simulators need it. AC_CHECK_LIB(m, main) You need to search a line in your build output saying something like: checking for main in -lm And see what it answered. The answer should be "yes". If you see "no", then check out "config.log". This file should contain all the details. -- Joel