[comp.sys.hp] Porting X11R4 to the HP9000 Series 300 and 800

preetham@ra.src.umd.edu (Preetham Gopalaswamy) (04/20/91)

This is probably an old and often discussed subject on this newsgroup but I
shall ask the question anyways.  I am porting X11R4 to my HP300 and 800
machines and I would like to know if there are problems, any changes that I
need to make to the source before I start.  There is a single file hp.cf in
the mit/config/ directory.  Can I use it without any problems for both kinds
of HP machines ?   My machines are both running 7.0.  Is is sufficient to
change the OSName to HP-UX 7.0 and the Major and Minor numbers appropriately
or is there more.  Also, I though I would use the Optimizer -O since the bug
in 6.5 has now been fixed.
Finally, once all this is done, can I simply go to the "make world" step.
All help/comments/suggestions will be highly appreciated.
Thank you in advance.

							Preetham Gopalaswamy

muts@fysak.fys.ruu.nl (Peter Mutsaers) (04/21/91)

preetham@ra.src.umd.edu (Preetham Gopalaswamy) writes:


>This is probably an old and often discussed subject on this newsgroup but I
>shall ask the question anyways.  I am porting X11R4 to my HP300 and 800
>machines and I would like to know if there are problems, any changes that I
>need to make to the source before I start.  There is a single file hp.cf in
>the mit/config/ directory.  Can I use it without any problems for both kinds
>of HP machines ?   My machines are both running 7.0.  Is is sufficient to

Porting?? That has already been done.
hpux (7.0 too) is among the already supported systems of X11R4. Just use
--
Peter Mutsaers                          email:    muts@fysap.fys.ruu.nl     
Rijksuniversiteit Utrecht                         muts@fys.ruu.nl
Princetonplein 5                          tel:    (+31)-(0)30-533880
3584 CG Utrecht, Netherlands                                  

milburn@me10.lbl.gov (John Milburn) (04/22/91)

Here is the hp.cf which I used for compilling R4 on a s300 machine.
It is a slightly modified version of the one which come with the motif
1.1 source.  The main changes from the mit distribution version are
the bumped up symbol table entry, the _NO_PROTO definition, the
MALLOC_0_RETURNS_NULL definition, and the optimizer level.  I choose
to use the R4 server which HP provides.


/*
 * SET VERSION NUMBERS BEFORE MAKING MAKEFILES; also, you'll need to install
 * util/scripts/bsdinstall.sh before doing a "make install"
 */
      SYSLIBS= -lXt -lX11 -lPW
      MWM_DEFINES=-DLARGECURSORS -DSHAPE -DOPAQUE
      YACCFLAGS = -Nm20000
#define SystemV                YES

#define OSName                 HP-UX 7.0
#define OSMajorVersion         7
#define OSMinorVersion         0
#ifdef hp9000s800
#define StandardDefines        -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL
#define LintOpts               -ax -DSYSV
#define OptimizedCDebugFlags   +O1
#else
#define StandardDefines        -Wc,-Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL
#define LintOpts               -ax -Nd4000 -Ns3300 -Ne700 -Np200 -Na25000 -DSYSV
#endif
#define LnCmd                  ln -s
#define MvCmd                  mv -f
#define ExecableScripts        YES
#define HasSockets             YES
#define HasVFork               YES
#define HasVoidSignalReturn    YES
#define RemoveTargetProgramByMoving YES

/* This defines the server you want */
#define XhpServer              Xhp
#define BuildServer NO    /* I use the R4 server from HP, since it has
                             starbase support. */

/* The following added by jem */

#define InstallCmd install                 /* Since I'm using gnuinstall */
#define OptimizedCDebugFlags +O1           /* I still don't trust -O */
#define ManPath $(DESTDIR)/usr/local/man   /* Keep these separate from hp's
                                                               version */
#define ManDir $(MANSOURCEPATH)1

/**/


#define NeedBerklibInXlib      YES		/* snag Berklib for Xlib */


/**/# platform:  $XConsortium: hp.cf,v 1.24 89/12/10 11:57:02 rws Exp $
/**/# operating system:  OSName

/*
 ****************************************************************************
 */


/* define this as you like for server compilation */
/* 
 * The normal malloc in libc returns a real pointer on malloc of 0;
 * the malloc in libmalloc returns null on malloc of 0.
 */
/* #define ServerMallocLib      YES	*//* use -lmalloc for server */
/* take out -DMALLOC_0_RETURNS_NULL if you have ServerMallocLib NO */

