AIX

AIX

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

 View Only
  • 1.  Compil of apache 2.2 KO on AIX 6.1

    Posted Wed September 05, 2012 03:56 AM

    Originally posted by: kiko75


    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


  • 2.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Thu September 06, 2012 01:07 AM

    Originally posted by: romeo_ninov


    > 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


  • 3.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Thu September 06, 2012 04:14 AM

    Originally posted by: kiko75


    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 ?


  • 4.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Fri September 07, 2012 07:03 PM

    Originally posted by: romeo_ninov


    > 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?


  • 5.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Mon September 10, 2012 10:58 AM

    Originally posted by: kiko75


    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 #


  • 6.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Mon September 10, 2012 11:01 AM

    Originally posted by: kiko75


    I erase and i re-install all this rpm, my script seems to work :)

    I check...


  • 7.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Sun May 04, 2014 06:45 AM

    Originally posted by: laurent derewonko


    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



  • 8.  Re: Compil of apache 2.2 KO on AIX 6.1

    Posted Tue April 16, 2013 02:43 PM

    Originally posted by: m3uniyal


     

    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