PDA

View Full Version : Configure failure



shadowa1ker
06-21-2002, 08:21 AM
Hello
I get the following error when trying to install showeq for the first time:
make -f Makefile.dist && CC=gcc3 CXX=g++3 QTDIR=/usr/lib/qt ./configure && make && make install
Adding libtool support...................................... done!
Generating aclocal.m4 from configure.in and acinclude.m4.... done!

Checking Autoheader version................................. done!
>> Using Autoheader version................................. Autoconf)
Roland

Free
free
even!

Generating configure template (config.h).................... done!
Generating Makefile.in from Makefile.am..................... done!

Checking Autoconf version................................... done!
>> Using Autoconf version................................... Autoconf)
David

Free
free
even!

Finalizing Autoconf script (configure)...................... done!
Releasing temporary file handles............................ done!


******************************************
Success! Please type the following:

./configure && make


This will configure and compile ShowEQ...

If you are installing ShowEQ for the first
time, be sure to add '&& make install' to
the end of the compile process...
******************************************

checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
/seq/showeq/missing: Unknown `--run' option
Try `/seq/showeq/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc3... gcc3
checking for g++3... g++3
checking for supported compiler version... checking for style of include used by make... GNU
checking for C++ compiler default output... configure: error: C++ compiler cannot create executables

config.log:
cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.53. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = odin
uname -m = i586
uname -r = 2.4.18
uname -s = Linux
uname -v = #2 Thu Jun 20 10:57:30 CDT 2002

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i586
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde/bin
PATH: /usr/lib/qt-3.0.4/bin
PATH: /usr/share/texmf/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1441: checking build system type
configure:1459: result: i586-pc-linux-gnu
configure:1467: checking host system type
configure:1481: result: i586-pc-linux-gnu
configure:1489: checking target system type
configure:1503: result: i586-pc-linux-gnu
configure:1534: checking for a BSD-compatible install
configure:1588: result: /usr/bin/ginstall -c
configure:1599: checking whether build environment is sane
configure:1642: result: yes
configure:1668: WARNING: `missing' script is too old or missing
configure:1676: checking for gawk
configure:1692: found /usr/bin/gawk
configure:1702: result: gawk
configure:1712: checking whether make sets ${MAKE}
configure:1732: result: yes
configure:1834: checking whether to enable maintainer-specific portions of Makefiles
configure:1843: result: no
configure:1865: checking for gcc3
configure:1881: found /usr/bin/gcc3
configure:1891: result: gcc3
configure:1905: checking for g++3
configure:1921: found /usr/bin/g++3
configure:1931: result: g++3
configure:1964: checking for supported compiler version
configure:1981: checking for style of include used by make
configure:2009: result: GNU
configure:2107: checking for C++ compiler version
configure:2110: g++3 --version </dev/null >&5
3.0.4
configure:2113: $? = 0
configure:2115: g++3 -v </dev/null >&5
Reading specs from /usr/local/gcc-3.0.4/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/specs
Configured with: gcc-3.0.4/configure --prefix=/usr/local/gcc-3.0.4
Thread model: single
gcc version 3.0.4
configure:2118: $? = 0
configure:2120: g++3 -V </dev/null >&5
g++3: argument to `-V' missing

configure:2123: $? = 1
configure:2149: checking for C++ compiler default output
configure:2152: g++3 conftest.cc >&5
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure:2155: $? = 1
configure: failed program was:
#line 2126 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:2182: error: C++ compiler cannot create executables

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i586-pc-linux-gnu
ac_cv_build_alias=i586-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc3
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++3
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i586-pc-linux-gnu
ac_cv_host_alias=i586-pc-linux-gnu
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CCd=gcc3
ac_cv_prog_CXXd=g++3
ac_cv_prog_make_make_set=yes
ac_cv_target=i586-pc-linux-gnu
ac_cv_target_alias=i586-pc-linux-gnu
lt_cv_sys_path_separator=:

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "showeq"
#define VERSION "4.2.11"

configure: exit 77

Any ideas? I have used export to set CC and CXX to same as above command line.

high_jeeves
06-21-2002, 08:51 AM
/usr/bin/ld: cannot find -lstdc++

Looks like you are missing libstdc++-3.0.4...

--Jeeves

shadowa1ker
06-21-2002, 09:16 AM
I can see the libstdc++-3 installed under /usr/lib. Do i need to make an additional link to this library under a different name? The gcc-3.0.4 installation (from ftp.gnu.org gcc-3.0.4.tar.gz) went without a hitch. Are there additional gcc packages that I need that aren't included in the above tar.gz file?

high_jeeves
06-21-2002, 09:20 AM
Did you build your own gcc? If so, you MAY need to do a "ldconfig" to update your ld.so.cache... not sure if this will work, but I'd give it a shot..

--Jeeves

shadowa1ker
06-21-2002, 10:10 AM
The problem was that when I created gcc 3.0.4, it put the libraries in what seems to me a rather obscure place but to the more experienced it may be obvious. i installed gcc in /usr/local/gcc-3.0.4. It put all of the libraries in /usr/local/gcc-3.0.4/lib. Seems logical (in hindsight) but it took me forever to track this down. I copied the files over to /usr/i586-pc-linux/lib and added this path to /etc/ld.so.conf. Ran ldconfig and wala this problem was solved. New ones have arrived of course - but they are unrelated.