AIX

AIX

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

 View Only
  • 1.  Install Apache 2.2.4 on AIX 5.3

    Posted Mon March 19, 2007 01:05 PM

    Originally posted by: SystemAdmin


    Am trying to configure & install Apache 2.2.4 on AIX 5.3.
    The 'make' is giving me the following error:

    In file included from include/apr_portable.h:47,
    from strings/apr_snprintf.c:23:
    /usr/include/pthread.h:666: error: parse error before '*' token
    /usr/include/pthread.h:669: error: parse error before '*' token
    /usr/include/pthread.h:672: error: parse error before '*' token
    /usr/include/pthread.h:675: error: parse error before '*' token
    /usr/include/pthread.h:678: error: parse error before '*' token
    /usr/include/pthread.h:686: error: parse error before '*' token
    /usr/include/pthread.h:689: error: parse error before '*' token
    /usr/include/pthread.h:692: error: parse error before '*' token
    /usr/include/pthread.h:695: error: parse error before '*' token
    /usr/include/pthread.h:703: error: parse error before '*' token
    /usr/include/pthread.h:707: error: parse error before '*' token
    /usr/include/pthread.h:710: error: parse error before '*' token
    make[3]: *** http://strings/apr_snprintf.lo Error 1
    make[3]: Leaving directory `/usr/local/httpd-2.2.4/srclib/apr'
    make[2]: *** all-recursive Error 1
    make[2]: Leaving directory `/usr/local/httpd-2.2.4/srclib/apr'
    make[1]: *** all-recursive Error 1
    make[1]: Leaving directory `/usr/local/httpd-2.2.4/srclib'
    make: *** all-recursive Error 1

    Does anyone know how to fix this? I'm attaching my config.log


  • 2.  Have you looked at this AIX Wiki page for hints on building Apache for AIX?

    Posted Mon March 19, 2007 02:15 PM

    Originally posted by: nagger


    http://www.ibm.com/collaboration/wiki/display/WikiPtype/aixopen

    OK this page was for Apache 2.2.2 but it should still work - shouldn't it?

    Also which compiler are you using?
    GNC C should be easy to compile with but the code a little slower than the full AIX C Compiler.


  • 3.  Re: Install Apache 2.2.4 on AIX 5.3

    Posted Mon March 19, 2007 03:59 PM

    Originally posted by: SystemAdmin


    Thanks for your reply. Funny, I've been trying for a week to install GNU (and it's prerequisites) and did not know until your reply of the 'rpm' way. I "cleaned" what I had been trying to install and then installed it in a flash using the 'rpm' command. Unbelievably easy.

    I ran the ./configure for Apache (./configure --prefix=/usr/local/apache-224 --enable-so --enable-headers) and received the following errors refering to the pthread.h:

    Checking for Threads...
    checking pthread.h usability... no
    checking pthread.h presence... yes
    configure: WARNING: pthread.h: present but cannot be compiled
    configure: WARNING: pthread.h: check for missing prerequisite headers?
    configure: WARNING: pthread.h: see the Autoconf documentation
    configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
    configure: WARNING: pthread.h: proceeding with the preprocessor's result
    configure: WARNING: pthread.h: in the future, the compiler will take precedence
    configure: WARNING: ##
    ##
    configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
    configure: WARNING: ##
    ##
    checking for pthread.h... yes


    Just for fun I ran the 'make' anyway and still received the same errors as before.
    Did you want to take a look at the config.log? Could my attempts to install GNU using ./configure, make, make install somehow messed up this pthread.h?


  • 4.  Re: Install Apache 2.2.4 on AIX 5.3

    Posted Mon March 19, 2007 04:00 PM

    Originally posted by: SystemAdmin


    Wait a sec. I see I left out the "-C" in the ./configure command. I will try it again...


  • 5.  Re: Install Apache 2.2.4 on AIX 5.3

    Posted Mon March 19, 2007 04:14 PM

    Originally posted by: SystemAdmin


    Oh...it did the same error.

    Checking for Threads...
    checking pthread.h usability... no
    checking pthread.h presence... yes
    configure: WARNING: pthread.h: present but cannot be compiled
    configure: WARNING: pthread.h: check for missing prerequisite headers?
    configure: WARNING: pthread.h: see the Autoconf documentation
    configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
    configure: WARNING: pthread.h: proceeding with the preprocessor's result
    configure: WARNING: pthread.h: in the future, the compiler will take precedence
    configure: WARNING: ##
    ##
    configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
    configure: WARNING: ##
    ##
    checking for pthread.h... yes


  • 6.  Re: Install Apache 2.2.4 on AIX 5.3

    Posted Mon April 23, 2007 02:30 AM

    Originally posted by: SystemAdmin


    Did you fix this error?

    I'm trying to install apache 1.3.37 on my AIX5.3-ML5, having same error.

    =================
    gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` http_main.c
    In file included from http_main.c:606:
    /usr/include/pthread.h:666: error: parse error before '*' token
    /usr/include/pthread.h:669: error: parse error before '*' token
    .
    .
    .
    .
    ke: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 1.

    ================

    Thanks in Advance..

    I just wanted to use apache for displaying static nmon perf pages.. Don't really want apache2.x


  • 7.  Re: Install Apache 2.2.4 on AIX 5.3

    Posted Mon April 23, 2007 09:56 AM

    Originally posted by: SystemAdmin


    Sort of. I got past it by removing the 'enable-headers' portion of the configure command. But why I was getting the error is still a mystery.
    So, from this command.....
    ./configure --prefix=/usr/local/apache-224 --enable-so --enable-headers

    ...to this command....
    ./configure --prefix=/usr/local/apache-224 --enable-so

    And the configure went beautifully.
    I hope this helps.