Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 19:28:14 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Doug Hardie <bc979@lafn.org>
Cc:        stable@FreeBSD.ORG, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Illegal Instruction in libm
Message-ID:  <20010424192814.B96807@xor.obsecurity.org>
In-Reply-To: <f04330162b70bdb4940b1@[10.0.1.100]>; from bc979@lafn.org on Tue, Apr 24, 2001 at 06:44:42PM -0700
References:  <NEBBLDHFCEAGCHNCNNLCKEHPECAA.freebsd@wagar.net> <f04330145b70acb165c9f@[10.0.1.100]> <20010423234509.A38690@xor.obsecurity.org> <f04330146b70ad4f7aeff@[10.0.1.100]> <20010424000203.A43320@xor.obsecurity.org> <f04330147b70ad65200b6@[10.0.1.100]> <f04330162b70bdb4940b1@[10.0.1.100]>

next in thread | previous in thread | raw e-mail | index | archive | help

--QTprm0S8XgL7H0Dt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 24, 2001 at 06:44:42PM -0700, Doug Hardie wrote:
> I have not been able to find anything common between source that=20
> fails and that which does not.  However, I did another buildworld and=20
> install world and it made nothing different.  I also tried linking=20
> with static libraries (-static) and I get a lot of errors for the=20
> common math functions in libm:
>=20
> /usr/home/doug/gasp/src/gen.c(.text+0x770): undefined reference to `sqrtf'
> /usr/home/doug/gasp/src/gen.c(.text+0x80a): undefined reference to `sqrtf'
> /usr/home/doug/gasp/src/gen.c(.text+0x949): undefined reference to `expf'
> /usr/home/doug/gasp/src/gen.c(.text+0x966): undefined reference to `expf'
> /usr/home/doug/gasp/src/gen.c(.text+0x978): undefined reference to `sqrtf'
> /usr/home/doug/gasp/src/gen.c(.text+0xa9a): undefined reference to `sqrtf'
>   etc.
>=20
> those modules are in /usr/lib/libm.a.

Were you linking against -lm?

I don't have any more suggestions except to use gdb to determine the
exact instruction which is causing the illegal instruction signal, and
to look for an ASM guru to tell you what's wrong.

Kris

--QTprm0S8XgL7H0Dt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE65jY9Wry0BWjoQKURAiBrAKDD666hP5YJYqcw4UAsX/RTfwCkZwCdFk+E
wedk/ksuaJ4V683CuVF6/8g=
=RESy
-----END PGP SIGNATURE-----

--QTprm0S8XgL7H0Dt--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010424192814.B96807>