home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0045 < prev    next >
Encoding:
Text File  |  1981-12-03  |  783 b   |  22 lines

  1. Autzoo.1180
  2. net.v7bugs
  3. utzoo!henry
  4. Thu Dec  3 18:43:14 1981
  5. ranlib bugs
  6. The distributed ranlib(1) complains about library members that look
  7. like object modules but have a 0-length symbol table.  There is one
  8. circumstance where a 0-length symbol table is legitimate:  in the
  9. presence of #ifdef's and the like, it is entirely possible to have
  10. a null object module (no text, no data, no bss, no symbol table).
  11. To fix ranlib not to complain about such things, change the fprintf
  12. complaining about "no name list" in about line 60 to:
  13.  
  14.     if (exp.a_text!=0 || exp.a_data!=0 || exp.a_bss!=0)
  15.         fprintf...
  16.  
  17. This should be a straight substitution, with the surrounding if and
  18. continue left unchanged.
  19.  
  20. Also, two of ranlib's error messages identify it as "nm";  the fix is
  21. "g/nm:/s//ranlib:/p".
  22.