--- Konstantinos Margaritis <[EMAIL PROTECTED]> wrote:
> gcc ... -c remote.c
> remote.c: In function `ExConnectTo':
> 

What is the error that you are getting (the next few lines in the output). 
That would help diagnose the problem.

> I tried setting DXRSH, RSH, before configure, trying --with-rsh=$(shell
> ssh), but to no success. It seems that RSH is #defined in <dx/arch.h>
> which is included in <dx/dx.h>, which is included in remote.c, but for
> some reason the definition is not valid (either never defined, or
> undefined somewhere else).
> Any ideas?

What value are you specifying for --with-rsh? Does your build work if you don't
use --with-rsh?

Without seeing the error message, it's unclear whether RSH in your case was
undefined, or defined to something that wouldn't compile (my guess is the
latter).

Do a:

    find . -type f | xargs egrep '# *(undef|define) *RSH'

in your post-configure tree and browse the results.

Looking at a post-configure 5/11 CVS tree here on IRIX, I see these RSH refs: 

./include/dx/arch.h:#undef RSH
./include/dx/arch.h:#define RSH  "rsh"
./include/dxconfig.h:#define RSH "/usr/local/bin/ssh"

as well as those in configure, acconfig.h, and dxconfig.h.in, but these latter
three AFAIK aren't included in source files.  Note that dxconfig.h's value is
what was given to configure (e.g. --with-rsh=/usr/local/bin/ssh).

So given that arch.h or dxconfig.h is included, and a valid C string value
(without quotes) was given to --with-rsh, I'd think your source should compile.
 
Note that --with-rsh=\"/bin/ssh\" won't compile -- drop the quotes.

Randall


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to