openssh on AIX v4.3.3 with native compiler

edgy at us.ibm.com edgy at us.ibm.com
Fri Dec 10 21:04:14 EST 1999


Thanks for your help,

     That patch fixed the first error  I encountered.. Here is another
perhaps
you might have a suggestion. It is having problems with two extern
declarations
with different types and same name. Sorry to keep posting but I just
started looking
at this source tree and I am not comfortable making changes.. There are
much better
people to decide what to change then I :)

  cc -g -I/usr/local/include -DETCDIR=\"//etc\" -DSSH_PROGRAM=\"//bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"//libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c
channels.c
"channels.c", line 390.67: 1506-280 (W) Function argument assignment
between types "unsigned long*" and "int*" is not allowed.
"channels.c", line 418.67: 1506-280 (W) Function argument assignment
between types "unsigned long*" and "int*" is not allowed.
"channels.c", line 448.67: 1506-280 (W) Function argument assignment
between types "unsigned long*" and "int*" is not allowed.
"channels.c", line 1014.34: 1506-280 (W) Function argument assignment
between types "unsigned int*" and "int*" is not allowed.
"channels.c", line 1021.55: 1506-280 (W) Function argument assignment
between types "unsigned int*" and "int*" is not allowed.
"channels.c", line 1121.30: 1506-343 (S) Redeclaration of options differs
from previous declaration on line 884 of "channels.c".
"channels.c", line 1121.30: 1506-382 (I) The type "struct {...}" of
identifier options differs from previous type "struct {...}".
"channels.c", line 1230.49: 1506-280 (W) Function argument assignment
between types "unsigned int*" and "int*" is not allowed.
make: 1254-004 The error code from the last command is 1.

void
channel_request_local_forwarding(u_short port, const char *host,
                                 u_short host_port)
{
        int ch, sock, on = 1;
        struct sockaddr_in sin;
        extern Options options;

and the other is

char *
x11_create_display_inet(int screen_number)
{
        extern ServerOptions options;
        int display_number, sock;


Just wondering if the warnings could be fixed...

"channels.c", line 390.67: 1506-280 (W) Function argument assignment
between types "unsigned long*" and "int*" is not allowed.
      newsock = accept(ch->sock, &addr, &addrlen);

addrlen is declared as int but my docs say...

#include <sys/types.h>
#include <sys/socket.h>

int accept (Socket, Address, AddressLength)
int Socket;
struct sockaddr *Address;
size_t *AddressLength;

EdGy







More information about the openssh-unix-dev mailing list