okere-prince / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error during compilation on 64-bit Linux #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile on 64 bit linux environment (./configure -prefix=`pwd`/../&& make)
2.
3.

What is the expected output? What do you see instead?
Expected: gmock compiled
Current: /opt/gcc-3.4.2/lib/../lib/libstdc++.so: could not read symbols:
Invalid operation

What version of the product are you using? On what operating system?
1.1.0 on linux

Please provide any additional information below.
I have 64bit machine, my 64 bit specific libraries are located in
/opt/gcc-3.4.2/lib64, but gmock make tries to link with 32bit libs.
I tried to run ./configure like that:
./configure GTEST_LDFLAGS=/opt/gcc-3.4.2/lib64 LDFLAGS=/opt/gcc-3.4.2/lib64

but then I get an error during configuration:
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

and the config log says:
...
#define PACKAGE_NAME "Google C++ Mocking Framework"
#define PACKAGE_STRING "Google C++ Mocking Framework 1.1.0"
#define PACKAGE_TARNAME "gmock"
#define PACKAGE_VERSION "1.1.0"
#define VERSION "1.1.0"

configure: exit 77

Original issue reported on code.google.com by krzysiek...@gmail.com on 24 Sep 2009 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 24 Sep 2009 at 4:37

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 24 Sep 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Chandler, how can we convince make to link with the right lib?  Thanks.

Original comment by w...@google.com on 10 Dec 2009 at 6:41

GoogleCodeExporter commented 9 years ago
This is an autotools build script issue.  We are switching to cmake from it.

Original comment by w...@google.com on 26 Feb 2010 at 7:17