*BSD News Article 37835


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!spool.mu.edu!news.clark.edu!netnews.nwnet.net!news.u.washington.edu!buckwild
From: buckwild@u.washington.edu (Mark Tamola)
Newsgroups: comp.os.386bsd.apps
Subject: How to recompile telnet, etc. for use with a "term" connection?
Date: 13 Nov 1994 11:02:51 GMT
Organization: University of Washington
Lines: 41
Message-ID: <3a4ror$9de@nntp1.u.washington.edu>
NNTP-Posting-Host: saul4.u.washington.edu

Dear sirs,

I know that instructions for doing this are laid out within the README's
of the distribution, but some small details about things are still a
little unclear to me.  Anyway, my dilemma is as follows:

(By the way, I am using NetBSD-1.0_BETA with term-2.2.5...) 

I just recompiled telnet on my system, just like the README.porting
file told me to.  I added -include /usr/local/include/termnet.h to
the CFLAGS, and added -ltermnet before any other libraries to link
it to.
 
The compiling went without any errors or warnings.  I then renamed the 
resulting binary as "telnet.term", and tried it out.  I did a "./telnet.term
saul4.u.washington.edu", and it would respond with "Trying 131.252.10
.101...", and it would just sit there for about two minutes, finally
exiting saying "telnet: Unable to connect to remote host: Bad file
descriptor".  Thus, it got the right IP address, but just couldn't
connect due to this error.  I then tried other hosts, and it did get
their IP addresses correct, but it would still exit with the same
error.  I then tried "telnet.term" with the IP addresses directly, but
still no go.

I know it is accessing the term line correctly (I think), but I feel that
I missed to configure something correctly.  Is there anything that I
missed?  For example, do I also have to edit some of the system network
config file like /etc/hosts, or netstart or anything like that?  What
about any other commands to set up the network?  As you can tell, I am
not that experienced in setting up the network part of NetBSD, but would
like to learn.  And yes, I have read the sysadmin book by Nemeth, Snyder,
and Seebass. 

Any help/suggestions/tips would be enormously appreciated.

Sincerely,

Mark Steven de Sagun Tamola
buckwild@u.washington.edu