On Wed, 2008-03-19 at 15:42 +0100, Andreas Kring wrote:
Tak for hjælpen! Det virkede perfekt, men desværre får jeg nu en anden
fejl længere ned i kompileringprocessen. Når jeg kører
$ ./configure CC=/usr/local/bin/gcc CPP=/usr/local/bin/cpp
CXX=/usr/local/bin/g++ CXXCPP=/usr/local/bin/cpp
CXXLDFLAGS="-L/usr/local/lib" LDFLAGS="-L/usr/local/lib"
CPPFLAGS="-I/usr/local/include"
får jeg følgende fejl:
*** C++ Compiler and preprocessor
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/bin/g++ accepts -g... yes
checking dependency style of /usr/local/bin/g++... gcc3
checking how to run the C++ preprocessor... /usr/local/bin/cpp
checking if want C++ exception handling... no
checking whether /usr/local/bin/g++ has new(std::nothrow)... no
checking for C++ template repository directory... templates not supported?
not used
checking for C++ compiler template parameters... none needed
checking for type bool... no
checking for true/false... no
configure: WARNING: *** Your C++ compiler does not support the bool data
type.
configure: WARNING: *** LAM requires a C++ compiler with support for the
bool
configure: WARNING: *** data type.
configure: error: cannot continue
Hvad kan jeg gøre for at afhjælpe det?
(hele config.log filen kan ses nedenfor)
configure:7344: checking if want C++ exception handling
configure:7346: result: no
configure:7627: checking whether /usr/local/bin/g++ has new(std::nothrow)
configure:7640: /usr/local/bin/g++ conftest.cc -o conftest
conftest.cc:3: error: second argument of 'int main(int, char*)' should
be 'char **'
configure:7648: here is the program that failed:
#include <new>
int main(int argc, char* argv) {
int *baz;
unsigned int foo = 3;
baz = new(std::nothrow) int;
baz = new(std::nothrow) int[foo - 1];
}
Det ser underligt ud. Der er flere fejl i loggen der handler om "char *
argv" i stedet for det der egentlig skal checkes af configure.
Det ligner for mig en fejl i configure, og configure er dannet af
autoconf version 2.59 (står der i loggen). På min Fedora 7 er vi oppe i
version 2.61 af autoconf.
Prøv at gendanne configure ved at køre autoconf (du har nok også en
nyere autoconf end 2.59), og prøv igen ...