Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcsun!corton!ircam!fingerhu From: fingerhu@ircam.fr (Michel Fingerhut) Newsgroups: comp.sys.dec Subject: Re: Ultrix 4.1 rexec-problems Keywords: rexec, libraries Message-ID: <1991Jun20.073150.15089@ircam.fr> Date: 20 Jun 91 07:31:50 GMT References: Distribution: comp Organization: IRCAM, Paris (France) Lines: 25 Michael Portz complains about unresolved references to macnum, proxy, macros and macbuf when using the rexec library call. These are variables which are used by ruserpass (as called from rexec) in order to execute macros and proxy commands which might be found in a .netrc file as needed by the ftp command in auto-login mode. Actually, 4.3 has two different ruserpass sources, one specific for ftp, which contains this code together with a .h defining these (and other) global variables, while the one in their libc does not contain it nor those variables. I guess ultrix used the same routine. Since no utility actually uses rexec, I suppose they never were aware of the missing variables. Anyway, I suggest you include the following lines in your code: int proxy; /* proxy server connection active */ int macnum; /* number of defined macros */ struct macel { char mac_name[9]; /* macro name */ char *mac_start; /* start of macro in macbuf */ char *mac_end; /* end of macro in macbuf */ }; char macbuf[4096]; struct macel macros[16]; Michael Fingerhut