configure CXX bug
configure CXX bug
От:
"Mark Hollomon" <mhh@nortelnetworks.com>
Дата:
configure seems to be having a problem with --without-CXX
When given, the C++ compiler is set to 'no'.
This was with CVS as of about 10:00 EDT
platform is linux i386 running Debian 'woody'.--- commandline ---./configure --enable-debug --enable-cassert --enable-depend --without-python --without-perl --without-CXX--- OUTPUT ----creating cache ./config.cachechecking host system type... i586-pc-linux-gnuchecking which template to use... linuxchecking whether to build with locale support... nochecking whether to build with Cyrillic recode support... nochecking whether to build with multibyte character support... nochecking for default port number... 5432checking for default soft limit on number of connections... 32checking for gcc... gccchecking whether the C compiler (gcc ) works... yeschecking whether the C compiler (gcc ) is a cross-compiler... nochecking whether we are using GNU C... yeschecking whether gcc accepts -g... yesusing CFLAGS=-O2checking whether the C compiler (gcc -O2 ) works... yeschecking whether the C compiler (gcc -O2 ) is a cross-compiler... nochecking how to run the C preprocessor... gcc -Echecking whether gcc needs -traditional... nochecking setting debug compiler flag... yeschecking setting USE_TCL... disabledchecking whether to build Perl modules... nochecking whether to build Python modules... nochecking whether to build the ODBC driver... nochecking setting ASSERT CHECKING... enabledchecking whether to build C++ modules... yeschecking for c++... nochecking whether the C++ compiler (no ) works... noconfigure: error: installation or configuration problem: C++ compiler cannot create executables.------ config.log --------This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.configure:619: checking host system typeconfigure:642: checking which template to useconfigure:787: checking whether to build with locale supportconfigure:809: checking whether to build with Cyrillic recode supportconfigure:832: checking whether to build with multibyte character supportconfigure:872: checking for default port numberconfigure:901: checking for default soft limit on number of connectionsconfigure:939: checking for gccconfigure:1052: checking whether the C compiler (gcc ) worksconfigure:1068: gcc -o conftest conftest.c 1>&5configure:1094: checking whether the C compiler (gcc ) is a cross-compilerconfigure:1099: checking whether we are using GNU Cconfigure:1108: gcc -E conftest.cconfigure:1127: checking whether gcc accepts -gconfigure:1163: checking whether the C compiler (gcc -O2 ) worksconfigure:1179: gcc -o conftest -O2 conftest.c 1>&5configure:1205: checking whether the C compiler (gcc -O2 ) is a cross-compilerconfigure:1210: checking how to run the C preprocessorconfigure:1231: gcc -E conftest.c >/dev/null 2>conftest.outconfigure:1291: checking whether gcc needs -traditionalconfigure:1374: checking setting debug compiler flagconfigure:1429: checking setting USE_TCLconfigure:1482: checking whether to build Perl modulesconfigure:1499: checking whether to build Python modulesconfigure:1759: checking whether to build the ODBC driverconfigure:1795: checking setting ASSERT CHECKINGconfigure:1843: checking whether to build C++ modulesconfigure:1857: checking for c++configure:1889: checking whether the C++ compiler (no ) worksconfigure:1905: no -o conftest conftest.C 1>&5./configure: no: command not foundconfigure: failed program was:#line 1900 "configure"#include "confdefs.h"int main(){return(0);}
--
Mark Hollomon
mhh@nortelnetworks.com
Re: configure CXX bug
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Mark Hollomon" writes: > configure seems to be having a problem with --without-CXX > When given, the C++ compiler is set to 'no'. > This was with CVS as of about 10:00 EDT Peter E. has been hacking the configure stuff since 7.0. The behavior is now more consistent with GNU/autoconf standard practice, but not 100% backwards compatible. I think that --without-CXX is now the default, and you need to say --with-CXX [=compiler] if you want the C++ code built. regards, tom lane
Re: configure CXX bug
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Mark Hollomon writes: > configure seems to be having a problem with --without-CXX > When given, the C++ compiler is set to 'no'. Fixed. Thanks. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden