Bug 640 - Error when trying to run make on openssh-3.7p1 with AIX 4.3.3
Summary: Error when trying to run make on openssh-3.7p1 with AIX 4.3.3
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: PPC AIX
: P2 major
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 04:10 AEST by Alan Vidmar
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Only include audit.h when needed for 4-arg loginfailed (578 bytes, patch)
2003-09-17 09:11 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Vidmar 2003-09-17 04:10:10 AEST
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.
Comment 1 Darren Tucker 2003-09-17 09:11:27 AEST
Created attachment 401 [details]
Only include audit.h when needed for 4-arg loginfailed

Please try the attached patch.
Comment 2 Peter Heuchert 2003-09-18 21:08:08 AEST
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
Comment 3 Alan Vidmar 2003-09-19 01:11:34 AEST
The patch to port-aix.h did in fact fix the problem.
Thanks,
Alan
Comment 4 Darren Tucker 2003-09-19 07:39:55 AEST
Please don't close the bug until the fix is in the tree.
Comment 5 Darren Tucker 2003-09-19 20:47:50 AEST
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.
Comment 6 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED