home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / khoros / 3327 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  7.4 KB

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