You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Black <sc...@gmail.com> on 2007/12/07 15:13:45 UTC

[users@httpd] Error while compiling Apache 2.0 on AIX 6.1

I installed AIX 6.1 on one of the lpar slice. Also installed gcc. Version of
gcc is as per following -

Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--disable-nls --enable-languages=c,c++ --prefix=/opt/freeware
--enable-threads --enable-version-specific-runtime-libs --host=
powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0

When I try to compile Apache 2.0.59 on AIX 6.1 with above gcc version, it
gives me following error -

Making all in srclib
Making all in apr
Making all in strings
/bin/sh /software/apache/httpd-2.0.59/srclib/apr/libtool --silent
--mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE
-I../include -I../include/arch/unix -c apr_cpystrn.c && touch apr_cpystrn.lo
/bin/sh /software/apache/httpd-2.0.59/srclib/apr/libtool --silent
--mode=compile gcc -g -O2 -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE
-I../include -I../include/arch/unix -c apr_snprintf.c && touch
apr_snprintf.lo
In file included from /usr/include/fcntl.h:188,
from ../include/apr_portable.h:44,
from 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 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 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 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 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.
make: 1254-004 The error code from the last command is 1.