#define UNCOMPRESSPATH          uncompress

#ifdef hp9000s300
#define HardwareDefines -Dhp9000s300
#else
#define HardwareDefines
#endif

#if OSMajorVersion >= 7 || (OSMajorVersion == 6 && OSMinorVersion >= 2)
#define OsDefines -DHAS_IFREQ
#else
#define OsDefines
#endif

#if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
#define ConnectionFlags		-DTCPCONN	/* no unix sockets */
#endif

#define ExtensionDefines -DSHAPE -DMULTIBUFFER -DMITSHM -DMITMISC -DXINPUT

/*
 * Xhp-specific parameters
 */
#define WritableBlackWhite		/* want BlackPixel and WhitePixel rw */

#define ServerDefines StandardDefines ExtensionDefines -DXDMCP -DXOS -DMERGE OsDefines HardwareDefines 

/*--------------End of hp.cf----------------*/
--
John Milburn             milburn@me10.lbl.gov     (415) 486-6969
"All Lord Julius demands is total and complete obedience and more money
every time we pay him.  He's being quite reasonable, really..."

jbb@hpcvlx.cv.hp.com (Jim B. Byers) (04/24/91)

Here is some info I posted in response to another posting.  It will
help with the Server and some of the libraries.


>  HP's X is fast and robust.  Do not use the X server off the MIT tape.  It
>  is significantly slower.  Optimized servers have been place on some HP
>  machine somewhere.
>  I don't know exactly what server you'll get with your system.

>  I was running HP's server (R3 based but has R4 extensions like SHAPE) with
>  the MIT R4 Xlib, Xt, Xaw, and Motif 1.1 (we licensed it from OSF).  I don't
>  know when HP will ship R4 libs and Motif 1.1.

The HP-UX server that ships with 7.03 is an R4 server.  There is a version
of this server that runs fast on the 98550 graphics card available on
hpcvaaz (15.255.72.15) in the XServers directory.  This is availabe
via anonymous ftp and is supported on all 7.x series 300 and 400s.  An 
as yet unsupported Series 800 server is available in the unsupported
directory.  Note that these servers all have been based on R4.  

NOTE: When querried they will respond that they
are vendor release 3.  This is because we started shipping X11 with 6.2
and so are on our third major release.  Only MIT is guaranteed to have a 
vendor release that is the same as the R# of the release (by definition).
Therefore the vendor release number can have no relation to the actual
MIT release it coresponds to.  Don't be confused by it.

R4 libraries compiled for 7.x are available in the MitX11R4 directory.

R4, Motif 1.1 libraries and servers are standard with HP-UX 8.0.  Also
scalable typefacces in X11 are shipped as standard in 8.0.  Motif
1.1 libraries can be purchased for 7.0 by ordering product B1177A.

Hope this helps!

Jim Byers
Interface Technology Operation
Hewlett Packard

"Have you generated 1000 lines of Motif source code with a click of
a button using HP Interface Architect today?"

jbb@hpcvlx.cv.hp.com (Jim B. Byers) (04/24/91)

Here is a previous posting about available R4 stuff:

milburn@me10.lbl.gov (John Milburn) /  2:04 pm  Feb  4, 1991 / writes:

I have bundled some of the X11R4 binaries, libraries, and header files for
the 300 and 400 series machines into a tar archive.  It can be retrieved
from me10.lbl.gov via anonymous ftp in the directory pub/X.  All of these
are compiled at patchlevel 17 on hp-ux 7.0 on a s400.  Here are the files I
have included:


usr/bin/X11/imake
usr/bin/X11/mkfontdir
usr/bin/X11/appres
usr/bin/X11/bitmap
usr/bin/X11/bmtoa
usr/bin/X11/atobm
usr/bin/X11/listres
usr/bin/X11/oclock
usr/bin/X11/twm
usr/lib/X11/twm/system.twmrc
usr/bin/X11/xauth
usr/bin/X11/xbiff
usr/bin/X11/xcalc
usr/lib/X11/app-defaults/XCalc
usr/bin/X11/xclipboard
usr/bin/X11/xcutsel
usr/lib/X11/app-defaults/XClipboard
usr/bin/X11/xclock
usr/lib/X11/app-defaults/XClock
usr/bin/X11/xdpyinfo
usr/bin/X11/xedit
usr/lib/X11/app-defaults/Xedit
usr/bin/X11/xfd
usr/lib/X11/app-defaults/Xfd
usr/bin/X11/xinit
usr/bin/X11/startx
usr/bin/X11/xkill
usr/bin/X11/xload
usr/lib/X11/app-defaults/XLoad
usr/bin/X11/xlogo
usr/lib/X11/app-defaults/XLogo
usr/bin/X11/xlsatoms
usr/bin/X11/xlsclients
usr/bin/X11/xlsfonts
usr/bin/X11/xlswins
usr/bin/X11/xmag
usr/bin/X11/xman
usr/lib/X11/xman.help
usr/lib/X11/app-defaults/Xman
usr/bin/X11/xmh
usr/lib/X11/app-defaults/Xmh
usr/bin/X11/xmodmap
usr/bin/X11/xpr
usr/bin/X11/xdpr
usr/bin/X11/xprop
usr/bin/X11/xrdb
usr/bin/X11/xrefresh
usr/bin/X11/xfontsel
usr/lib/X11/app-defaults/XFontSel
usr/bin/X11/xdm
usr/bin/X11/xhost
usr/bin/X11/xset
usr/bin/X11/xsetroot
usr/bin/X11/xstdcmap
usr/bin/X11/xterm
usr/bin/X11/resize
usr/lib/X11/app-defaults/XTerm
usr/bin/X11/xwd
usr/bin/X11/xwininfo
usr/bin/X11/xwud
usr/bin/X11/ico
usr/bin/X11/maze
usr/bin/X11/muncher
usr/bin/X11/plaid
usr/bin/X11/puzzle
usr/bin/X11/xeyes
usr/bin/X11/xev
usr/bin/X11/xgc
usr/lib/X11/app-defaults/Xgc
usr/bin/X11/xmkmf
usr/bin/X11/mkdirhier
usr/bin/X11/makedepend
usr/lib/X11/config/imakemdep.h
usr/lib/X11/config/Imake.rules
usr/lib/X11/config/Imake.tmpl
usr/lib/X11/config/Project.tmpl
usr/lib/X11/config/site.def
usr/lib/X11/config/rtcchack.bac
usr/lib/X11/config/hp.cf
usr/lib/X11/config/jem.cf
usr/include/X11/DECkeysym.h
usr/include/X11/X.h
usr/include/X11/XWDFile.h
usr/include/X11/Xatom.h
usr/include/X11/Xmd.h
usr/include/X11/Xos.h
usr/include/X11/Xproto.h
usr/include/X11/Xprotostr.h
usr/include/X11/ap_keysym.h
usr/include/X11/copyright.h
usr/include/X11/keysym.h
usr/include/X11/keysymdef.h
usr/include/X11/bitmaps/1x1
usr/include/X11/bitmaps/2x2
usr/include/X11/bitmaps/black
usr/include/X11/bitmaps/boxes
usr/include/X11/bitmaps/calculator
usr/include/X11/bitmaps/cntr_ptr
usr/include/X11/bitmaps/cntr_ptrmsk
usr/include/X11/bitmaps/cross_weave
usr/include/X11/bitmaps/dimple1
usr/include/X11/bitmaps/dimple3
usr/include/X11/bitmaps/dot
usr/include/X11/bitmaps/dropbar7
usr/include/X11/bitmaps/dropbar8
usr/include/X11/bitmaps/escherknot
usr/include/X11/bitmaps/flagdown
usr/include/X11/bitmaps/flagup
usr/include/X11/bitmaps/flipped_gray
usr/include/X11/bitmaps/gray
usr/include/X11/bitmaps/gray1
usr/include/X11/bitmaps/gray3
usr/include/X11/bitmaps/hlines2
usr/include/X11/bitmaps/hlines3
usr/include/X11/bitmaps/icon
usr/include/X11/bitmaps/keyboard16
usr/include/X11/bitmaps/left_ptr
usr/include/X11/bitmaps/left_ptrmsk
usr/include/X11/bitmaps/letters
usr/include/X11/bitmaps/light_gray
usr/include/X11/bitmaps/mailempty
usr/include/X11/bitmaps/mailemptymsk
usr/include/X11/bitmaps/mailfull
usr/include/X11/bitmaps/mailfullmsk
usr/include/X11/bitmaps/mensetmanus
usr/include/X11/bitmaps/menu8
usr/include/X11/bitmaps/menu10
usr/include/X11/bitmaps/menu12
usr/include/X11/bitmaps/menu16
usr/include/X11/bitmaps/noletters
usr/include/X11/bitmaps/opendot
usr/include/X11/bitmaps/opendotMask
usr/include/X11/bitmaps/plaid
usr/include/X11/bitmaps/right_ptr
usr/include/X11/bitmaps/right_ptrmsk
usr/include/X11/bitmaps/root_weave
usr/include/X11/bitmaps/scales
usr/include/X11/bitmaps/sipb
usr/include/X11/bitmaps/star
usr/include/X11/bitmaps/starMask
usr/include/X11/bitmaps/stipple
usr/include/X11/bitmaps/target
usr/include/X11/bitmaps/terminal
usr/include/X11/bitmaps/tie_fighter
usr/include/X11/bitmaps/vlines2
usr/include/X11/bitmaps/vlines3
usr/include/X11/bitmaps/weird_size
usr/include/X11/bitmaps/wide_weave
usr/include/X11/bitmaps/wingdogs
usr/include/X11/bitmaps/woman
usr/include/X11/bitmaps/xfd_icon
usr/include/X11/bitmaps/xlogo11
usr/include/X11/bitmaps/xlogo16
usr/include/X11/bitmaps/xlogo32
usr/include/X11/bitmaps/xlogo64
usr/lib/libXau.a
usr/include/X11/Xauth.h
usr/include/X11/X10.h
usr/lib/liboldX.a
usr/lib/libXt.a
usr/include/X11/Composite.h
usr/include/X11/CompositeP.h
usr/include/X11/Constraint.h
usr/include/X11/ConstrainP.h
usr/include/X11/Core.h
usr/include/X11/CoreP.h
usr/include/X11/Intrinsic.h
usr/include/X11/IntrinsicP.h
usr/include/X11/Object.h
usr/include/X11/ObjectP.h
usr/include/X11/Quarks.h
usr/include/X11/RectObj.h
usr/include/X11/RectObjP.h
usr/include/X11/Shell.h
usr/include/X11/ShellP.h
usr/include/X11/StringDefs.h
usr/include/X11/Vendor.h
usr/include/X11/VendorP.h
usr/lib/libXmu.a
usr/include/X11/Xmu/Xmu.h
usr/include/X11/Xmu/Atoms.h
usr/include/X11/Xmu/CharSet.h
usr/include/X11/Xmu/CloseHook.h
usr/include/X11/Xmu/Converters.h
usr/include/X11/Xmu/CurUtil.h
usr/include/X11/Xmu/CvtCache.h
usr/include/X11/Xmu/DisplayQue.h
usr/include/X11/Xmu/Drawing.h
usr/include/X11/Xmu/Error.h
usr/include/X11/Xmu/Initer.h
usr/include/X11/Xmu/Misc.h
usr/include/X11/Xmu/StdSel.h
usr/include/X11/Xmu/StdCmap.h
usr/include/X11/Xmu/SysUtil.h
usr/include/X11/Xmu/WinUtil.h
usr/include/X11/Xmu/Xct.h
usr/lib/libXaw.a
usr/include/X11/Xaw/AsciiSink.h
usr/include/X11/Xaw/AsciiSinkP.h
usr/include/X11/Xaw/AsciiSrc.h
usr/include/X11/Xaw/AsciiSrcP.h
usr/include/X11/Xaw/AsciiText.h
usr/include/X11/Xaw/AsciiTextP.h
usr/include/X11/Xaw/Box.h
usr/include/X11/Xaw/BoxP.h
usr/include/X11/Xaw/Cardinals.h
usr/include/X11/Xaw/Clock.h
usr/include/X11/Xaw/ClockP.h
usr/include/X11/Xaw/Command.h
usr/include/X11/Xaw/CommandP.h
usr/include/X11/Xaw/Dialog.h
usr/include/X11/Xaw/DialogP.h
usr/include/X11/Xaw/Form.h
usr/include/X11/Xaw/FormP.h
usr/include/X11/Xaw/Grip.h
usr/include/X11/Xaw/GripP.h
usr/include/X11/Xaw/Label.h
usr/include/X11/Xaw/LabelP.h
usr/include/X11/Xaw/List.h
usr/include/X11/Xaw/ListP.h
usr/include/X11/Xaw/Logo.h
usr/include/X11/Xaw/LogoP.h
usr/include/X11/Xaw/Mailbox.h
usr/include/X11/Xaw/MailboxP.h
usr/include/X11/Xaw/MenuButton.h
usr/include/X11/Xaw/MenuButtoP.h
usr/include/X11/Xaw/Paned.h
usr/include/X11/Xaw/PanedP.h
usr/include/X11/Xaw/Scroll.h
usr/include/X11/Xaw/Scrollbar.h
usr/include/X11/Xaw/ScrollbarP.h
usr/include/X11/Xaw/Simple.h
usr/include/X11/Xaw/SimpleP.h
usr/include/X11/Xaw/SimpleMenu.h
usr/include/X11/Xaw/SimpleMenP.h
usr/include/X11/Xaw/Sme.h
usr/include/X11/Xaw/SmeP.h
usr/include/X11/Xaw/SmeBSB.h
usr/include/X11/Xaw/SmeBSBP.h
usr/include/X11/Xaw/SmeLine.h
usr/include/X11/Xaw/SmeLineP.h
usr/include/X11/Xaw/StripChart.h
usr/include/X11/Xaw/StripCharP.h
usr/include/X11/Xaw/Template.c
usr/include/X11/Xaw/Template.h
usr/include/X11/Xaw/TemplateP.h
usr/include/X11/Xaw/Text.h
usr/include/X11/Xaw/TextP.h
usr/include/X11/Xaw/TextSink.h
usr/include/X11/Xaw/TextSinkP.h
usr/include/X11/Xaw/TextSrc.h
usr/include/X11/Xaw/TextSrcP.h
usr/include/X11/Xaw/Toggle.h
usr/include/X11/Xaw/ToggleP.h
usr/include/X11/Xaw/Viewport.h
usr/include/X11/Xaw/ViewportP.h
usr/include/X11/Xaw/VPaned.h
usr/include/X11/Xaw/XawInit.h
usr/lib/libXdmcp.a
usr/include/X11/Xdmcp.h
usr/lib/libXext.a
usr/lib/libXinput.a
usr/include/X11/extensions/Xext.h
usr/include/X11/extensions/multibuf.h
usr/include/X11/extensions/shape.h
usr/include/X11/extensions/XShm.h
usr/include/X11/extensions/MITMisc.h
usr/include/X11/extensions/XI.h
usr/include/X11/extensions/XInput.h
usr/include/X11/extensions/XIproto.h
usr/include/X11/extensions/xtestext1.h

--

-- 
JEMilburn@lbl.gov  ...!ucbvax!lbl.gov!JEMilburn
----------

jimt@bcsfse.boeing.com (Jim Tollefson) (04/25/91)

In article <101950209@hpcvlx.cv.hp.com>, jbb@hpcvlx.cv.hp.com (Jim B. Byers) writes:
|> Here is a previous posting about available R4 stuff:
|> 
|> milburn@me10.lbl.gov (John Milburn) /  2:04 pm  Feb  4, 1991 / writes:
|> 
|> I have bundled some of the X11R4 binaries, libraries, and header files for
|> the 300 and 400 series machines into a tar archive.  It can be retrieved
|> from me10.lbl.gov via anonymous ftp in the directory pub/X.  All of these
|> are compiled at patchlevel 17 on hp-ux 7.0 on a s400.
|> 

	I am currently running this stuff and I am having problems.
(Probably something stupid I did).

        I am having a problem with gettin xterm to update the /etc/utmp
file.  When I do a 'w' it shows no one logged on. (See below)

 12:00pm  up 20:03,  0 users,  load average: 0.22, 0.24, 0.19
User     tty           login@  idle   JCPU   PCPU  what


The permissions on xterm are :

---s--x--x   1 root     other     528138 Feb 19 16:35 /usr/bin/X11/xterm

And the permission on /etc/*tmp files are:

-rw-r--r--   1 root     bin          720 Apr 25 09:09 /etc/utmp
-rw-rw-rw-   1 adm      adm        54480 Apr 24 17:45 /etc/wtmp

We are currently running HPUX 7.05 on Model 9000 Series 400.

I have also tried running xterm with the +ut option

We are running xdm from the /etc/inittab file to manage the logins:

xdm :2:once:/usr/bin/X11/xdm                # XDM invocation


These are the xdm protections:

-r-x--x--x   1 bin      bin       407514 Oct  1  1990 /usr/bin/X11/xdm

I am wondering if any of you are seeing the same thing?  If not do you see
anything obviously wrong with the above info? Do you need more info?


-- 
Jim Tollefson                                         (206) 865-5980 (wk)
jimt@bcsfse.boeing.com                        ..!uunet!bcstec!bcsfse!jimt 
"UNIX was never designed to keep people from doing stupid things, because
 that policy would also keep them from doing clever things."  (Doug Gwyn)