FAQ
I am experiencing problems with the configure script in attempting to
compile, and actually just running the ./configure script on (2)
different Solaris 11 Sparc based systems.

Systems - T5120 w/32 Gb ram and ample disk space
T2000 w/16 Gb ram and also ample disk space

Both systems are new/fresh/recent Solaris 11 installs.
I have compiled a multitude of other open source software under Solaris
11, and I am confident in my C compiler (GCC 4.5.2 as supplied by
Oracle/Solaris 11).

======================================
bash-4.1# which gcc
/bin/gcc

bash-4.1# gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/sparc-sun-solaris2.11/4.5.2/lto-wrapper
Target: sparc-sun-solaris2.11
Configured with:
/export/home/hudson/workspace/nightly/build/sparc/components/gcc45/gcc-4.5.2/configure
CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5
--mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin
--libdir=/usr/gcc/4.5/lib --sbindir=/usr/gcc/4.5/sbin
--enable-languages=c,c++,fortran,objc --enable-shared
--with-gmp-include=/usr/include/gmp
--with-mpfr-include=/usr/include/mpfr --prefix=/usr/gcc/4.5
--mandir=/usr/gcc/4.5/share/man --infodir=/usr/gcc/4.5/share/info
--libexecdir=/usr/gcc/4.5/lib CFLAGS='-g -O2 '
Thread model: posix
gcc version 4.5.2 (GCC)
bash-4.1#
======================================

I am failing at the same place, both with Apache httpd 2.2.22 and 2.4.2.

It should go without saying that I successfully compiled and installed
apr and apr-util prior to attempting the 2.4.2 compile.


This is what my ./configure output looks like for httpd-2.2.22. It is
identical on both systems. I get similar, if not identical, output for
httpd 2.4.2.

bash-4.1# pwd

/usr/local/src/h/httpd-2.2.22

