From owner-freebsd-stable Tue Apr 24 22:42:29 2001 Delivered-To: freebsd-stable@freebsd.org Received: from zoon.lafn.org (zoon.lafn.org [206.117.18.9]) by hub.freebsd.org (Postfix) with ESMTP id 921A237B422 for ; Tue, 24 Apr 2001 22:42:26 -0700 (PDT) (envelope-from bc979@lafn.org) Received: from [10.0.1.100] (cs-wla2-p20.lafn.org [192.168.16.20] (may be forged)) by zoon.lafn.org (8.10.1/8.10.1) with ESMTP id f3P5gAV27780; Tue, 24 Apr 2001 22:42:15 -0700 (PDT) Mime-Version: 1.0 X-Sender: bc979@mail.lafn.org Message-Id: In-Reply-To: <20010424192814.B96807@xor.obsecurity.org> References: <20010423234509.A38690@xor.obsecurity.org> <20010424000203.A43320@xor.obsecurity.org> <20010424192814.B96807@xor.obsecurity.org> Date: Tue, 24 Apr 2001 22:40:30 -0700 To: Kris Kennaway From: Doug Hardie Subject: Re: Illegal Instruction in libm Cc: stable@FreeBSD.ORG, Kris Kennaway Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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