Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 422C8D4B0 for ; Tue, 3 Jul 2012 22:09:18 +0000 (UTC) Received: (qmail 40833 invoked by uid 500); 3 Jul 2012 22:09:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 40815 invoked by uid 500); 3 Jul 2012 22:09:15 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 40779 invoked by uid 99); 3 Jul 2012 22:09:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 22:09:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache.34@oryx.cc designates 192.67.63.122 as permitted sender) Received: from [192.67.63.122] (HELO goldfish.oryx.cc) (192.67.63.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 22:09:08 +0000 Received: from [10.0.76.30] (cpe-76-187-186-14.tx.res.rr.com [76.187.186.14]) by goldfish.oryx.cc (8.14.5/8.14.5) with ESMTP id q63M8lEU022378 for ; Tue, 3 Jul 2012 17:08:47 -0500 (CDT) Message-ID: <4FF36D6E.7080107@oryx.cc> Date: Tue, 03 Jul 2012 17:08:46 -0500 From: Jerry K User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 MIME-Version: 1.0 To: users@httpd.apache.org References: <4FE52AA4.1090600@oryx.cc> In-Reply-To: <4FE52AA4.1090600@oryx.cc> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] [SUMMARY] Re: [users@httpd] Solaris 11 compile/configure problems with httpd 2.2.22 and 2.4.2 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