Date: Tue, 24 Apr 2001 22:40:30 -0700 From: Doug Hardie <bc979@lafn.org> To: Kris Kennaway <kris@obsecurity.org> Cc: stable@FreeBSD.ORG, Kris Kennaway <kris@obsecurity.org> Subject: Re: Illegal Instruction in libm Message-ID: <f04330100b70c1386deb1@[10.0.1.100]> In-Reply-To: <20010424192814.B96807@xor.obsecurity.org> 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]> <20010424192814.B96807@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes libm was included, but the gdb stack seems to indicate that the problem is in libc in the fprintf function. I don't think I had it right the first time around. At 19:28 -0700 4/24/01, Kris Kennaway wrote: >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 > >Content-Type: application/pgp-signature >Content-Disposition: inline > >Attachment converted: Hard Disk:Untitled 13 (????/----) (000438B8) -- -- Doug 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?f04330100b70c1386deb1>