home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / softsys / khoros / 3162 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  7.9 KB

  1. From: kk@hpl-opus.hpl.hp.com (Konstantinos Konstantinides)
  2. Date: Wed, 30 Dec 1992 22:39:10 GMT
  3. Subject: Re: Compile problem
  4. Message-ID: <86790035@hpl-opus.hpl.hp.com>
  5. Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA
  6. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!hplextra!hpl-opus!kk
  7. Newsgroups: comp.soft-sys.khoros
  8. References: <1992Dec30.191729.6797@ms.uky.edu>
  9. Lines: 230
  10.  
  11. In comp.soft-sys.khoros, justin@hp750.ccs.uky.edu (Justin Sullivan) writes:
  12.  
  13. > Surprise! I can ALMOST compile Khoros, but I have a problem.. It could
  14. > be a minor configuration problem, but everything in the configuration
  15. > is so convoluted, I don't know where to begin.. 
  16. > The configuration is an HP 9000/750 running HP-UX 8.07. I have followed
  17. > the special instructions in the Khoros FAQ for installing on an HP to
  18. > the letter. 
  19. > Everything goes along JUST FINE until it gets to here:
  20. > install in ./vipl/Lib done
  21. > installing in ./vipl/arith_binary...
  22. > installing in ./vipl/arith_binary/vabsdiff...
  23. >     cc +O1   -I/usr/local/khoros/include  -I/usr/include/X11R4  -s -Wp,-H512000 -DSYSV -DVFORK      -DREDEFFORTRAN -DWAIT3      -c vabsdiff.c
  24. > Directory/: Make: Cannot open.  Stop.
  25. > installing in ./vipl/arith_binary/vadd...
  26.  
  27. You mention following the instructions, but the -I/usr/include/X11R4
  28. worries me :-)
  29. HP does not ship the Athena widgets, and if you put your own
  30. in /usr/include/X11R4 you may be in trouble, since you are mixing
  31. HP's include files with. However, this has nothing to do with your
  32. problem which looks like a PATH definition problem.
  33. 1. Be sure to have /etc in your PATH (otherwise you can't find install)
  34. 2. Be sure to have $KHOROS_HOME/bin in you PATH
  35. I hope that helps.
  36. Konstantin
  37. ----------------------------------
  38.  
  39. To port khoros 1 patch 5 to HP-UX on an HP9000/s370, s400, s800, or s700
  40. the following steps were taken.
  41.  
  42. 1. Get the Xaw and Xmu libraries and include files 
  43.    from hpcvaaz.cv.hp.com:~ftp/pub/MitX11R4/libs.s300.Z (or libs.s800.Z
  44.    for the snakes) using anonymous ftp.
  45.  
  46.    As an alternative, you can also get the X11R5 libraries from
  47.    ~ftp/pub/MitX11R5 (same machine). This is probably the preferred
  48.    approach if you want to use X11 shared libraries.
  49.  
  50.    Uncompress and untar them into your favorite directory.
  51.  
  52.    NOTE: Don't mix those binaries with HP binaries in /usr/lib/X11R4
  53.    and the include files with include files in /usr/include/X11R4.
  54.    Unpredictable core dumbs may happen!
  55.    Instead use /usr/local/X11R4 or /usr/lib/X11R5 or whatever else
  56.    you like.
  57.  
  58.    (Ignore this step if you already have somehow the above
  59.    include files and libraries in your system.)
  60.  
  61. 2. Edit src/xvroutines/Lib/xvforms/Imakefile
  62.    Remove:
  63.    #define UnsharedObjs
  64.    UNSHAREDOBJS =\
  65.        init.o
  66.  
  67.   and include init.o with the other objects.
  68.  
  69. 3. Edit /khoros/repos/config/imake_conf/hp.cf
  70.   and /khoros/repos/config/imake_conf/Lib/hpLib.rules
  71.  
  72.   as shown in the diffs file below 
  73.   The changes fix the following problems:
  74.     a) Strip automatically the binaries (-s)
  75.     b) On the s700 solve the "too much defining" error message. (-Wp,..)
  76.     c) Include the appropriate Fortran libraries in the linking
  77.        of C code, since some khoros libraries use FORTRAN routines too.
  78.     d) Eliminate the -Dxxxx in f77 calls (with Shared Libraries).
  79.     e) Point to the correct place for the X11 Libraries
  80.     f) Install libraries with mode 555 (otherwise code with shared libraries
  81.        will not run)
  82.  
  83. 4. Depending on when you got your code you may want
  84.     a) get the fixed src/dspl/Lib/ldfilter.c routine
  85.       posted in the network. (4/9/92)
  86.     b) rm khoros/src/dspl/Lib/poly_yacc.c
  87.     (b) solves a linker problem on the s400.
  88.  
  89. 5. Run installit. Everything should compile with no problems.
  90.    After the compilation do
  91. ----------------------
  92.  
  93. 1. edit bin/kinstall_csh, and replace "mail -s" with "mailx -s"
  94. 2. You may want to edit bin/prnmanual
  95. (Even if you don't have troff or groff, but you have a postscript printer,
  96. you can still print the man pages. Only set up the printer command and
  97. always accept the default answers. It should print the existing xxxxx.ps files)
  98.  
  99. Konstantinos Konstantinides
  100.  
  101. Hewlett-Packard Laboratories
  102. P.O. Box 10490
  103. Palo Alto, CA 94303
  104. tel: (415) 857-4086
  105. e-mail: kk@hpkronos.hpl.hp.com
  106.  
  107. ------------------------Diffs----------------------------------------
  108. *** hp.cf.orig    Fri Apr 10 10:44:33 1992
  109. --- hp.cf    Fri Apr 10 10:44:33 1992
  110. ***************
  111. *** 7,15 ****
  112.    */
  113.   
  114.   
  115. ! #define OSName                 HP-UX 8.05
  116.   #define OSMajorVersion         8
  117. ! #define OSMinorVersion         5
  118.   
  119.   #define SystemV                YES
  120.   
  121. --- 7,15 ----
  122.    */
  123.   
  124.   
  125. ! #define OSName                 HP-UX 8.07
  126.   #define OSMajorVersion         8
  127. ! #define OSMinorVersion         7
  128.   
  129.   #define SystemV                YES
  130.   
  131. ***************
  132. *** 76,87 ****
  133.   #define InstallCmd $(SCRIPTSRC)/bsdinst.sh
  134.   #define BaseName /bin/basename
  135.   
  136.   #ifdef hp9000s800
  137. ! #   define StandardDefines        -DSYSV
  138.   #   define OptimizedCDebugFlags   +O1
  139.   #else
  140.   #  if OSMajorVersion == 8
  141. ! #      define StandardDefines        -DSYSV
  142.   #  else
  143.   #       define StandardDefines    -Wc,-Nd4000,-Ns4300,-Ne700,-Np300 -DSYSV -D_BSD -Drindex=strrchr -Dindex=strchr
  144.   #  endif
  145. --- 76,88 ----
  146.   #define InstallCmd $(SCRIPTSRC)/bsdinst.sh
  147.   #define BaseName /bin/basename
  148.   
  149. + #define InstLibFlags -m 0555
  150.   #ifdef hp9000s800
  151. ! #   define StandardDefines        -s -Wp,-H512000 -DSYSV
  152.   #   define OptimizedCDebugFlags   +O1
  153.   #else
  154.   #  if OSMajorVersion == 8
  155. ! #  define StandardDefines         -s -DSYSV
  156.   #  else
  157.   #       define StandardDefines    -Wc,-Nd4000,-Ns4300,-Ne700,-Np300 -DSYSV -D_BSD -Drindex=strrchr -Dindex=strchr
  158.   #  endif
  159. ***************
  160. *** 89,98 ****
  161.   
  162.   #if OSMajorVersion == 8
  163.   #  if defined (hp9000s300) || defined (hp9000s400)
  164. ! #    define SysLibs -lBSD -lmalloc -lm -ll
  165.   #    define ForSysLibs -lFext -lF77 -lI77
  166.   #  else
  167. ! #    define SysLibs -lBSD -lmalloc -lm -ll
  168.   #    define ForSysLibs -lcl -lfsys
  169.   #  endif
  170.   #else
  171. --- 90,99 ----
  172.   
  173.   #if OSMajorVersion == 8
  174.   #  if defined (hp9000s300) || defined (hp9000s400)
  175. ! #    define SysLibs -lBSD -lmalloc -lm -ll -lIO77
  176.   #    define ForSysLibs -lFext -lF77 -lI77
  177.   #  else
  178. ! #    define SysLibs -lBSD -lmalloc -lm -ll -lcl
  179.   #    define ForSysLibs -lcl -lfsys
  180.   #  endif
  181.   #else
  182. ***************
  183. *** 100,106 ****
  184. --- 101,114 ----
  185.   #   define ForSysLibs -lFext -lF77 -lI77
  186.   #endif
  187.   
  188. + #define XLibDir  /usr/local/x11r4/lib.s300
  189. + #define XIncludes -I/usr/local/x11r4
  190.   /*
  191. + #define XLibDir  /usr/lib/X11R5
  192. + #define XIncludes -I/usr/include/X11R5
  193. + */
  194. + /*
  195.    * The Shared libaries for HP may not be complete.  We do not
  196.    * have an HP. This Lib/hpLib.rules is a guess at how hp
  197.    * shared libs should be made. Please mail and changes
  198. ***************
  199. *** 108,114 ****
  200.    * update for the next version. 
  201.    */
  202.   
  203. ! #define HasSharedLibraries NO
  204.   
  205.   #if HasSharedLibraries
  206.   #  define SharedLibRev 1.1                /* Use Khoros revision number */
  207. --- 116,122 ----
  208.    * update for the next version. 
  209.    */
  210.   
  211. ! #define HasSharedLibraries YES
  212.   
  213.   #if HasSharedLibraries
  214.   #  define SharedLibRev 1.1                /* Use Khoros revision number */
  215. *** Lib/hpLib.rules.or    Mon Apr  6 13:38:05 1992
  216. --- Lib/hpLib.rules    Mon Apr  6 13:38:05 1992
  217. ***************
  218. *** 73,81 ****
  219.                                       @@\
  220.   .f.o:                                    @@\
  221.       $(RM) $@ shared/$@                        @@\
  222. !     $(FC) -c $(SHAREDCODEDEF) $(SHLIBDEF) $(FLIBFLAGS) $*.f        @@\
  223.       $(MV) $*.o shared/$*.o                        @@\
  224. !     $(FC) -c $(SHLIBDEF) $(FLIBFLAGS) $*.f                @@\
  225.                                                                           @@\
  226.   clean::                                    @@\
  227.       -@if [ -d shared ]; then echo " $(RM) shared/?*.o"; \        @@\
  228. --- 73,81 ----
  229.                                       @@\
  230.   .f.o:                                    @@\
  231.       $(RM) $@ shared/$@                        @@\
  232. !     $(FC) -c $(FLIBFLAGS) $*.f        @@\
  233.       $(MV) $*.o shared/$*.o                        @@\
  234. !     $(FC) -c $(FLIBFLAGS) $*.f                @@\
  235.                                                                           @@\
  236.   clean::                                    @@\
  237.       -@if [ -d shared ]; then echo " $(RM) shared/?*.o"; \        @@\
  238.