AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Apache 2.0 compilation on AIX 6.1

    Posted Fri December 07, 2007 08:01 AM

    Originally posted by: SystemAdmin


    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.


  • 2.  Re: Apache 2.0 compilation on AIX 6.1

    Posted Sat December 08, 2007 01:24 PM

    Originally posted by: nagger


    I think the latest GCC version is 4.2.2 rather than 4.0.0
    This may fix the compilation issues.

    Or you could download the Apache 2.2.6 compiled with the IBM compiler that should give it a performance boost from http://www.perzl.org
    This site has all the dependencies too for Apache extensions like PHP and SSL.

    And lots of the latest versions of popular Open Sources too.

    Hope this help, N


  • 3.  Re: Apache 2.0 compilation on AIX 6.1

    Posted Sat December 08, 2007 01:25 PM

    Originally posted by: nagger


    I think the latest GCC version is 4.2.2 rather than 4.0.0
    This may fix the compilation issues.

    Or you could download the Apache 2.2.6 compiled with the IBM compiler that should give it a performance boost from http://www.perzl.org
    This site has all the dependencies too for Apache extensions like PHP and SSL.

    And lots of the latest versions of popular Open Sources too.

    Hope this help, N