Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsltproc floating-point exception



Hello all,

I have finished compiling CDE for NetBSD/vax.

I didn't feel like patching libxslt and libxml, so I just used `gdb`
to wrap `xsltproc` and `xmllint` and handle the FPE. The FPE only
happened once when either program started, and telling `gdb` to just
ignore the FPE and allow the program to continue running worked.
Someone else can go through the trouble of patching libxml for VAX!

OpenSP compiled succesfully as well, but during the build of CDE it
had a few segfaults, so I just copied the man pages and help files
from an i386 package.

CDE only partly works. I can `X -query` into `dtlogin` from a PC with
a screen, but `dtwm` and most other CDE programs fail with this error:
```
Unresolved inheritance operation
```
The stock X.Org app, `xman` fails in the same way when clicking on
"Manual Page".

Also, /usr/pkg/etc/dt mistakenly became /usr/pkg/usr/pkg/etc/dt. I
just linked it to the proper location.

Thank you!

On Wed, 29 Apr 2026 at 11:43, Johnny Billquist <bqt%softjar.se@localhost> wrote:
>
> On 4/29/26 10:20, Martin Husemann wrote:
> > On Tue, Apr 28, 2026 at 10:52:16PM +0300, Monica Vaida wrote:
> >> When trying to build libxslt I get many errors during the compilation
> >> of two files, `libexslt/math.c` and `libexslt/date.c`, both part of
> >> the libxslt extension library, libexslt. The errors are caused by
> >> `NAN` being undefined in `<math.h>` due to the VAX's nonstandard
> >> floating-point.
> >
> > You need to patch xsltproc to cope with architectures that do not define
> > NAN. That is why the define is optional in the C standard - some machines
> > just do not have it.
>
> You could argue that VAX have NaN, but it only have signalling NaN.
> Which probably is a problem here.
>
>    Johnny
>


Home | Main Index | Thread Index | Old Index