From Darrell_Hamilton@xxxxxxx.com Thu Feb 14 08:35:51 2002 Date: Thu, 14 Feb 2002 11:35:22 -0500 From: "Darrell Hamilton" Subject: rtelnet on Linux (Red Hat 7.1) I want to thank you for your website and also pass along some more = information. I got a lot of very useful information from your http://www.ofb.net/~jheiss= /annex/ page. The link especially was helpful. I had been on the Nortel = site a couple of times and could not find the location of the download = information. =20 What I did find, though, was that the LINUX/rtelnet binary did not work = for an out-of-the-box Red Hat 7.1 install. I also found that the = make.config file for the tool was not quite right. Attached are my notes = for getting the rtelnet piece to compile in a more modern Linux. I did = not go to the trouble of changing the code for distribution. I wasn't = sure that if I did that I would be able to get Nortel to post it. =20 Darrell Hamilton email: Darrell_Hamilton@xxxxxxx.com 336-436-2697 --=_ABF6F173.1F7E3213 Content-Type: text/plain Content-Disposition: attachment; filename="rtelnetNotes.txt" Notes on compiling rtelnet on Linux (Red Hat 7.1) These are the extra steps that I ended up having to make in order to get the rtelnet code to compile and link. I did not attempt to get the other modules to compile since I only needed the one utility for my purposes. 1. In the ./src/inc directory, delete the empty files: sgtty.h and source.h. They get in the way of the compiler finding the correct files. 2. In the ./src/make.config file (after building it with the install command) add the following compiler and link directives: * In CFLAGS add -D_XOPEN_SOURCE -D_BSD_SOURCE -I/usr/lib/bcc/include/bsd * In CFLAGS modify -m486 to -mcpu=i486 * In CFLAGS delete -traditional * In LIBFLAGS add -lbsd 3. In the ./src/newrtelnet directory: * copy machdep.sun to machdep.lin * link machdep.c to machdep.lin 4. Make the following edits to ./src/newrtelnet/machdep.lin * Change to (filio is a sun only header file) * Change all instances of setpgrp to setpgid 5. Make the following edits to ./src/libannex/api_if.c (fd_set is now a typedef) * Replace the line "struct fd_set fdset;" with "fd_set fdset;" 6. Make the following edits to ./src/netadm/rpc.c (to avoid a bsd_ioctl link error) * Add to the end of the file: int bsd_ioctl (int d, unsigned long request, char *argp){ ioctl (d, request, argp); } --=_ABF6F173.1F7E3213--