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