home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / bugs / 2bsd / 88 next >
Encoding:
Text File  |  1992-09-09  |  1.4 KB  |  45 lines

  1. Newsgroups: comp.bugs.2bsd
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!europa.asd.contel.com!awds.imsd.contel.com!wlbr!sms
  3. From: sms@WLV.IIPO.GTEGSC.COM (Steven M. Schultz)
  4. Subject: tftp symbol clash with resolver routines (#79)
  5. Message-ID: <1992Sep10.035619.12736@wlbr.iipo.gtegsc.com>
  6. Sender: news@wlbr.iipo.gtegsc.com (news)
  7. Nntp-Posting-Host: wlv.iipo.gtegsc.com
  8. Organization: GTE Government Systems
  9. Date: Thu, 10 Sep 92 03:56:19 GMT
  10. Lines: 33
  11.  
  12. Subject: tftp symbol clash with resolver routines (#79)
  13. Index:    ucb/tftp/main.c 2.11BSD
  14.  
  15. Description:
  16.     The symbol 'connected' conflicts with the external routine "connect(2)"
  17.     called by the resolver routines.
  18.  
  19. Repeat-By:
  20.     Build 'tftp' with the resolver routines rather than the host file
  21.     routines.  Observe the crash as the first call to 'connect(2)' goes
  22.     to 'connected's address instead.
  23.  
  24. Fix:
  25.     Apply the following patch and recompile/install 'tftp'.
  26.  
  27.     Yes, i _know_ the correct solution is longer names in the compiler,
  28.     assembler, linker, archiver, etc, etc.  For now this will have to do.
  29.  
  30. =======================================cut here================================
  31. *** /usr/src/ucb/tftp/main.c.old    Wed May 15 21:08:00 1991
  32. --- /usr/src/ucb/tftp/main.c    Wed Sep  9 10:22:44 1992
  33. ***************
  34. *** 52,57 ****
  35. --- 52,60 ----
  36.   short   port;
  37.   int    trace;
  38.   int    verbose;
  39. + #ifdef    pdp11
  40. + #define    connected Xconnected
  41. + #endif
  42.   int    connected;
  43.   char    mode[32];
  44.   char    line[200];
  45.