Hi I tried the following :
export CFLAGS="-q64" export LDFLAGS="-q64" export EXTRA_LDFLAGS_SHLIB="-b64" export OBJECT_MODE=64 # export CC="xlc -q64" # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most --with-mpm=prefork --with-expat=builtin checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... powerpc-ibm-aix7.1.0.0 checking host system type... powerpc-ibm-aix7.1.0.0 checking target system type... powerpc-ibm-aix7.1.0.0 Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... powerpc-ibm-aix7.1.0.0 checking host system type... powerpc-ibm-aix7.1.0.0 checking target system type... powerpc-ibm-aix7.1.0.0 Configuring APR library Platform: powerpc-ibm-aix7.1.0.0 checking for working mkdir -p... yes APR Version: 1.5.1 checking for chosen layout... apr checking for gcc... xlc -q64 checking whether the C compiler works... no configure: error: in `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': configure: error: C compiler cannot create executables See `config.log' for more details configure failed for srclib/apr # regards, Sreejib On Mon, Sep 15, 2014 at 7:56 PM, Sreejib Ghosh <[email protected]> wrote: > Hi > > I tried this one also.. same error. > > I want to use xlc as it is a native compiler ANSI-C complient and SAP > also recommending not to use gcc. What should be the values I pass . Please > help. > > export CFLAGS="-q64" > export LDFLAGS="-q64" > export EXTRA_LDFLAGS_SHLIB="-b64" > export OBJECT_MODE=64 > export CC= > > Regards, > Sreejib > > On Mon, Sep 15, 2014 at 7:29 PM, Jonathan Leffler < > [email protected]> wrote: > >> You should use a space in the command name: >> >> export CC="gcc -maix64" >> >> That uses the GCC compiler with the argument '-maix64', rather than >> trying to use it as a single word gcc-maix64. >> >> >> >> >> On Mon, Sep 15, 2014 at 12:27 AM, Sreejib Ghosh <[email protected]> >> wrote: >> >>> Hi >>> >>> >>> I have tried with almost all combinations. But failed. Please suggest >>> the correct one for AIX 7.1 with non GNU supported C-Compiler. >>> >>> ======================================================== >>> # export CC="gcc-maix64" >>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most >>> --with-mpm=prefork --with-expat=builtin >>> checking for chosen layout... Apache >>> checking for working mkdir -p... yes >>> checking build system type... powerpc-ibm-aix7.1.0.0 >>> checking host system type... powerpc-ibm-aix7.1.0.0 >>> checking target system type... powerpc-ibm-aix7.1.0.0 >>> Configuring Apache Portable Runtime library ... >>> checking for APR... reconfig >>> configuring package in srclib/apr now >>> checking build system type... powerpc-ibm-aix7.1.0.0 >>> checking host system type... powerpc-ibm-aix7.1.0.0 >>> checking target system type... powerpc-ibm-aix7.1.0.0 >>> Configuring APR library >>> Platform: powerpc-ibm-aix7.1.0.0 >>> checking for working mkdir -p... yes >>> APR Version: 1.5.1 >>> checking for chosen layout... apr >>> checking for gcc... gcc-maix64 >>> checking whether the C compiler works... no >>> configure: error: in `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': >>> configure: error: C compiler cannot create executables >>> See `config.log' for more details >>> configure failed for srclib/apr >>> # >>> # export CFLAGS="-q64" >>> export LDFLAGS="-q64" >>> export EXTRA_LDFLAGS_SHLIB="-b64" >>> export OBJECT_MODE=64 >>> export CC="xlc-q64"# # # # >>> # >>> # >>> # echo $CFLAGS >>> -q64 >>> # echo $CC >>> xlc-q64 >>> # pwd >>> /sapdb/SDB/sapdata4/DUMP/httpd-2.2.29 >>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most >>> --with-mpm=prefork --with-expat=builtin >>> checking for chosen layout... Apache >>> checking for working mkdir -p... yes >>> checking build system type... powerpc-ibm-aix7.1.0.0 >>> checking host system type... powerpc-ibm-aix7.1.0.0 >>> checking target system type... powerpc-ibm-aix7.1.0.0 >>> Configuring Apache Portable Runtime library ... >>> checking for APR... reconfig >>> configuring package in srclib/apr now >>> checking build system type... powerpc-ibm-aix7.1.0.0 >>> checking host system type... powerpc-ibm-aix7.1.0.0 >>> checking target system type... powerpc-ibm-aix7.1.0.0 >>> Configuring APR library >>> Platform: powerpc-ibm-aix7.1.0.0 >>> checking for working mkdir -p... yes >>> APR Version: 1.5.1 >>> checking for chosen layout... apr >>> checking for gcc... xlc-q64 >>> checking whether the C compiler works... no >>> configure: error: in `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': >>> configure: error: C compiler cannot create executables >>> See `config.log' for more details >>> configure failed for srclib/apr >>> # # >>> ===================================================================== >>> >>> Please help. >>> >>> regards, >>> Sreejib >>> >>> On Wed, Sep 10, 2014 at 4:28 PM, Sreejib Ghosh <[email protected]> >>> wrote: >>> >>>> SAP replied seeing the logs: >>>> >>>> "It looks like false compiler has been used. GNU (GCC) compiler is only >>>> valid for operating system LINUX. >>>> Please use ANSI-C native compiler and source distribution instead of >>>> pre-compiler and binary distribution." >>>> >>>> Logs already attached in earlier communication here. >>>> >>>> Regards, >>>> Sreejib >>>> >>>> On Wed, Sep 10, 2014 at 4:19 PM, Sreejib Ghosh <[email protected]> >>>> wrote: >>>> >>>>> Please suggest. >>>>> >>>>> Regards, >>>>> Sreejib >>>>> On Wed, Sep 10, 2014 at 4:15 PM, Sreejib Ghosh <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi >>>>>> >>>>>> I checked the followings...... >>>>>> >>>>>> # export CFLAGS="-maix64" >>>>>> #export LDFLAGS="-maix64" >>>>>> #export EXTRA_LDFLAGS_SHLIB="-Wl,-b64" >>>>>> #export OBJECT_MODE=64 >>>>>> #export CC="gcc" >>>>>> # # # # >>>>>> # >>>>>> # echo $EXTRA_LDFLAGS_SHLIB >>>>>> -Wl,-b64 >>>>>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most >>>>>> --with-mpm=prefork --with-expat=builtin >>>>>> checking for chosen layout... Apache >>>>>> checking for working mkdir -p... yes >>>>>> checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>> >>>>>> Configuring Apache Portable Runtime library ... >>>>>> checking for APR... reconfig >>>>>> configuring package in srclib/apr now >>>>>> checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>> Configuring APR library >>>>>> Platform: powerpc-ibm-aix7.1.0.0 >>>>>> checking for working mkdir -p... yes >>>>>> APR Version: 1.5.1 >>>>>> checking for chosen layout... apr >>>>>> checking for gcc... gcc >>>>>> checking whether the C compiler works... no >>>>>> configure: error: in >>>>>> `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': >>>>>> configure: error: C compiler cannot create executables >>>>>> See `config.log' for more details >>>>>> configure failed for srclib/apr >>>>>> # >>>>>> >>>>>> Also checked >>>>>> >>>>>> # export CC="-maix64" >>>>>> # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most >>>>>> --with-mpm=prefork --with-expat=builtin >>>>>> checking for chosen layout... Apache >>>>>> checking for working mkdir -p... yes >>>>>> checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>> Configuring Apache Portable Runtime library ... >>>>>> checking for APR... reconfig >>>>>> configuring package in srclib/apr now >>>>>> checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>> checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>> Configuring APR library >>>>>> Platform: powerpc-ibm-aix7.1.0.0 >>>>>> checking for working mkdir -p... yes >>>>>> APR Version: 1.5.1 >>>>>> checking for chosen layout... apr >>>>>> checking for gcc... -maix64 >>>>>> checking whether the C compiler works... no >>>>>> configure: error: in >>>>>> `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': >>>>>> configure: error: C compiler cannot create executables >>>>>> See `config.log' for more details >>>>>> configure failed for srclib/apr >>>>>> # >>>>>> >>>>>> Please suggest. >>>>>> Regards, >>>>>> SREEJIB >>>>>> >>>>>> On Wed, Sep 10, 2014 at 3:56 PM, Sreejib Ghosh <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hi Stefan >>>>>>> >>>>>>> Thanks for your expert advise. I am very new with Apache. >>>>>>> >>>>>>> Please do let me know what should be the values if I want to use >>>>>>> ANSI-C compliant Compiler in AIX 7.1 >>>>>>> >>>>>>> export CFLAGS= >>>>>>> export LDFLAGS= >>>>>>> export EXTRA_LDFLAGS_SHLIB= >>>>>>> export OBJECT_MODE= >>>>>>> export CC= >>>>>>> >>>>>>> 2. what I should use gcc or xlc for AIX 7.1 >>>>>>> >>>>>>> Best regards, >>>>>>> Sreejib >>>>>>> >>>>>>> On Wed, Sep 10, 2014 at 3:47 PM, Stefan Ruppert <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> you are mixing xlc and gcc flags. To compile 64-bit code with xlc >>>>>>>> use >>>>>>>> -q64 as you did. Using gcc you need to pass -maix64. If the linker >>>>>>>> is >>>>>>>> invoked by gcc you will also need to tell gcc to pass the -b64 >>>>>>>> option to >>>>>>>> the linker: -Wl,-b64 >>>>>>>> >>>>>>>> Regards, >>>>>>>> Stefan >>>>>>>> >>>>>>>> Am 10.09.2014 10:55, schrieb Sreejib Ghosh: >>>>>>>> > Hi Experts >>>>>>>> > We are facing issue while installing Apache 2.2.29 in AIX 7.1 >>>>>>>> > >>>>>>>> > >>>>>>>> > we are using following environments: >>>>>>>> > >>>>>>>> > export CFLAGS="-q64" >>>>>>>> > >>>>>>>> > export LDFLAGS="-q64" >>>>>>>> > export EXTRA_LDFLAGS_SHLIB="-b64" >>>>>>>> > export OBJECT_MODE=64 >>>>>>>> > export CC=”gcc” >>>>>>>> > >>>>>>>> > <SAP recommended CC should be native ANSI-C> <what should be >>>>>>>> value of CC ? > >>>>>>>> > >>>>>>>> > We are using httpd-2.2.29 … SAP doesn’t support latest version >>>>>>>> 2.4.x >>>>>>>> > >>>>>>>> > =============================ERROR LOG================= >>>>>>>> > >>>>>>>> > # ./configure --prefix=/usr/sap/apache --enable-mods-shared=most >>>>>>>> > --with-mpm=prefork --with-expat=builtin >>>>>>>> > checking for chosen layout... Apache >>>>>>>> > checking for working mkdir -p... yes >>>>>>>> > checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > Configuring Apache Portable Runtime library ... >>>>>>>> > checking for APR... reconfig >>>>>>>> > configuring package in srclib/apr now >>>>>>>> > checking build system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > checking host system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > checking target system type... powerpc-ibm-aix7.1.0.0 >>>>>>>> > Configuring APR library >>>>>>>> > Platform: powerpc-ibm-aix7.1.0.0 >>>>>>>> > checking for working mkdir -p... yes >>>>>>>> > APR Version: 1.5.1 >>>>>>>> > checking for chosen layout... apr >>>>>>>> > checking for gcc... gcc >>>>>>>> > checking whether the C compiler works... no >>>>>>>> > configure: error: in >>>>>>>> `/sapdb/SDB/sapdata4/DUMP/httpd-2.2.29/srclib/apr': >>>>>>>> > configure: error: C compiler cannot create executables >>>>>>>> > See `config.log' for more details >>>>>>>> > configure failed for srclib/apr >>>>>>>> > # >>>>>>>> > ====================================================== >>>>>>>> > >>>>>>>> > other details are attached here-with. >>>>>>>> > >>>>>>>> > Please help us. >>>>>>>> > >>>>>>>> > Thanks & regards, >>>>>>>> > >>>>>>>> > Sreejib Ghosh >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >> >> -- >> Jonathan Leffler <[email protected]> #include <disclaimer.h> >> Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org >> "Blessed are we who can laugh at ourselves, for we shall never cease to >> be amused." >> > >
