root@stripped writes:
> >Description:
> configure script failed at c++ check. aparantly c++ cannot create executables... i
upgraded gcc to 2.8.1
> still no joy
> >How-To-Repeat:
> ./configure - that's all.
>
> >Fix:
> unknown
>
> >Submitter-Id: <submitter ID>
> >Originator: The Root of All Evil
> >Organization:
> ,----------------------,
> | The Root Of All Evil |
> | @ earth.nailed.com |
> '----------------------'
> >
> >MySQL support: [none | licence | email support | extended email support ] none
> >Synopsis: configure error with c++
> >Severity: serious
> >Priority: high
> >Category: mysql
> >Class:
> >Release: mysql-3.22.21 (Source distribution)
>
> >Environment:
>
> System: Linux earth.nailed.com 2.0.36 #2 Thu Apr 1 10:05:18 GMT 1999 i586 unknown
> Architecture: i586
>
> Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
> GCC: Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/specs
> gcc version 2.8.1
> Compilation info: CC='egcs' CFLAGS='-O6 -fomit-frame-pointer -mpentium' CXX='egcs'
CXXFLAGS='-O6 -fomit-frame-pointer -felide-constructors -fno-exceptions
-fno-rtti -mpentium' LDFLAGS=''
> Configure command: ./configure --enable-shared --enable-assembler --disable-shared
--with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static
--with-mysqld-user=mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/
--exec-prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--localstatedir=/var/lib/mysql --infodir=/usr/info --includedir=/usr/include
--mandir=/usr/man
> Perl: This is perl, version 5.004_03
Hello!
From the manual:
-----
By default, configure picks c++ as the compiler name and GNU c++ links
with -lg++. If you are using gcc, that behavior can cause problems
during configuration such as this:
configure: error: installation or configuration problem: C++ compiler
cannot create executables.
You might also observe problems during compilation related to g++,
libg++ or libstdc++. One cause of these problems is that you may not
have g++, or you may have g++ but not libg++ or libstdc++. Take a look
at the `config.log' file. It should contain the exact reason why your
c++ compiler didn't work! To work around these problems, you can use
gcc as your C++ compiler. Try setting the environment variable CXX to
"gcc -O3". For example:
shell> CXX="gcc -O3" ./configure
This works because gcc compiles C++
sources as well as g++ does, but does not link in libg++ or libstdc++
by default. Another way to fix these problems, of course, is to
install g++, libg++ and libstdc++.
-----
Regards,
Jani
--
+---------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql@stripped |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Jani Tolonen |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto: jani@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Helsinki |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|_____ Finland |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+---------------------------------------------------------------------+