Ticket #17 (closed defect)

Opened 11 years ago

Last modified 10 years ago

session.c fails to compile on AIX5.2

Reported by: kpirkle Owned by: bagder
Priority: normal Milestone:
Component: Version:
Keywords: Cc: kpirkle, bagder
Blocked By: Blocks:

Description

All the other components prior to this one compile OK:

gcc -o session.o session.c -c -g -O2

-I/opt/freeware/include -I/usr/include -Wall
-I../include/ -fPIC
session.c: In function `libssh2_poll':
session.c:757: error: structure has no member named
`rtnevents'
session.c:761: error: structure has no member named
`reqevents'
session.c:834: error: structure has no member named
`reqevents'
session.c:834: error: structure has no member named
`rtnevents'
session.c:837: error: structure has no member named
`reqevents'
session.c:838: error: structure has no member named
`rtnevents'
session.c:839: error: structure has no member named
`rtnevents'
session.c:841: error: structure has no member named
`reqevents'
session.c:842: error: structure has no member named
`rtnevents'
session.c:843: error: structure has no member named
`rtnevents'
session.c:845: error: structure has no member named
`reqevents'
session.c:846: error: structure has no member named
`rtnevents'
session.c:847: error: structure has no member named
`rtnevents'
session.c:850: error: structure has no member named
`rtnevents'
session.c:853: error: structure has no member named
`rtnevents'
session.c:857: error: structure has no member named
`reqevents'
session.c:858: error: structure has no member named
`rtnevents'
session.c:859: error: structure has no member named
`rtnevents'
session.c:862: error: structure has no member named
`rtnevents'
session.c:867: error: structure has no member named
`rtnevents'
session.c:901: error: structure has no member named
`rtnevents'
session.c:903: error: structure has no member named
`rtnevents'
session.c:913: error: structure has no member named
`rtnevents'
session.c:923: error: structure has no member named
`rtnevents'
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.

Change History

comment:1 Changed 11 years ago by anonymous

Logged In: NO

Change include/libssh2.h:
Lines 175 and 176 to look like this:

unsigned long rtnevents; /* Requested Events */
unsigned long reqevents; /* Returned Events */

Worked for me after that.

AJ (ajpahl@…)

comment:2 Changed 10 years ago by bagder

is this still a problem in current CVS?

comment:3 Changed 10 years ago by bagder

no response

Note: See TracTickets for help on using tickets.