Why does bash-2.05a fail to compile `printf.def' on HP/UX 11.x?

Why does bash-2.05a fail to compile `printf.def' on HP/UX 11.x?


HP/UX's support for long double is imperfect at best.

GCC will support it without problems, but the HP C library functions
like strtold(3) and printf(3) don't actually work with long doubles.
HP implemented a `long_double' type as a 4-element array of 32-bit
ints, and that is what the library functions use. The ANSI C
`long double' type is a 128-bit floating point scalar.

The easiest fix, until HP fixes things up, is to edit the generated
config.h and #undef the HAVE_LONG_DOUBLE line. After doing that,
the compilation should complete successfully.

Section G: How can I get bash to do certain common things?



Home FAQ