Updated 2012-09-08 15:34:59 by RLE (Redirected from HP/UX)

General Information edit

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

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

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

Hints for Development edit

MAKR (2008/03/04): I use HP's aCC compiler [8] 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: [9]