calvert1991/googlemock

Error during compilation on 64-bit Linux

Closed this issue · 4 comments

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

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

  • Changed state: Accepted
  • Added labels: OpSys-Linux, Usability

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

  • Changed title: Error during compilation on 64-bit Linux
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

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

  • Changed state: WontFix