cancel
Showing results for 
Search instead for 
Did you mean: 

Error during making Apache for AIX

elena_abramova
Explorer
0 Kudos

Hello all.

I want to install SAP Content Server 6.40 for AIX 5.2.

Before it I must to install Apache Server.

I have Apache 1.3.41 GCC 3.3.2

I install GCC in /usr/local/bin. My user has this path in env.

Add CFLAGS= -q64, LDFLAGS=-q64 and EXTRA_LDFLAGS_SHLIB=b64 (note 664384).

First I configure my Apache, all is ok. No errors.

Then I perform command MAKE and have such errors:

===> src

===> src/regex

Target "all" is up to date.

Target "lib" is up to date.

<=== src/regex

===> src/os/unix

gcc -c -I../../os/unix -I../../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../../apaci` os.c

gcc: unrecognized option `-q64'

gcc -c -I../../os/unix -I../../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../../apaci` os-inline.c

gcc: unrecognized option `-q64'

rm -f libos.a

ar -Xany cr libos.a os.o os-inline.o

ranlib libos.a

Target "all" is up to date.

<=== src/os/unix

===> src/ap

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_cpystrn.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_execve.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_fnmatch.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_getpass.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_md5c.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_signal.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_slack.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_snprintf.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_sha1.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_checkpass.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_base64.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_ebcdic.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` ap_strtol.c

gcc: unrecognized option `-q64'

rm -f libap.a

ar -Xany cr libap.a ap_cpystrn.o ap_execve.o ap_fnmatch.o ap_getpass.o ap_md5c.o ap_signal.o ap_slack.o ap_snprintf.o ap_sha1.o ap_checkpass.o ap_base64.o ap_ebcdic.o ap_strtol.o

ranlib libap.a

Target "all" is up to date.

<=== src/ap

===> src/main

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` gen_test_char.c

gcc: unrecognized option `-q64'

gcc -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` -lm -lpthread -q64 -o gen_test_char gen_test_char.o -lexpat -lld

gcc: unrecognized option `-q64'

gcc: unrecognized option `-q64'

./gen_test_char >test_char.h

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` alloc.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` buff.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` http_config.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` http_core.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` http_log.c

gcc: unrecognized option `-q64'

gcc -c -I../os/unix -I../include -DAIX=530 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -q64 `../apaci` http_main.c

gcc: unrecognized option `-q64'

In file included from http_main.c:649:

/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: 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 2.

Stop.

make: 1254-004 The error code from the last command is 2.

Stop.

What can I do to delete this error?

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

axel_doerr
Explorer
0 Kudos

Hi Elena,

you have to perform the following steps:

1. Unpack apache source tar files (Version 1.3.29) into the homedirectory of the Contentserver Users (e.g. /home/cs)

2. Chnage to the created apache directory (e.g.: /home/cs/apache_1.3.29)

3. Maintain the file ./src/Configure

a) Search for the expression -ibm-aix[45678].)

Change the CFLAGS line

from CFLAGS="$CFLAGS -DAIX=$PLATOSVERSNUM -U__STR__"

to CFLAGS="$CFLAGS -maix64 -DAIX=$PLATOSVERSNUM -U__STR__"

It should look like this:

-ibm-aix[45678].)

PLATOSVERS=`echo $PLAT | sed 's/^.*ibm-aix//'`

OS="AIX $PLATOSVERS"

PLATOSVERSNUM=`echo $PLATOSVERS | sed 's/\.//'`

if test $PLATOSVERSNUM -ge 43; then

PLATOSVERSNUM=`oslevel | sed 's/\.//g' | sed 's/.$//'`

else

PLATOSVERSNUM="$PLATOSVERSNUM"0

fi

  1. PLATOSVERSNUM is a three digit number at this point

CFLAGS="$CFLAGS -maix64 -DAIX=$PLATOSVERSNUM -U__STR__"

b) Search for RANLIB="ranlib"

Change this entry

from RANLIB="ranlib"

to RANLIB="ranlib -X32_64"

It should look like this:

####################################################################

    1. OK, now handle RANLIB

##

if [ "x$RANLIB" = "x" ]; then

if [ "x$TRANLIB" != "x" ]; then

RANLIB=$TRANLIB

else

if ./helpers/PrintPath -s ranlib; then

RANLIB="ranlib -X32_64"

else

RANLIB="true"

fi

fi

fi

c) Search for "ar cr"

Change this entry

from "ar cr"

to "ar -cr -X32_64"

4. Now you have to change the line with "ar cr" to "ar -cr -X32_64" in all makefile templates.

You can do this with a script like this:

#!/bin/ksh

find . -name "Makefile.tmpl" | xargs grep "ar cr $@" | cut -f1 -d":" | while read DATEI

do

echo "Bearbeite "$DATEI

rm -f ./helpme

cat $DATEI | sed "s/ar cr/ar -cr -X32_64/" > ./helpme

rm -f $DATEI

mv ./helpme $DATEI

done

5. Now you can configure, compile and link apache:

Do it like this:

export OBJECT_MODE=64

./configure --prefix=HOMEDIRECTORY_WEBSERVER --enable-module=info --enable-shared=info

make

make install

After this activity you can install the content/cache server with the normal sap install process and finally you can start the apache webserver with HOMEDIRECTORY_WEBSERVER/bin/apachectl start

Hope this helps

Axel