problems compile apache 2.2.8 under AIX 6.1 - Aix
This is a discussion on problems compile apache 2.2.8 under AIX 6.1 - Aix ; Hey all,
I am trying to compile apache 2.2.8 with gcc 4.0.0 under AIX. I have
no idea why it fails. The configure runs fine without any errors, but
the make always fails. I've already tried to use gcc 4.2.2 ...
-
problems compile apache 2.2.8 under AIX 6.1
Hey all,
I am trying to compile apache 2.2.8 with gcc 4.0.0 under AIX. I have
no idea why it fails. The configure runs fine without any errors, but
the make always fails. I've already tried to use gcc 4.2.2 without
success.
here the output of make:
Making all in srclib
Making all in apr
/bin/sh /image/httpd-2.2.8/srclib/apr/libtool --silent --
mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE -
I./include -I/image/httpd-2.2.8/srclib/apr/include/arch/unix -I./
include/arch/unix -I/image/httpd-2.2.8/srclib/apr/include -o passwd/
apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
/bin/sh /image/httpd-2.2.8/srclib/apr/libtool --silent --
mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE -
I./include -I/image/httpd-2.2.8/srclib/apr/include/arch/unix -I./
include/arch/unix -I/image/httpd-2.2.8/srclib/apr/include -o strings/
apr_cpystrn.lo -c strings/apr_cpystrn.c && touch strings/
apr_cpystrn.lo
/bin/sh /image/httpd-2.2.8/srclib/apr/libtool --silent --
mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE -
I./include -I/image/httpd-2.2.8/srclib/apr/include/arch/unix -I./
include/arch/unix -I/image/httpd-2.2.8/srclib/apr/include -o strings/
apr_fnmatch.lo -c strings/apr_fnmatch.c && touch strings/
apr_fnmatch.lo
/bin/sh /image/httpd-2.2.8/srclib/apr/libtool --silent --
mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE -
I./include -I/image/httpd-2.2.8/srclib/apr/include/arch/unix -I./
include/arch/unix -I/image/httpd-2.2.8/srclib/apr/include -o strings/
apr_snprintf.lo -c strings/apr_snprintf.c && touch strings/
apr_snprintf.lo
In file included from /usr/include/fcntl.h:188,
from ./include/apr_portable.h:44,
from strings/apr_snprintf.c:23:
/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/cred.h:49,
from /usr/include/sys/thread.h:43,
from /usr/include/sys/ptrace.h:28,
from /usr/include/sys/proc.h:48,
from /usr/include/sys/pri.h:43,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:51,
from /usr/include/pthread.h:50,
from ./include/apr_portable.h:47,
from strings/apr_snprintf.c:23:
/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/thread.h:43,
from /usr/include/sys/ptrace.h:28,
from /usr/include/sys/proc.h:48,
from /usr/include/sys/pri.h:43,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:51,
from /usr/include/pthread.h:50,
from ./include/apr_portable.h:47,
from strings/apr_snprintf.c:23:
/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/sys/ptrace.h:28,
from /usr/include/sys/proc.h:48,
from /usr/include/sys/pri.h:43,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:51,
from /usr/include/pthread.h:50,
from ./include/apr_portable.h:47,
from strings/apr_snprintf.c:23:
/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 ./include/apr_portable.h:47,
from strings/apr_snprintf.c:23:
/usr/include/pthread.h:911: error: parse error before 'cred_ext_t'
/usr/include/pthread.h:913: 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 1.
Stop.
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.
Thanks in advance.
Cheers,
Marcus
-
Re: problems compile apache 2.2.8 under AIX 6.1
schnupfy wrote:
> Hey all,
>
> I am trying to compile apache 2.2.8 with gcc 4.0.0 under AIX. I have
> no idea why it fails. The configure runs fine without any errors, but
> the make always fails. I've already tried to use gcc 4.2.2 without
> success.
>
> here the output of make:
> [...]
> /usr/include/unistd.h:915: error: parse error before '[' token
> /usr/include/unistd.h:916: error: parse error before 'rid_t'
Examine unistd.h around line 915 to see if there is an error in there.
Remember that an error may be caused by a #define in a previous header.
-
Re: problems compile apache 2.2.8 under AIX 6.1
Hello,
Jose Pina Coelho wrote:
> schnupfy wrote:
>> Hey all,
>>
>> I am trying to compile apache 2.2.8 with gcc 4.0.0 under AIX. I have
>> no idea why it fails. The configure runs fine without any errors, but
>> the make always fails. I've already tried to use gcc 4.2.2 without
>> success.
>>
Which version of gcc 4.2.2 did you try ?
You need the AIX 6.1 version from www.perzl.org.
The problem with AIX 6.1 is that most of the software packages did not yet
update their build tools (config.guess, libtool, autoconf, autmake) to
AIX 6.1
compatible versions. As long as you do not try to build anything with
shared
libraries there is no big problem. But if you need shared libraries you
need
new versions of the above build tools.
This are the minimum versions:
* GNU config.guess (2008-01-07) -> base tools, this provides the version
string: powerpc-ibm-aix6.1.0.0
* libtool-1.5.26
* Automake-1.10.1
* Autoconf-2.61a (beta, you need a version from 2008, the
build-aux/config.guess must be on the above level)
>> here the output of make:
>> [...]
>> /usr/include/unistd.h:915: error: parse error before '[' token
>> /usr/include/unistd.h:916: error: parse error before 'rid_t'
> Examine unistd.h around line 915 to see if there is an error in there.
>
> Remember that an error may be caused by a #define in a previous header.
Bye
Rainer