From: rasure@borris.eece.unm.edu (John Rasure)
Newsgroups: comp.soft-sys.khoros
Subject: Re: cantata problem
Date: 7 Aug 92 15:01:45 GMT

You have at least 2 problems ....


In "Re: cantata problem", James M Missler writes:
+ > 
+ > 
+ > In "cantata problem", James M Missler writes:
+ > + I have recently ftp'd khoros system, source, and data tar files.
+ > + I subsequently compiled khoros for our Sun3 , OS 4.1.1, no f77 or gcc.
+ > + I then ran some of the recommended demo programs with editimage,
+ > + xprism3, and cantata.  editimage and xprism3 work fine.  However,
+ > + cantata is not a recognized command.  I checked khoros/bin and
+ > + could not find cantata.  I do see cantata in khoros/src/xvroutines/cantata
+ > + along with several .o files that probably are used to compile cantata.
+ > 
+ > cantata must not of compiled correctly.  The errors would have been
+ > recorded in the make.World file created by installit, so you can look for
+ > them there or you can ....
+ > 
+ > cd khoros/src/xvroutines/cantata
+ > make clean
+ > make Makefile
+ > make depend
+ > make install
+ > 
+ > and see what errors you get.
+ > 
+ > + This cantata is not an executable file.  Any idea what I need to do
+ > + to get cantata up and running?  Thanks.
+ > + 						- Mike Missler
+ > End of message from James M Missler
+ > 
+ > 
+ > 
+ 
+ John -
+ 	I followed your advice.  A summary of warnings/errors for
+ each command follows:
+ 
+ make clean -- no errors;
+ 
+ make Makefile -- errors:
+ makemake -DUseInstalled -I/home/local/khoros/repos/config/imake_conf  -DTOPDIR=/home/local/khoros/src -DCURDIR=./xvroutines/cantata
+ sh: makemake: not found
+ *** Error code 1
+ make: Fatal error: Command failed for target `Makefile'

You must not have the khoros bin path in your path - or makemake failed to
compile.  Make sure that you are picking up the khoros makemake before
another system makemake  (%which makemake)

+ 
+ make depend -- no errors;
+ 
+ make install -- warnings/errors:
+ cc -O1 -Bdynamic  -I/home/local/khoros/include     -DVFORK -DTEMPNAM -DPUTENV  -DRANDOM   -DWAIT3       -target sun3 -c  Viewport.c
+ ./Viewport.h: 69: XtNforceBars redefined
+ ./Viewport.h: 70: XtNallowHoriz redefined
+ ./Viewport.h: 71: XtNallowVert redefined
+ ./Viewport.h: 72: XtNuseBottom redefined
+ ./Viewport.h: 73: XtNuseRight redefined
+ cc -O1 -Bdynamic  -I/home/local/khoros/include     -DVFORK -DTEMPNAM -DPUTENV  -DRANDOM   -DWAIT3       -target sun3 -c  attributes.c
+ 	:
+ 	:
+ rm -f cantata
+ cc -o cantata Viewport.o  attributes.o  autorun.o  blink.o  build.o  callbacks.o  cantata.o  check.o  clipboard.o  connection.o  control.o  control_util.o  create.o  createglyph.o  creatework.o  distribute.o  environment.o  error.o  exit.o  files.o  find.o  forms.o  glyph.o  glyphlist.o  info.o  lcantata.o  menu.o  negotiator.o  nodelist.o  optional.o  restore.o  routines.o  run.o  save.o  subform.o  update.o  util.o  variables.o  workspace.o  -L/home/local/khoros/lib -L/usr/lang/SC1.0.1  -O1 -Bdynamic -


ldisplay  -lxvplot  -lgraphics  -lxvforms  -lxvutils  -lghost  -lvexpr  -lnum_anal  -ldspl  -lformat  -lgeo_surf  -lvipl  -lvutils  -lvmath  -lvrast  -lvgparm  -lverror  -ltiff  -lm -ll  -lXaw -lXmu -lXt -lXext -lX11   
+ ld: /lib/libXaw.sa.5.0(sharedlib.o): _viewportWidgetClass: multiply defined
+ *** Error code 2
+ make: Fatal error: Command failed for target `cantata'

>From the FAQ:

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

   Q46. I am compiling Khoros with MIT's X11R5.  When linking xvroutines
        (cantata, editimage, etc), the compiler tells me that
        _viewportWidgetClass is multiply defined.  What's the problem?

   A46. This problem is due to the fact that we have our own bugged fixed
        versions of the Viewport widget.  We were hoping that R5
        would have these fixes so that we could delete them, but unfortunately
        this isn't the case.  Kim Tang provides these fixes to get around the
        problem:

      In $KHOROS_HOME/src/xvroutines/cantata/Viewport.c, change line 141 to:
      static WidgetClass viewportWidgetClass = (WidgetClass)&viewportClassRec;

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

+ 
+ 	My big problem appears to be with the multiply defined
+ viewportWidgetClass.  We have recently installed X11R5.  Do you
+ have any suggestions on resolving this problem?  Thanks.
+ 						- Mike Missler
End of message from James M Missler