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

[-- Attachment #1 --]
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 
> fails and that which does not.  However, I did another buildworld and 
> install world and it made nothing different.  I also tried linking 
> with static libraries (-static) and I get a lot of errors for the 
> common math functions in libm:
> 
> /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.
> 
> 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

[-- Attachment #2 --]
-----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-----

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