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