bash-4.1# ./configure

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... sparc-sun-solaris2.11
checking host system type... sparc-sun-solaris2.11
checking target system type... sparc-sun-solaris2.11

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CPP to "cc -E"
setting CFLAGS to " "
setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/usr/local/src/h/httpd-2.2.22':
configure: error: C compiler cannot create executables
See `config.log' for more details.

bash-4.1#

======================================

I am not sure what the correct procedure is for sharing the config.log
file. Rather that making this email longer that it already is or adding
it to this email as an attachment, I placed it here:

http://www.oryx.cc/config.log

TIA for any positive comments or suggestions.

Jerry




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Search Discussions

  • Rainer Jung at Jun 23, 2012 at 8:57 pm

    On 23.06.2012 04:32, Jerry K wrote:
    I am experiencing problems with the configure script in attempting to
    compile, and actually just running the ./configure script on (2)
    different Solaris 11 Sparc based systems.

    Systems - T5120 w/32 Gb ram and ample disk space
    T2000 w/16 Gb ram and also ample disk space

    Both systems are new/fresh/recent Solaris 11 installs.
    I have compiled a multitude of other open source software under Solaris
    11, and I am confident in my C compiler (GCC 4.5.2 as supplied by
    Oracle/Solaris 11).

    ======================================
    bash-4.1# which gcc
    /bin/gcc

    bash-4.1# gcc -v

    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/sparc-sun-solaris2.11/4.5.2/lto-wrapper
    Target: sparc-sun-solaris2.11
    Configured with:
    /export/home/hudson/workspace/nightly/build/sparc/components/gcc45/gcc-4.5.2/configure
    CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
    CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin
    --libdir=/usr/gcc/4.5/lib --sbindir=/usr/gcc/4.5/sbin
    --enable-languages=c,c++,fortran,objc --enable-shared
    --with-gmp-include=/usr/include/gmp
    --with-mpfr-include=/usr/include/mpfr --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --infodir=/usr/gcc/4.5/share/info
    --libexecdir=/usr/gcc/4.5/lib CFLAGS='-g -O2 '
    Thread model: posix
    gcc version 4.5.2 (GCC)
    bash-4.1#
    ======================================

    I am failing at the same place, both with Apache httpd 2.2.22 and 2.4.2.

    It should go without saying that I successfully compiled and installed
    apr and apr-util prior to attempting the 2.4.2 compile.


    This is what my ./configure output looks like for httpd-2.2.22. It is
    identical on both systems. I get similar, if not identical, output for
    httpd 2.4.2.

    bash-4.1# pwd

    /usr/local/src/h/httpd-2.2.22

    bash-4.1# ./configure

    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... sparc-sun-solaris2.11
    checking host system type... sparc-sun-solaris2.11
    checking target system type... sparc-sun-solaris2.11

    Configuring Apache Portable Runtime library ...

    checking for APR... yes
    setting CPP to "cc -E"
    setting CFLAGS to " "
    setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
    setting LDFLAGS to " "

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: in `/usr/local/src/h/httpd-2.2.22':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.

    bash-4.1#

    ======================================

    I am not sure what the correct procedure is for sharing the config.log
    file. Rather that making this email longer that it already is or adding
    it to this email as an attachment, I placed it here:

    http://www.oryx.cc/config.log

    TIA for any positive comments or suggestions.
    I'd say the first problematic output line is:

    configure:4764: gcc -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
    cc1: error: unrecognized command line option "-mt"

    The flag "-mt" is valid for your bootstrap compiler, ie. the Sun
    Workshop compiler, but not for gcc. It seems you have it somewhere set
    in CFLAGS, CPPFLAGS or LDFLAGS.

    Regards,

    Rainer



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org
  • Rainer Jung at Jun 23, 2012 at 10:01 pm

    On 23.06.2012 22:56, Rainer Jung wrote:
    On 23.06.2012 04:32, Jerry K wrote:
    I am experiencing problems with the configure script in attempting to
    compile, and actually just running the ./configure script on (2)
    different Solaris 11 Sparc based systems.

    Systems - T5120 w/32 Gb ram and ample disk space
    T2000 w/16 Gb ram and also ample disk space

    Both systems are new/fresh/recent Solaris 11 installs.
    I have compiled a multitude of other open source software under Solaris
    11, and I am confident in my C compiler (GCC 4.5.2 as supplied by
    Oracle/Solaris 11).

    ======================================
    bash-4.1# which gcc
    /bin/gcc

    bash-4.1# gcc -v

    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/sparc-sun-solaris2.11/4.5.2/lto-wrapper

    Target: sparc-sun-solaris2.11
    Configured with:
    /export/home/hudson/workspace/nightly/build/sparc/components/gcc45/gcc-4.5.2/configure

    CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
    CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin
    --libdir=/usr/gcc/4.5/lib --sbindir=/usr/gcc/4.5/sbin
    --enable-languages=c,c++,fortran,objc --enable-shared
    --with-gmp-include=/usr/include/gmp
    --with-mpfr-include=/usr/include/mpfr --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --infodir=/usr/gcc/4.5/share/info
    --libexecdir=/usr/gcc/4.5/lib CFLAGS='-g -O2 '
    Thread model: posix
    gcc version 4.5.2 (GCC)
    bash-4.1#
    ======================================

    I am failing at the same place, both with Apache httpd 2.2.22 and 2.4.2.

    It should go without saying that I successfully compiled and installed
    apr and apr-util prior to attempting the 2.4.2 compile.


    This is what my ./configure output looks like for httpd-2.2.22. It is
    identical on both systems. I get similar, if not identical, output for
    httpd 2.4.2.

    bash-4.1# pwd

    /usr/local/src/h/httpd-2.2.22

    bash-4.1# ./configure

    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... sparc-sun-solaris2.11
    checking host system type... sparc-sun-solaris2.11
    checking target system type... sparc-sun-solaris2.11

    Configuring Apache Portable Runtime library ...

    checking for APR... yes
    setting CPP to "cc -E"
    setting CFLAGS to " "
    setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
    setting LDFLAGS to " "

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: in `/usr/local/src/h/httpd-2.2.22':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.

    bash-4.1#

    ======================================

    I am not sure what the correct procedure is for sharing the config.log
    file. Rather that making this email longer that it already is or adding
    it to this email as an attachment, I placed it here:

    http://www.oryx.cc/config.log

    TIA for any positive comments or suggestions.
    I'd say the first problematic output line is:

    configure:4764: gcc -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
    cc1: error: unrecognized command line option "-mt"

    The flag "-mt" is valid for your bootstrap compiler, ie. the Sun
    Workshop compiler, but not for gcc. It seems you have it somewhere set
    in CFLAGS, CPPFLAGS or LDFLAGS.
    Note also, that you have

    CC='gcc'

    but

    CPP='cc -E'
    CPPFLAGS=' -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'

    So you are using Sun Workshop Compiler as preprocessor, but gcc as
    compiler. Mixing tools from cc and gcc will likely not work.

    In addition you gcc seems to be in /usr/gcc/4.5, but your path contains:

    PATH: /sbin
    PATH: /usr/sbin
    PATH: /usr/local/bin
    PATH: /usr/dt/bin
    PATH: /bin
    PATH: /usr/bin
    PATH: /usr/sfw/bin
    PATH: /usr/local/sbin
    PATH: /usr/openwin/bin
    PATH: /usr/ccs/bin
    PATH: /usr/local/scripts

    so configure should not even find gcc, except you moved it into one of
    those directories.

    Regards,

    Rainer

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org
  • Jerry K at Jul 3, 2012 at 10:09 pm
    SUMMARY

    I wanted to thank Rainer Jung who sent (2) emails of suggestions.
    Rainer provided the only responses to my question.

    additional qualifiers
    ---------------------
    In addition to the details I provided below, I will qualify again that
    both of the systems used were new Solaris 11 installs.

    I would also state in response to comments made, that the Sun/Oracle
    studio compiler was not, and has never been installed on either of these
    systems.

    Resolution
    ----------
    In Apache httpd 2.2, the APR and APR-UTIL were included in the httpd
    source code sub-tree. Those of you who are working with Apache 2.4 know
    that APR and APR-UTIL has been pulled from the httpd directory sub-tree,
    and are now pre-req's for Apache httpd 2.4 and greater compiles.

    Apparently, Oracle installs a copy of APR and APR-UTIL binaries as part
    of the OS install. I am making this assumption as I did not install
    either of those after the fact.

    When I ran the Apache httpd ver 2.2.22 ./configure file with no
    additional command line parameters, it not only found the APR and
    APR-UTIL provided by Oracle, but it also picked up compiler settings.
    And as you can guess, Oracle compiled their APR & APR-UTIL using the
    Sun/Oracle studio compiler. Try and figure that out from the details
    below. Again, thank you to Rainer Jung who's comments got me on the
    right track.

    I very rarely use the Sun Studio compiler, and didn't realize that the
    -mt flags were flags from the Sun Studio compiler. All I realized at
    the time was that GCC 4.5 didn't like it, and I couldn't figure out how
    to get rid of them.

    FIX
    ===

    Incredibly simple.

    One configure option resolved everything. My ./configure needed to have
    this option::

    --with-included-apr

    .....................................................

    I hope that this summary helps someone else.

    Jerry



    On 06/22/12 09:32 PM, Jerry K wrote:
    I am experiencing problems with the configure script in attempting to
    compile, and actually just running the ./configure script on (2)
    different Solaris 11 Sparc based systems.

    Systems - T5120 w/32 Gb ram and ample disk space
    T2000 w/16 Gb ram and also ample disk space

    Both systems are new/fresh/recent Solaris 11 installs.
    I have compiled a multitude of other open source software under Solaris
    11, and I am confident in my C compiler (GCC 4.5.2 as supplied by
    Oracle/Solaris 11).

    ======================================
    bash-4.1# which gcc
    /bin/gcc

    bash-4.1# gcc -v

    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/sparc-sun-solaris2.11/4.5.2/lto-wrapper
    Target: sparc-sun-solaris2.11
    Configured with:
    /export/home/hudson/workspace/nightly/build/sparc/components/gcc45/gcc-4.5.2/configure
    CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
    CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin
    --libdir=/usr/gcc/4.5/lib --sbindir=/usr/gcc/4.5/sbin
    --enable-languages=c,c++,fortran,objc --enable-shared
    --with-gmp-include=/usr/include/gmp
    --with-mpfr-include=/usr/include/mpfr --prefix=/usr/gcc/4.5
    --mandir=/usr/gcc/4.5/share/man --infodir=/usr/gcc/4.5/share/info
    --libexecdir=/usr/gcc/4.5/lib CFLAGS='-g -O2 '
    Thread model: posix
    gcc version 4.5.2 (GCC)
    bash-4.1#
    ======================================

    I am failing at the same place, both with Apache httpd 2.2.22 and 2.4.2.

    It should go without saying that I successfully compiled and installed
    apr and apr-util prior to attempting the 2.4.2 compile.


    This is what my ./configure output looks like for httpd-2.2.22. It is
    identical on both systems. I get similar, if not identical, output for
    httpd 2.4.2.

    bash-4.1# pwd

    /usr/local/src/h/httpd-2.2.22

    bash-4.1# ./configure

    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... sparc-sun-solaris2.11
    checking host system type... sparc-sun-solaris2.11
    checking target system type... sparc-sun-solaris2.11

    Configuring Apache Portable Runtime library ...

    checking for APR... yes
    setting CPP to "cc -E"
    setting CFLAGS to " "
    setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
    setting LDFLAGS to " "

    Configuring Apache Portable Runtime Utility library...

    checking for APR-util... yes
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: in `/usr/local/src/h/httpd-2.2.22':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.

    bash-4.1#

    ======================================

    I am not sure what the correct procedure is for sharing the config.log
    file. Rather that making this email longer that it already is or adding
    it to this email as an attachment, I placed it here:

    http://www.oryx.cc/config.log

    TIA for any positive comments or suggestions.

    Jerry

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
    For additional commands, e-mail: users-help@httpd.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesapache
postedJun 23, '12 at 2:32a
activeJul 3, '12 at 10:09p
posts4
users2
websitehttpd.apache.org
irc#httpd

2 users in discussion

Rainer Jung: 2 posts Jerry K: 2 posts

People

Translate

site design / logo © 2022 Grokbase