Trying to build X-extended python on HP700, HP-UX 9.03

Geoff Allen (
Wed, 29 Jun 1994 17:07:58 GMT

I tried asking this on the comp.lang.python and got no response. I'm
trying again, this time posting to comp.sys.hp.hpux and
comp.lang.python, since this is probably as much an HP question as a
python question.

(For the HP folks, I'm basically trying to build somthing with Motif and
Xaw and Xlib and Xt. Adding Motif to the fray seems to mess everything
up. In fact, we get similar problems simply trying to build Motif

Here's what I originally posted:

After a long and arduous battle, I managed to get an extended python
built on our SGI boxes, and now I'm attempting the same on our HPs.

We're running HP-UX 9.03, and I can get the "regular" python built
without a problem. However, trying to add X is giving me a headache.

We have the MIT X11R5 (no Motif) distribution along with the HP X
developer distribution with Motif.

I tried with MIT X11R5 and Motif1.1, but that didn't work. (The linker
couldn't resolve _XmStrings.)

MIT X11R5 with Motif1.2 compiled and the linker could resolve
everything, but python couldn't find _XHPFindKeyboardID at run-time,
which I assume is an HP-ism to differentiate between the two different
keyboards HP offers.

Anyway, I then decided to just try HP's X distribution, so whatever I
ended up with would (theoretically) be compatible with HP's Motif.
But /usr/lib/X11R5 doesn't contain libXmu. If I try to use X11R4 for
everything, I get a bunch of errors because /usr/include/X11R5/X11
doesn't contain header files for Xaw (or much else, it seems).

I double checked on a 9.01 machine we have, and it seems to be a pretty
similar setup.

Has anyone successfully built python with X extensions, including Motif,
on an HP? If so, do you have any advice for me? If you need more
details, I can provide them.

Thanks, muchas gracias, vielen Dank, merci beaucoup, all that good

Geoff "Python's cool, but building it can be a pain" Allen

Geoff Allen           Washington State U. School of EE/CS                 sysadmin support guy
July 4th is Independence Day in the U.S., and it is celebrated in a
truly American way by blowing things up and taking a day off from work. 
               -- Adam Engst, in TidBITS