In regard to: Re: ssh2 & AIX, Vicki Lonell Hain said (at 2:49pm on Apr 24,...:

>     I brought the ssh 2.1.0 version back over.  Ran configure.  Edited all
>(!) the Makefile files and the sshconf.h file to add the reference to
>XAUTH path.  The compile successfully ran past the xauth this time, but now it
>bombs on this:
>===============================
>      cc  -I. -I. -I../.. -I.            -I../.. -I../..
>-I../../include -I./../../include -DETCDIR=\"/etc\"
>-DSSH_BINDIR=\"/usr/local/bin\" -DHAVE_CONFIG_H -I. -I. -I../..  -g  -c
>sshfilecopy.c
>"sshfilecopy.h", line 127.1: 1506-120 (S) Function cannot return a const
>qualified type.
>"sshfilecopy.c", line 138.25: 1506-120 (S) Function cannot return a const
>qualified type.
>make: 1254-004 The error code from the last command is 1.
>========
>whew.  I'm getting tired of this.  You must be getting tired of it too.
>But if you have any ideas about what I can do with this compile error, that
>would be great.
>many thanks!  vicki

Vicki-

The compiler is objecting to a function being declared

const <returntype> functionname( ... )

I'm not sure if the compiler is right in objecting to the const return
type -- K&R 2e is somewhat vague on the issue.  I can say that the IBM compiler
is the only one I've yet to see object to that.  That doesn't mean it's
wrong, just that so far it stands alone...

In any case, you should be able to safely edit sshfilecopy.h and sshfilecopy.c
and just remove the `const' from the two lines in question.  That should
allow you to proceed.

Tim
-- 
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

Reply via email to