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@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx