Apache Installation issue

HI Guys,

I got the below error while trying to install the apache2.2.15. from the error I can interpret that some of the .h files are missing. I guess those are C library header files.. Can you help me with it.


bash-3.00# make
Making all in srclib
Making all in apr
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o strings/apr_cpystrn.lo -c strings/apr_cpystrn.c && touch strings/apr_cpystrn.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o strings/apr_strtok.lo -c strings/apr_strtok.c && touch strings/apr_strtok.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/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:587: error: parse error before '*' token
/usr/include/pthread.h:590: error: parse error before '*' token
/usr/include/pthread.h:594: error: parse error before '*' token
/usr/include/pthread.h:597: error: parse error before '*' token
/usr/include/pthread.h:600: error: parse error before '*' token
/usr/include/pthread.h:603: error: parse error before '*' token
/usr/include/pthread.h:606: error: parse error before '*' token
/usr/include/pthread.h:609: error: parse error before '*' token
/usr/include/pthread.h:612: error: parse error before '*' token
/usr/include/pthread.h:615: error: parse error before '*' token
/usr/include/pthread.h:618: error: parse error before '*' token
/usr/include/pthread.h:622: error: parse error before '*' token
/usr/include/pthread.h:625: error: parse error before '*' token
/usr/include/pthread.h:629: error: parse error before '*' token
/usr/include/pthread.h:633: error: parse error before '*' token
/usr/include/pthread.h:644: error: parse error before '*' token
/usr/include/pthread.h:648: error: parse error before '*' token
/usr/include/pthread.h:671: error: parse error before '*' token
/usr/include/pthread.h:674: error: parse error before '*' token
/usr/include/pthread.h:677: error: parse error before '*' token
/usr/include/pthread.h:680: error: parse error before '*' token
/usr/include/pthread.h:683: error: parse error before '*' token
/usr/include/pthread.h:691: error: parse error before '*' token
/usr/include/pthread.h:694: error: parse error before '*' token
/usr/include/pthread.h:697: error: parse error before '*' token
/usr/include/pthread.h:700: error: parse error before '*' token
/usr/include/pthread.h:708: error: parse error before '*' token
/usr/include/pthread.h:712: error: parse error before '*' token
/usr/include/pthread.h:715: error: parse error before '*' token
/usr/include/pthread.h:911: error: parse error before 'cred_ext_t'
/usr/include/pthread.h:913: error: parse error before '}' token
make: The error code from the last command is 1.

You are trying to compile using the gcc-compiler. This is not wrong, but i suppose a binary compiled with the OS vendors compiler (in this case xlc) to be somewhat on the safer side. This is just a general observation and i am not aware of any specific issues compiling Apache 2.2.15 with gcc under AIX, though.

You can download a compiled version of Apache 2.2.15 for AIX already packaged into an rpm from here.

I hope this helps.

bakunin

Thx Bakunin... I have a confusion while downloading packages.. this is there for a long time now I take this as a opportunity .. In the link provided by you..

I see 3 RPMS mentioned and then one more Source RPM is also provided.. What is the difference among them please ? :frowning:

Downloads

RPMs:

* httpd-2.2.15-1.aix5.1.ppc.rpm
* httpd-devel-2.2.15-1.aix5.1.ppc.rpm
* httpd-manual-2.2.15-1.aix5.1.ppc.rpm
* mod_ssl-2.2.15-1.aix5.1.ppc.rpm 

Source RPM:

* httpd-2.2.15-1.src.rpm

To install apache form rpm source you must have compiler and same time.

Bye