From: Joel Brobecker <brobecker@adacore.com>
To: Petchesi Gabriel Horatiu <gabi@prolix.ro>
Cc: gdb@sources.redhat.com
Subject: Re: gdb on AIX
Date: Mon, 19 Dec 2005 11:19:00 -0000 [thread overview]
Message-ID: <20051219111902.GD31944@adacore.com> (raw)
In-Reply-To: <1134986205.16296.30.camel@localhost.localdomain>
> 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
next prev parent reply other threads:[~2005-12-19 11:19 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 [this message]
2005-12-20 9:11 ` Petchesi Gabriel Horatiu
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=20051219111902.GD31944@adacore.com \
--to=brobecker@adacore.com \
--cc=gabi@prolix.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