home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11700 < prev    next >
Encoding:
Text File  |  1993-01-22  |  3.9 KB  |  186 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!sh.wide!wnoc-tyo-news!virgil!ccgwy!ccgwy!hideaki
  3. From: hideaki@berlioz.ee.uec.ac.jp (Hideaki Tsuchiya)
  4. Subject: Re: [386bsd] still trying to compile rayshade
  5. In-Reply-To: dfox@quack.sac.ca.us's message of 19 Jan 93 20:13:57 GMT
  6. Message-ID: <HIDEAKI.93Jan22175031@berlioz.ee.uec.ac.jp>
  7. Sender: news@ccgwy.cc.uec.ac.jp (Internet news)
  8. Nntp-Posting-Host: berlioz.ee.uec.ac.jp
  9. Organization: University of Electro-Communications, Chofu, Tokyo, JAPAN
  10. References: <fYaZRtt@quack.sac.ca.us>
  11. Date: Fri, 22 Jan 1993 08:50:31 GMT
  12. Lines: 172
  13.  
  14.  
  15. Here is a patch to rayshade 4.0 patchlevel 6 for installation under
  16. 386BSD0.1 and XFree86.
  17.  
  18. Main problem is that /usr/share/misc/lex.skel defines `yywrap()' and
  19. don't declare `int yylineno'.
  20.  
  21. This patch has solved other small problems. Hopefully other people
  22. that have ported rayshade 4.0 will correct the error I've made or
  23. overlooked.
  24.  
  25.   NOTE:
  26.     It isn't a good idea to run rayshade under no-fpu machines, I
  27.     think. Too slow!
  28.  
  29. *** ./raypaint/Makefile.SH.orig    Fri Jan 22 14:42:52 1993
  30. --- ./raypaint/Makefile.SH    Fri Jan 22 15:53:23 1993
  31. ***************
  32. *** 55,70 ****
  33.   
  34.   #
  35.   # If using X11, use:
  36. ! #GRAPHICSLIB = -lX11
  37.   
  38.   #
  39.   # If you are using GL, use:
  40. ! GRAPHICSLIB = -lgl_s
  41.   
  42.   LIBRAY = $(LIBRAYDIR)/libray.a
  43.   LIBSHADE = $(LIBSHADEDIR)/libshade.a
  44.   
  45. ! CFLAGS = $(CCFLAGS) $(URTINC) $(INCLUDE) $(OPTIMIZE) -DSHARED_EDGES
  46.   SHELL = /bin/sh
  47.   
  48.   #
  49. --- 55,70 ----
  50.   
  51.   #
  52.   # If using X11, use:
  53. ! GRAPHICSLIB = -L/usr/X386/lib -lX11
  54.   
  55.   #
  56.   # If you are using GL, use:
  57. ! #GRAPHICSLIB = -lgl_s
  58.   
  59.   LIBRAY = $(LIBRAYDIR)/libray.a
  60.   LIBSHADE = $(LIBSHADEDIR)/libshade.a
  61.   
  62. ! CFLAGS = $(CCFLAGS) $(URTINC) $(INCLUDE) $(OPTIMIZE) -DSHARED_EDGES -I/usr/X386/include
  63.   SHELL = /bin/sh
  64.   
  65.   #
  66. ***************
  67. *** 73,79 ****
  68.   #
  69.   LIBS = $(LIBSHADE) $(LIBRAY) $(URTLIB)
  70.   
  71. ! DRIVE_C =    main.c graphics.c render.c version.c
  72.   
  73.   DRIVE_O = $(DRIVE_C:.c=.o)
  74.   
  75. --- 73,79 ----
  76.   #
  77.   LIBS = $(LIBSHADE) $(LIBRAY) $(URTLIB)
  78.   
  79. ! DRIVE_C =    main.c xgraphics.c render.c version.c
  80.   
  81.   DRIVE_O = $(DRIVE_C:.c=.o)
  82.   
  83. *** ./libshade/lex.l.orig    Fri Jan 22 14:46:37 1993
  84. --- ./libshade/lex.l    Fri Jan 22 15:12:58 1993
  85. ***************
  86. *** 28,33 ****
  87. --- 28,34 ----
  88.   #include "symtab.h"
  89.   #include "y.tab.h"
  90.   extern char *strsave();
  91. + int  yylineno=1;
  92.   %}
  93.   alpha    [a-zA-Z]
  94.   special    [\.\_-]
  95. ***************
  96. *** 159,165 ****
  97.   .            return yytext[0];
  98.   
  99.   %%
  100. ! yywrap() {return 1;}
  101.   /*
  102.    * Skip over comments.
  103.    */
  104. --- 160,166 ----
  105.   .            return yytext[0];
  106.   
  107.   %%
  108. ! /* yywrap() {return 1;} */
  109.   /*
  110.    * Skip over comments.
  111.    */
  112. *** ./etc/rsconvert/lex.l.orig    Fri Jan 22 14:46:37 1993
  113. --- ./etc/rsconvert/lex.l    Fri Jan 22 15:12:24 1993
  114. ***************
  115. *** 21,26 ****
  116. --- 21,27 ----
  117.   #endif
  118.   #include "libcommon/common.h"
  119.   #include "y.tab.h"
  120. + int  yylineno=1;
  121.   %}
  122.   alpha    [a-zA-Z]
  123.   special    [\.\_-]
  124. ***************
  125. *** 97,103 ****
  126.   .            {return yytext[0];}
  127.   
  128.   %%
  129. ! yywrap() {return(1);}
  130.   /*
  131.    * Skip over comments.
  132.    */
  133. --- 98,104 ----
  134.   .            {return yytext[0];}
  135.   
  136.   %%
  137. ! /* yywrap() {return(1);} */
  138.   /*
  139.    * Skip over comments.
  140.    */
  141. *** ./Configure.orig    Fri Jan 22 14:46:33 1993
  142. --- ./Configure    Fri Jan 22 16:08:19 1993
  143. ***************
  144. *** 172,181 ****
  145.   fi
  146.   
  147.   if ls blurfl >/dev/null 2>&1; then
  148. !     if awk '' blurfl >/dev/null 2>&1; then
  149.           check='cat'
  150.       else
  151. !         check='awk ""'
  152.       fi
  153.   else
  154.       check='ls'
  155. --- 172,181 ----
  156.   fi
  157.   
  158.   if ls blurfl >/dev/null 2>&1; then
  159. !     if awk '{}' blurfl >/dev/null 2>&1; then
  160.           check='cat'
  161.       else
  162. !         check='awk "{}"'
  163.       fi
  164.   else
  165.       check='ls'
  166. ***************
  167. *** 1235,1241 ****
  168.   '');;
  169.   *)  set X $cppflags
  170.       cppflags=''
  171. !     for flag do
  172.           case $flag in
  173.           -D*|-I*) cppflags="$cppflags $flag";;
  174.           esac
  175. --- 1235,1241 ----
  176.   '');;
  177.   *)  set X $cppflags
  178.       cppflags=''
  179. !     for flag; do
  180.           case $flag in
  181.           -D*|-I*) cppflags="$cppflags $flag";;
  182.           esac
  183. --
  184. University of Electro-Communications, Japan.
  185. Hideaki Tsuchiya (hideaki@strauss.ee.uec.ac.jp)
  186.