From: Petchesi Gabriel Horatiu <pgabriel@rdslink.ro>
To: gdb@sources.redhat.com
Subject: Re: gdb on AIX
Date: Tue, 20 Dec 2005 09:11:00 -0000 [thread overview]
Message-ID: <1135069892.18884.6.camel@localhost.localdomain> (raw)
In-Reply-To: <20051219111902.GD31944@adacore.com>
On Mon, 2005-12-19 at 15:19 +0400, Joel Brobecker wrote:
> > 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.
=====
I checked where pow is defined in /usr/lib with:
$ nm -A lib*.a | grep "\.pow"
And i found these symbol definitions:
libC.a:ansi_32.o:000000000007751c T .pow
libC.a:ansi_64.o:0000000000076964 T .pow
libC128.a:ansi_32.o:0000000000077924 T .pow
libC128.a:ansi_64.o:0000000000076e50 T .pow
libC128_r.a:ansi_32.o:0000000000077924 T .pow
libC128_r.a:ansi_64.o:0000000000076e50 T .pow
libC_r.a:ansi_32.o:000000000007751c T .pow
libbsd.a:shr.o:0000000000003a28 T .pow
libbsd_r.a:shr.o:0000000000003a28 T .pow
libdiag.a:shr.o:0000000000022cb0 T .pow
libisode.a:shr.o:0000000000030b48 T .pow
libisode.a:shr_64.o:0000000000035444 T .pow
So the function should be available from the libC.a library !?
> 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.
=====
I found this in gdbgdb/config.log subdir
....
configure:7505: checking for mig
configure:7534: result: no
configure:7550: checking for main in -lm
configure:7606: result: no
configure:7622: checking for wctype
configure:7710: result: yes
....
Do you know from what package this lib is located?
I'm going to Google for it try to install and give it a try.
gabriel
--
Petchesi Gabriel Horatiu
E-mail: gabi@prolix.ro
next prev parent reply other threads:[~2005-12-20 9:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 9:57 Petchesi Gabriel Horatiu
2005-12-19 11:19 ` Joel Brobecker
2005-12-20 9:11 ` Petchesi Gabriel Horatiu [this message]
2005-12-20 10:45 ` Joel Brobecker
2016-11-14 15:51 GDB " Yao Qi
2016-11-14 16:17 ` David Edelsohn
2016-11-14 17:18 ` Pedro Alves
2016-11-14 17:35 ` David Edelsohn
2016-11-14 17:44 ` Pedro Alves
2016-11-14 22:16 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1135069892.18884.6.camel@localhost.localdomain \
--to=pgabriel@rdslink.ro \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox