[comp.windows.x.motif] Problem with HPUX 7.05 cc and Motif 1.1.1

jimt@bcsfse.boing.com (Jim Tollefson) (05/09/91)

I am trying to compile the motif 1.1.1 source on a 9000/400t running
HPUX version 7.05.  I have X11R4 completely installed (includes, libs,
binaries) The error follows:

junior src/motif1.1.1 <163> make
making all in ./config...
making all in ./util...
making all in ./util/checkfn...
making all in ./util/scripts...
making all in ./util/makedepend...
making all in ./util/soelim...
making all in ./lib...
making all in ./lib/Xm...
making all in ./lib/Mrm...
	rm -f Mrminit.o
	cc -c -O   -I../../. -I. -I../../. -I../.././lib/Xt -I../.././lib  \
	   -Wc,- Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO \
	   -DMALLOC_0_RETURNS_NULL Mrminit.c
Mrminit.c: 186: no space
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

I am still fairly new to HPUX. But I have compiled this code on an
Apollo machine with no problems.  I have tried compiling this with out
the -O and without the all the -Wc stuff.  I still get the same
error.  I have plenty of disk space (approx 49 Meg free). 
 Any Ideas

Thanks much
JimT

-- 
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)

mayer@HPLNPM.HPL.HP.COM (Niels P. Mayer) (05/10/91)

In article <668@bcsfse.boeing.com> jimt@bcsfse.boing.com (Jim Tollefson) writes$
>I am trying to compile the motif 1.1.1 source on a 9000/400t running
>HPUX version 7.05.  I have X11R4 completely installed (includes, libs,
>binaries) The error follows:
>       rm -f Mrminit.o
>       cc -c -O   -I../../. -I. -I../../. -I../.././lib/Xt -I../.././lib  \
>          -Wc,- Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO \
>          -DMALLOC_0_RETURNS_NULL Mrminit.c
>Mrminit.c: 186: no space
>*** Error code 1

How much swap space do you have left? Try the "g" menu on
/usr/contrib/bin/monitor to find out... However, If my hunch is correct,
this problem is the same as the problem that bit me -- it has nothing to do
with swap space.

I too had problems compiling libMrm and UIL on HPUX 7.0.  My solution was
to punt on them since I am the world's biggest Mrm/UIL hater anyways.

I posted a complaint about this on comp.windows.x.motif around November
1990 but got no response. Perhaps OSF will listen to your complaints about
this problem since you're a regular paying customer.

Here's an excerpt from the note I posted -- these are the notes I made to
myself while compiling Motif 1.1.1:

| (4) This one goes away if you install lib/Xt (copied from MIT Tree), and
| if you include the R4 libraries AFTER all the other includes:
| > hplnpm-29-.../lib/Mrm> make
| >         rm -f Mrminit.o
| >         cc -c -O  -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11 -I../../. -I.
| > -I../../. -I../.././lib/Xt -I../.././lib  -Wc,-Nd4000,-Ns5300,-Ne700,-Np200,-Nw4
| > 000 -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL    Mrminit.c
| > ../.././lib/Xm/ToggleBGP.h: 216: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 222: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 224: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 226: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 228: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 230: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 232: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 234: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 241: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 243: too much defining
| > *** Error code 1
| 
| To effect this, I copied over the mit/lib/Xt files into OSFMotif1.1/lib/Xt
| then I modified site.def to not set
| > #define StandardIncludes -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
| (i.e. use the default site.def)
| 
| Then I modified Imake.tmpl to include the X11 include directories...
| > hplnpm-66-.../OSFMotif1.1/config> diffc Imake.tmpl.~1~ Imake.tmpl
| > *** Imake.tmpl.~1~      Fri Aug 31 14:57:50 1990
| > --- Imake.tmpl  Sun Nov  4 17:19:26 1990
| > ***************
| > *** 632,638
| >    * EXTRA_INCLUDES contains project-specific includes set in project incfiles
| >    * INCLUDES contains client-specific includes set in Imakefile
| >    */
| > !       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
| >          ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
| >              CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
| >           LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
| > 
| > --- 632,638 -----
| >    * EXTRA_INCLUDES contains project-specific includes set in project incfiles
| >    * INCLUDES contains client-specific includes set in Imakefile
| >    */
| > !       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
| >          ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
| >              CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
| >           LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)



Here are my full notes on compiling Motif 1.1...

| ==============================================================================
| 
| My suspicion is that the problems come from the fact that I have two
| separate compile trees, one for X11r4 and one for Motif. I tried the
| Imakefile+R4 techniques mentioned in the OSF README, but that failed
| miserably (my guess is that OSF never tested whether it would work).
| Therefore I had to kludge things so that the normal Imakefile technique
| would work with various pointers into my X11r4 tree to pick up the MIT
| stuff.
| 
| ==============================================================================
| 
| (1) Copied over patched
| X11r4/mit/lib/Xt into lib,
| saved old as Xt.OSF
| 
| cp Xt.OSF/Imakefile Xt/Imakefile
| 
| 
| (2) Applied lib/Xm/patch successfully:
| > hplnpm-64-.../lib/Xm> patch < PATCH
| > Hmm...  Looks like a new-style context diff to me...
| > The text leading up to this was:
| > --------------------------
| > |*** CutPaste.c.orig	Thu Aug 16 17:44:42 1990
| > |--- CutPaste.c	Thu Aug 16 08:56:01 1990
| > --------------------------
| > Patching file CutPaste.c using Plan A...
| > Hunk #1 succeeded at 678.
| > Hunk #2 succeeded at 691.
| > Hmm...  The next patch looks like a new-style context diff to me...
| > The text leading up to this was:
| > --------------------------
| > |*** TextIn.c.orig	Thu Aug 16 17:49:17 1990
| > |--- TextIn.c	Thu Aug 16 08:56:29 1990
| > --------------------------
| > Patching file TextIn.c using Plan A...
| > Hunk #1 succeeded at 343.
| > Hmm...  The next patch looks like a new-style context diff to me...
| > The text leading up to this was:
| > --------------------------
| > |*** Text.c.orig	Thu Aug 16 17:44:51 1990
| > |--- Text.c	Thu Aug 16 17:43:19 1990
| > --------------------------
| > Patching file Text.c using Plan A...
| > Hunk #1 succeeded at 595.
| > Hunk #2 succeeded at 2137.
| > done
| ------------------------------------------------------------------------------
| (3) edit config/hp.cf
| > hplnpm-68-.../OSFMotif1.1/config> diff hp.cf.~1~ hp.cf
| > 5c5
| > <       SYSLIBS=-lXt -lX11 -lPW
| > ---
| > >       SYSLIBS=/mnt0/src/OSFMotif1.1/lib/Xt/libXt.a -l/mnt0/src/X11r4/mit/lib/X/libX11.a -lPW
| > 10,12c10,12
| > < #define OSName                 HP-UX 6.5
| > < #define OSMajorVersion         6
| > < #define OSMinorVersion         5
| > ---
| > > #define OSName                 HP-UX 7.0
| > > #define OSMajorVersion         7
| > > #define OSMinorVersion         0
| 
| ------------------------------------------------------------------------------
| (4) edit site.def so that includes point to the right spot:
| > hplnpm-69-.../OSFMotif1.1/config> diff site.def.~1~ site.def
| > 43a44
| > > #define StandardIncludes -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
| 
| ------------------------------------------------------------------------------
| > hplnpm-70-.../OSFMotif1.1/config> cd /mnt0/src/OSFMotif1.1/demos/xmsamplers/
| > hplnpm-71-.../demos/xmsamplers> diff Imakefile.~1~ Imakefile
| > 27c27
| > < ComplexProgramTarget_1(xmter,$(LOCAL_LIBRARIES),-lXext $(SYSLIBS))
| > ---
| > > ComplexProgramTarget_1(xmter,$(LOCAL_LIBRARIES),/mnt0/src/X11r4/mit/extensions/lib/libXext.a $(SYSLIBS))
| > hplnpm-72-.../demos/xmsamplers> cd /mnt0/src/OSFMotif1.1/clients/mwm/
| > hplnpm-73-.../clients/mwm> !dif
| > diff Imakefile.~1~ Imakefile 
| > 72c72
| > < ComplexProgramTarget_1(mwm,$(LOCAL_LIBRARIES),-lXext $(SYSLIBS))
| > ---
| > > ComplexProgramTarget_1(mwm,$(LOCAL_LIBRARIES),/mnt0/src/X11r4/mit/extensions/lib/libXext.a $(SYSLIBS))
| > hplnpm-74-.../clients/mwm> 
| ==============================================================================
| make World build failed in many ways:
| 
| > making all in ./lib/Xt...
| > ...
| > Make:  Don't know how to make StringDefs.c.  Stop.
| 
| 
| > making all in ./lib/Mrm...
| > ...
| > 	cc -c -O  -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11 -I../../. -I. -I../../. -I../.././lib/Xt -I../.././lib  -Wc,-Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL    Mrminit.c
| > ../.././lib/Xm/ToggleBGP.h: 224: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 226: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 228: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 230: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 232: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 234: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 241: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 243: too much defining
| > Mrminit.c: 188: no space
| > *** Error code 1
| 
| 
| > making all in ./tools/wml...
| > 	cp UilConst.h	UilKeyTab.h	UilLexPars.c	UilLexPars.h  UilSymArTa.h	UilSymArTy.h	UilSymCSet.h	UilSymCtl.h  UilSymEnum.h	UilSymGen.h	UilSymNam.h	UilSymRArg.h  UilSymReas.h	UilTokName.h	UilUrmClas.h ../.././clients/uil
| > cp: cannot create ../.././clients/uil/UilConst.h
| > cp: cannot create ../.././clients/uil/UilKeyTab.h
| > cp: cannot create ../.././clients/uil/UilLexPars.c
| > cp: cannot create ../.././clients/uil/UilLexPars.h
| > cp: cannot create ../.././clients/uil/UilSymArTa.h
| > cp: cannot create ../.././clients/uil/UilSymArTy.h
| > cp: cannot create ../.././clients/uil/UilSymCSet.h
| > cp: cannot create ../.././clients/uil/UilSymCtl.h
| > cp: cannot create ../.././clients/uil/UilSymEnum.h
| > cp: cannot create ../.././clients/uil/UilSymGen.h
| > cp: cannot create ../.././clients/uil/UilSymNam.h
| > cp: cannot create ../.././clients/uil/UilSymRArg.h
| > cp: cannot create ../.././clients/uil/UilSymReas.h
| > cp: cannot create ../.././clients/uil/UilTokName.h
| > cp: cannot create ../.././clients/uil/UilUrmClas.h
| > *** Error code 1
| > `all' not remade because of errors
| 
| > making all in ./clients/mwm...
| > 	cc -o mwm -O  WmCDecor.o WmColormap.o WmCDInfo.o WmCEvent.o WmCPlace.o WmError.o WmEvent.o WmFeedback.o WmFunction.o WmGraphics.o WmIconBox.o WmIDecor.o WmImage.o WmInitWs.o WmIPlace.o WmKeyFocus.o WmMain.o WmManage.o WmMenu.o WmProperty.o WmProtocol.o WmResCvt.o WmResource.o WmResParse.o WmSignal.o WmWinConf.o WmWinInfo.o WmWinList.o WmWinState.o version.o ../.././lib/Xm/libXm.a   /mnt0/src/X11r4/mit/extensions/lib/libXext.a /mnt0/src/OSFMotif1.1/lib/Xt/libXt.a -l/mnt0/src/X11r4/mit/lib/X/libX11.a -l








PW 
| > ld: file /mnt0/src/OSFMotif1.1/lib/Xt/libXt.a cannot be opened
| > ld: (Warning) did not generate an output file
| > *** Error code 1
| > `all' not remade because of errors
| 
| ==============================================================================
| ==============================================================================
| Solving this, I:
| 
| (1) Remove make of lib/Xt by modifying lib/Imakefile:
| > hplnpm-11-.../OSFMotif1.1/lib> diff Imakefile.~1~ Imakefile
| > 5d4
| > <       Xt \
| 
| 
| (2) Point everyone to libXt in X11r4 build tree -- do this by re-editing
| config/hp.cf:
| > hplnpm-15-.../OSFMotif1.1/config> diff hp.cf.~1~ hp.cf
| > 5c5
| > <       SYSLIBS=/mnt0/src/OSFMotif1.1/lib/Xt/libXt.a -l/mnt0/src/X11r4/mit/lib/X/libX11.a -lPW
| > ---
| > >       SYSLIBS=/mnt0/src/X11r4/mit/lib/Xt/libXt.a /mnt0/src/X11r4/mit/lib/X/libX11.a -lPW
| 
| (3) Problem in making wml is due to the fact that the uil header files created
| by wml are already there..., so I removed them:
| > hplnpm-8-.../clients/uil> rm UilConst.h UilKeyTab.h UilLexPars.c UilLexPars.h Ui
| > lSymArTa.h UilSymArTy.h UilSymCSet.h UilSymCtl.h UilSymEnum.h UilSymGen.h UilSym
| > Nam.h UilSymRArg.h UilSymReas.h UilTokName.h UilUrmClas.h
| 
| (4) This one goes away if you install lib/Xt (copied from MIT Tree), and
| if you include the R4 libraries AFTER all the other includes:
| > hplnpm-29-.../lib/Mrm> make
| >         rm -f Mrminit.o
| >         cc -c -O  -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11 -I../../. -I.
| > -I../../. -I../.././lib/Xt -I../.././lib  -Wc,-Nd4000,-Ns5300,-Ne700,-Np200,-Nw4
| > 000 -DSYSV -D_NO_PROTO -DMALLOC_0_RETURNS_NULL    Mrminit.c
| > ../.././lib/Xm/ToggleBGP.h: 216: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 222: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 224: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 226: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 228: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 230: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 232: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 234: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 241: too much defining
| > ../.././lib/Xm/ToggleBGP.h: 243: too much defining
| > *** Error code 1
| 
| To effect this, I copied over the mit/lib/Xt files into OSFMotif1.1/lib/Xt
| then I modified site.def to not set
| > #define StandardIncludes -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
| (i.e. use the default site.def)
| 
| Then I modified Imake.tmpl to include the X11 include directories...
| > hplnpm-66-.../OSFMotif1.1/config> diffc Imake.tmpl.~1~ Imake.tmpl
| > *** Imake.tmpl.~1~      Fri Aug 31 14:57:50 1990
| > --- Imake.tmpl  Sun Nov  4 17:19:26 1990
| > ***************
| > *** 632,638
| >    * EXTRA_INCLUDES contains project-specific includes set in project incfiles
| >    * INCLUDES contains client-specific includes set in Imakefile
| >    */
| > !       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
| >          ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
| >              CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
| >           LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
| > 
| > --- 632,638 -----
| >    * EXTRA_INCLUDES contains project-specific includes set in project incfiles
| >    * INCLUDES contains client-specific includes set in Imakefile
| >    */
| > !       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) -I/mnt0/src/X11r4/mit -I/mnt0/src/X11r4/mit/X11
| >          ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
| >              CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
| >           LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
| 
-------------------------------------------------------------------------------
            Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com
                  Human-Computer Interaction Department
                       Hewlett-Packard Laboratories
                              Palo Alto, CA.
                                   *

fred@cv.ruu.nl (Fred Appelman) (05/11/91)

In <3670.673835945@hplnpm.hpl.hp.com> mayer@HPLNPM.HPL.HP.COM (Niels P. Mayer) writes:


>In article <668@bcsfse.boeing.com> jimt@bcsfse.boing.com (Jim Tollefson) writes$
>>I am trying to compile the motif 1.1.1 source on a 9000/400t running
>>HPUX version 7.05.  I have X11R4 completely installed (includes, libs,
>>binaries) The error follows:
>>       rm -f Mrminit.o
>>       cc -c -O   -I../../. -I. -I../../. -I../.././lib/Xt -I../.././lib  \
>>          -Wc,- Nd4000,-Ns5300,-Ne700,-Np200,-Nw4000 -DSYSV -D_NO_PROTO \
>>          -DMALLOC_0_RETURNS_NULL Mrminit.c
>>Mrminit.c: 186: no space
>>*** Error code 1
>
>How much swap space do you have left? Try the "g" menu on
>/usr/contrib/bin/monitor to find out... However, If my hunch is correct,
>this problem is the same as the problem that bit me -- it has nothing to do
>with swap space.

This will do the job too. I expect it has something to do with including 
too many .h files or something like that.

	Fred


*** Mrminit.c.orig	Fri Apr  5 15:11:34 1991
--- Mrminit.c	Mon Apr  8 12:46:38 1991
***************
*** 181,188 ****
--- 181,190 ----
  #include <Xm/TextOutP.h>
  #include <Xm/TextSrcP.h>
  #include <Xm/StringSrcP.h>
+ #if !defined(hp9000s300) && !defined(hp9000s800)
  #include <Xm/ToggleB.h>
  #include <Xm/ToggleBG.h>
+ #endif
  #include <Xm/ToggleBGP.h>
  #include <Xm/ToggleBP.h>
  

-- 
Fred J.R. Appelman, 3D Computer Vision, Utrecht University
AZU, Heidelberglaan 100, 3584 CX Utrecht, The Netherlands.
Telephone: +31-30-506710 Fax: +31-30-513399
e-mail: fred@cv.ruu.nl or appelman@cs.unc.edu