HP-UX

General Information

HP-UX [L1 ] is one of the Unix Systems in HP's portfolio [L2 ]. It is provided for the two architectures HP9000 Servers (parisc) [L3 ] and Integrity Servers (Itanium, ia64) [L4 ]. An emulator exists on the Itanium architecture to ensure runtime compatibility (of some sort) for executables build for the parisc architecture (see ARIES at [L5 ]).

Tcl/Tk and quite a number of its extensions can be obtained from the Porting And Archive Centre for HP-UX [L6 ], e.g. here [L7 ] or one of its mirrors.

ActiveState does also ship a Batteries Included distribution for HP-UX.


Hints for Development

MAKR (2008/03/04): I use HP's aCC compiler [L8 ] with the following CFLAGS to build Tcl/Tk and a couple of extensions (including my own):

-AeANSI-C compatibility
+DAportableResult runs on PA1.1 and PA2.0 (32bit; parisc builds only)
+DD64Result is for 64bit architecture
-OSwitch on optimization
(+Osize)Optimize for size instead of performance (I need that, would not recommend it for general use, though)
-D_XOPEN_SOURCE_EXTENDED=98 -D_XOPEN_SOURCE=600POSIX compatibility

Please note that a lot of the standard commands behave different from what one might expect. If you want or need POSIX behavior, you have to setup one of the following environment variables:

export UNIX95=1up to and including HP-UX 11i v2 (11.23)
export UNIX_STD=1995from HP-UX 11i v3 (11.31) onwards, same effect as above
export UNIX_STD=2003from HP-UX 11i v3 (11.31) onwards, compliance to more recent POSIX specs

A link to the online HP-UX man pages: [L9 ]