Re: [exim] Problem compiling exim on AIX

Top Page
Delete this message
Reply to this message
Author: Andrew.Stringer
Date:  
To: exim-users
Subject: Re: [exim] Problem compiling exim on AIX
Hi, thanks for the "ar" link, I have set OBJECT_MODE=32_64 (in fact I have
also tried to set it to 64 bits, but with the same result as below).
Unfortunately, I am still having a problem.

I thought parse errors were synax related, but I find it hard to believe
that either aix or exim would have these sorts of errors.

Regards,
Andrew


bash-3.00# export OBJECT_MODE=32_64
bash-3.00# make
`Makefile' is up to date.

Target "all" is up to date.

gcc -DCOMPILE_UTILITY spool_in.c
In file included from /usr/include/sys/cred.h:49,
                 from /usr/include/sys/file.h:32,
                 from exim.h:101,
                 from spool_in.c:14:
/usr/include/sys/secattr.h:49: error: parse error before 'rid_t'
/usr/include/sys/secattr.h:60: error: parse error before '}' token
/usr/include/sys/secattr.h:65: error: parse error before 'authnum_t'
/usr/include/sys/secattr.h:71: error: parse error before '}' token
/usr/include/sys/secattr.h:106: error: field 'sc_attr' has incomplete type
In file included from /usr/include/sys/file.h:32,
                 from exim.h:101,
                 from spool_in.c:14:
/usr/include/sys/cred.h:331: error: parse error before 'rid_t'
/usr/include/sys/cred.h:346: error: parse error before '}' token
In file included from /usr/include/fcntl.h:188,
                 from /usr/include/sys/file.h:34,
                 from exim.h:101,
                 from spool_in.c:14:
/usr/include/unistd.h:915: error: parse error before '[' token
/usr/include/unistd.h:916: error: parse error before 'rid_t'
In file included from /usr/include/sys/ptrace.h:28,
                 from /usr/include/sys/proc.h:48,
                 from /usr/include/sys/aacct.h:22,
                 from /usr/include/sys/vfs.h:30,
                 from exim.h:190,
                 from spool_in.c:14:
/usr/include/sys/thread.h:877: error: parse error before 'cred_ext_t'
/usr/include/sys/thread.h:878: error: conflicting types for 'reserved'
/usr/include/sys/secattr.h:58: error: previous declaration of 'reserved' 
was here
/usr/include/sys/thread.h:879: error: parse error before '}' token
In file included from /usr/include/sys/vfs.h:31,
                 from exim.h:190,
                 from spool_in.c:14:
/usr/include/sys/ras.h:392: error: parse error before 'eye_catch8b_t'
/usr/include/sys/ras.h:396: error: parse error before '}' token
/usr/include/sys/ras.h:733: error: parse error before 'eye_catch4b_t'
/usr/include/sys/ras.h:739: error: parse error before '}' token
/usr/include/sys/ras.h:746: error: parse error before '*' token
In file included from /usr/include/net/if.h:148,
                 from exim.h:247,
                 from spool_in.c:14:
/usr/include/net/route.h:293: error: parse error before 'eye_catch8b_t'
/usr/include/net/route.h:295: 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.


Stop.
bash-3.00#



Tony Finch <dot@???>
Sent by: Tony Finch <fanf2@???>
03/02/2008 09:36 PM
Please respond to
exim-users@???


To

Andrew.Stringer@???
cc
exim-users@???




Subject
Re: [exim] Problem compiling exim on AIX





On Fri, 29 Feb 2008, Andrew.Stringer@??? wrote:
>
> If anyone can shed some light on the AIX side, this would be most

helpful.

You seem to have two different problems, because the Exim one is related
to library support, and the Nano one is a parse error from GCC. Exim comes
with its own copy of PCRE, so the RPM is irrelevant.

AIX has unusual non-ELF libraries, but I'm surprised that they managed to
break Exim's simple usage of ar - or perhaps it's just that your
installation of gcc has a different idea of the default to the native
tools. Anyway, have a look at the description of the OBJECT_MODE
environment variable in the ar man page. If you set it correctly you might
be able to get Exim to build...

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/ar.htm

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}



***********************************************************************
The information contained within this e-mail (and any attachment) sent by Service Birmingham Ltd. is confidential and may be legally privileged. It is intended only for the named recipient or entity to whom it is addressed. If you are not the intended recipient, please notify the sender and delete the e-mail immediately. Unauthorised access, use, disclosure, storage or copying is not permitted and may be unlawful. Any e-mail including its content may be monitored and used by Service Birmingham Ltd. for reasons of security and for monitoring internal compliance with Security Policy. E-mail blocking software will also be used. Any views or opinions expressed are solely those of the originator and do not necessarily represent those of Service Birmingham Ltd.

Although Service Birmingham Ltd. has made every reasonable effort to ensure that this message and any attachments contain no viruses and have not been intercepted or amended, it can not make any assurances to this effect.

Service Birmingham Ltd, Registered in England & Wales under Company No: 05660977???????
Registered Office: Units 2&3 B1, 50 Summer Hill Road, Birmingham, B1 3BZ.
***********************************************************************