AIX

AIX

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


#Power
 View Only
  • 1.  AIX 5.3 and Apache 2.2

    Posted Tue April 25, 2006 12:01 PM

    Originally posted by: SystemAdmin


    Hi,
    I am trying to compile Apache 2.2 on AIX 5.3 ML4 and I am getting the following error.
    code/usr/include/pthread.h:652: error: parse error before '*' token
    /usr/include/pthread.h:655: error: parse error before '*' token
    /usr/include/pthread.h:658: error: parse error before '*' token
    /usr/include/pthread.h:661: error: parse error before '*' token
    /usr/include/pthread.h:664: 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:681: error: parse error before '*' token
    /usr/include/pthread.h:689: error: parse error before '*' token
    /usr/include/pthread.h:693: error: parse error before '*' token
    /usr/include/pthread.h:696: error: parse error before '*' token[/code]
    What I am finding is that everybody seems to be getting pretty much this same error no matter what they compile. I actually found a precompiled version of Apache 2.2 for AIX 5.3, but my concern is that when I want to upgrade and also add PHP and MySQL support, how can I do this if I am unable to compile?

    I found one reference that said the problem is the following:
    codeThe problem is that IBM changed the header files in such a way that gcc
    doesn't like them. Note that there's a step in the gcc build process
    that creates a customized version of headers to work with the particular
    OS version on the build machine, which probably isn't AIX 5.3. Most
    likely, the header files in /usr/include are combining badly with gcc's
    idea of the corrected version.

    You don't say which version of gcc you're using, but a very good bet is
    to get the gcc source code and build it yourself; the fixincludes step
    will have a fighting chance to Do The Right Thing for 5.3 ML2. [/code]
    I have not tried this yet, but considering just about everyone is having this issue when compiling code, can anyone verify that these are the steps they took to remedy the issue. I realize RPM's are available in the AIX toolkit, but most if not all are old and if we ran them it would not fly with our Network Security department and I do not blame them. Any clues?

    Since I have found so many people having the same issue, this would be an excellent topic for someone to add to the AIX wiki. Apache is the most used http server on the Internet, why such a struggle getting AIX to paly nice with it? Seems Apache compiled fine on AIX 5.2 from what I have read.
    #AIX-Forum


  • 2.  Re: AIX 5.3 and Apache 2.2

    Posted Fri April 28, 2006 01:57 AM

    Originally posted by: SystemAdmin


    Hi

    can you send your:
    configure statement
    rpm -qa
    gcc -v

    I had compiled Apache successfully on AIX 5.3 ML4

    Did you have installed the following filesets ?

    bos.adt.base 5.3.0.40 COMMITTED Base Application Development
    bos.adt.include 5.3.0.40 COMMITTED Base Application Development
    bos.adt.lib 5.3.0.40 COMMITTED Base Application Development
    bos.adt.libm 5.3.0.30 COMMITTED Base Application Development
    bos.adt.prof 5.3.0.40 COMMITTED Base Profiling Support

    #AIX-Forum


  • 3.  Re: AIX 5.3 and Apache 2.2

    Posted Fri April 28, 2006 08:16 AM

    Originally posted by: SystemAdmin


    I was successful with my compile yesterday. I had to remove the included gcc and basic libraries and install the AIX 5.3 specific libraries from the AIX Toolbox. Another gotcha was the AIX Math Library, but I easily found that on the base image CD's. Thanks for the response though.
    #AIX-Forum