From owner-freebsd-questions Sat Jun 19 7: 3:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dlanor.evertsen.nl (node11a94.a2000.nl [24.132.26.148]) by hub.freebsd.org (Postfix) with ESMTP id 331E115138 for ; Sat, 19 Jun 1999 07:03:36 -0700 (PDT) (envelope-from ronald@node11a94.a2000.nl) Received: from localhost (ronald@localhost) by dlanor.evertsen.nl (8.9.3/8.9.2) with ESMTP id QAA00357; Sat, 19 Jun 1999 16:03:25 +0200 (CEST) (envelope-from ronald@node11a94.a2000.nl) X-Authentication-Warning: dlanor.evertsen.nl: ronald owned process doing -bs Date: Sat, 19 Jun 1999 16:03:24 +0200 (CEST) From: "Ronald 'Ko' Klop" To: Doug White Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ghostscript 5.5 floating point exception In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 18 Jun 1999, Doug White wrote: > On Thu, 17 Jun 1999, Ronald 'Ko' Klop wrote: > > > I compiled ghostscript 5.5 from the ports collection. When I run this > > program it immediately crashes with a floating point exception. I have a > > Cyrix 486DX and the kernel detects npx0 while booting. So, I have a FPU. > > > > Gs gets the signal in png_push_fill_buffer() which is an empty > > function in gdevpnm.c. I don't understand how a FPU exception can > > occure in an empty function. > > Did you use the port? > > This is a common Linux-ism. Linux masks all FPU exceptions by default, > where FreeBSD does not. The offending calls simply need to be bracketed > with fpgetmask()/fpsetmask() calls. > Yes, I did use the port. I discovered, that using optimalization (CFLAGS= -O ) didn't work very well. Compiling it without optimalization gives a good working binary. Thanks for the tip anyway. Greetings, Ronald. -- Ronald Klop http://node11a94.a2000.nl/~ronald/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message