Topic
  • 7 replies
  • Latest Post - ‏2014-05-04T10:44:39Z by 8XMT_laurent_derewonko
kiko75
kiko75
4 Posts

Pinned topic Compil of apache 2.2 KO on AIX 6.1

‏2012-09-05T07:55:46Z |
Could you help me to solve this problem :

My compilation of apache 2.2 is ok in a AIX 5.3 platform and KO on a AIX 6.1

I use the last gcc compiler (xlc is not installed)

Here are some of my script :
...
export CC=gcc
export CFLAGS="-DSYSV -D_AIX61 -D_ALL_SOURCE -O2"
...
...
./configure --host="powerpc-ibm-aix6.1.0.0" --target="powerpc-ibm-aix6.1.0.0" --build="powerpc-ibm-aix6.1.0.0" --prefix=$BASE \
--enable-mods-shared="all cache case-filter case-filter-in cgid \
charset-lite deflate disk-cache echo file-cache \
mem-cache suexec ldap ssl isapi auth_digest \
dumpio logio proxy proxy_connect proxy_ftp proxy_http" \
--enable-so \
--with-z=$BLIB/zlib \
--with-iconv=$BLIB/libiconv \
--with-ssl=$BLIB/ssl \
--enable-ldap=shared \
--enable-authnz-ldap=shared \
--with-apr=$BAP \
--with-apr=/wastest/home/instest/apr/ \
--with-included-apr \
--with-mpm=worker \
2>&1 | tee configure_httpd.log

The result is :
...
Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CPP to "cc -qlanglvl=extc89 -E"
adding "-qHALT=E" to CFLAGS
adding "-U__STR__" to CPPFLAGS
adding "-D_THREAD_SAFE" to CPPFLAGS
adding "-D_USE_IRS" to CPPFLAGS
adding "-D_LARGEFILE64_SOURCE" to CPPFLAGS

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
checking whether the C compiler works... no
configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
+ tee configure_httpd.log
+ --with-apr=/apache/produits/apache/2.4.2/apache --with-included-apr --with-mpm=worker
+ 2>& 1
./build_apache_242.sh621: --with-apr=/apache/produits/apache/2.4.2/apache: not found
...

Thank you for your help
Updated on 2012-09-10T15:00:51Z at 2012-09-10T15:00:51Z by kiko75
  • romeo_ninov
    romeo_ninov
    31 Posts

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2012-09-06T05:07:03Z  
    > checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
    > checking whether the C compiler works... no
    > configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    > configure: error: C compiler cannot create executables

    Seems like you do not have compiler. Add in PATH the directory where gcc reside
  • kiko75
    kiko75
    4 Posts

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2012-09-06T08:13:45Z  
    > checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
    > checking whether the C compiler works... no
    > configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    > configure: error: C compiler cannot create executables

    Seems like you do not have compiler. Add in PATH the directory where gcc reside
    Thank you for your help. I have modified my script. The PATH of the gcc is OK but now, new error :

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -qlanglvl=extc89 -E
    configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    configure: error: C preprocessor "cc -qlanglvl=extc89 -E" fails sanity check
    See `config.log' for more details
    Any idea ?
  • romeo_ninov
    romeo_ninov
    31 Posts

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2012-09-07T23:02:52Z  
    • kiko75
    • ‏2012-09-06T08:13:45Z
    Thank you for your help. I have modified my script. The PATH of the gcc is OK but now, new error :

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -qlanglvl=extc89 -E
    configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    configure: error: C preprocessor "cc -qlanglvl=extc89 -E" fails sanity check
    See `config.log' for more details
    Any idea ?
    > kiko75 wrote:
    > Thank you for your help. I have modified my script. The PATH of the gcc is OK but now, new error :
    ...
    > configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    > configure: error: C preprocessor "cc -qlanglvl=extc89 -E" fails sanity check
    > See `config.log' for more details
    >
    >
    > Any idea ?
    You have this time problem with C Preprocessor. have you install correctly the entire gcc package?
  • kiko75
    kiko75
    4 Posts

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2012-09-10T14:57:48Z  
    > kiko75 wrote:
    > Thank you for your help. I have modified my script. The PATH of the gcc is OK but now, new error :
    ...
    > configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    > configure: error: C preprocessor "cc -qlanglvl=extc89 -E" fails sanity check
    > See `config.log' for more details
    >
    >
    > Any idea ?
    You have this time problem with C Preprocessor. have you install correctly the entire gcc package?
    The GCC package is OK

    <root@qs03124>[/root] 0 # rpm -qa | grep gcc
    gcc-c++-4.7.1-2
    gcc-cpp-4.7.1-2
    gcc-4.7.1-2
    libgcc-4.7.1-2
    gcc-gfortran-4.7.1-2
    <root@qs03124>[/root] 0 #
  • kiko75
    kiko75
    4 Posts

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2012-09-10T15:00:51Z  
    • kiko75
    • ‏2012-09-10T14:57:48Z
    The GCC package is OK

    <root@qs03124>[/root] 0 # rpm -qa | grep gcc
    gcc-c++-4.7.1-2
    gcc-cpp-4.7.1-2
    gcc-4.7.1-2
    libgcc-4.7.1-2
    gcc-gfortran-4.7.1-2
    <root@qs03124>[/root] 0 #
    I erase and i re-install all this rpm, my script seems to work :)

    I check...
  • m3uniyal
    m3uniyal
    1 Post

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2013-04-16T18:43:17Z  

     

    Export following flags before compiling:

    CC= xlc

    CFLAGS="-qarch=com -q64"

    LDFLAGS="-b64"

    OBJECT_MODE=64

     

    I had similiar issues for apache 2.2 on AIX 6.1, though it worked fine with aix 5.3. I used above flags to resolve the issue

  • 8XMT_laurent_derewonko
    1 Post

    Re: Compil of apache 2.2 KO on AIX 6.1

    ‏2014-05-04T10:44:39Z  
    • kiko75
    • ‏2012-09-06T08:13:45Z
    Thank you for your help. I have modified my script. The PATH of the gcc is OK but now, new error :

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for powerpc-ibm-aix6.1.0.0-gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -qlanglvl=extc89 -E
    configure: error: in `/wastest/produits/src_apache2.4.2/httpd-2.4.2':
    configure: error: C preprocessor "cc -qlanglvl=extc89 -E" fails sanity check
    See `config.log' for more details
    Any idea ?

    please drop your config option before posting.

    from what i see, you are obviously compiling with gcc and not with included apr, and the problem is the apr rpm u r using has been compiled with xlc/cc , so it's incompatible.

    use either a gcc compiled apr rpm or use included-apr