Environment: OS: AIX 4.3.3.11 GCC:3.3.1 Make:3.80 Openssh:3.7p1 Openssl:0.9.7b Prngd:0.9.27 Notes: Openssh 3.7p1 does work with AIX 5.1 and all of the same components ======================== In file included from /usr/include/sys/user.h:77, from /usr/include/sys/audit.h:38, from ../openbsd-compat/port-aix.h:35, from ../openbsd-compat/openbsd-compat.h:166, from ../includes.h:173, from bsd-arc4random.c:25: /usr/include/sys/proc.h:203: error: parse error before "crid_t" /usr/include/sys/proc.h:212: error: parse error before "p_class" /usr/include/sys/proc.h:355: error: parse error before '}' token make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2.
Created attachment 401 [details] Only include audit.h when needed for 4-arg loginfailed Please try the attached patch.
Got a similar compile problem with AIX 5.1 and gcc 2.9 In file included from ../openbsd-compat/port-aix.h:35, from ../openbsd-compat/openbsd-compat.h:166, from ../includes.h:173, from bsd-arc4random.c:25: /usr/include/sys/audit.h:271: parse error before `0200' /usr/include/sys/audit.h:286: parse error before `}' make: 1254-004 The error code from the last command is 1. The patch did solve the problem
The patch to port-aix.h did in fact fix the problem. Thanks, Alan
Please don't close the bug until the fix is in the tree.
The actual cause is spaces from after "\" in the AIX system headers audit.h and proc.h, which gcc 2.x doesn't like. Note that the patch #401 will fix the problem on AIX < 5.2 by not including those headers. If you need to build on 5.2 I suggest using a newer gcc, but if you can't then remove the trailing spaces from: /usr/include/sys/audit.h lines 287 and 293 /usr/include/sys/proc.h lines 729 and 730 Anyway, have committed patch to HEAD and the 3.7 branch.
Mass change of RESOLVED bugs to CLOSED