home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0385.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  640 b   |  29 lines

  1.  
  2. If I try to cfasl something with:
  3.  
  4.     (cfasl 'foo.o '_foo 'foo "whatever")
  5.  
  6. I get a ld line that looks like:
  7.  
  8.     ... /tmp/TMPXYZZY (null) -lc
  9.  
  10. that is, a null pointer is being passed to sprintf() and it is putting
  11. '(null)' out (and the sh invoked by system() barks and the whole thing fails.)
  12.  
  13. A workaround is to add a null string at the end of the arglist
  14.  
  15.     (cfasl 'foo.o '_foo 'foo "whatever" "")
  16.  
  17. A fix is to go into the file franz/ffasl.c and change: (in function Lcfasl)
  18.  
  19.     if(work==nil)
  20.         largs = 0 ;
  21. to
  22.     if(work==nil)
  23.         largs = "" ;
  24. I believe (trying it now, takes a while to compile this beast, no?)
  25.  
  26.     -Barry Shein, Boston University
  27.  
  28.  
  29.