ristvan / googletest

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

Sadly ~ Ubuntu Linux 9.10 ~ libtool link failure at lib/libgtest.la ~ Any ideas? #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch an instance of Ubuntu Linux 9.10 Karmic on Amazon EC2 and build the 
googletest 
framework from source. Ensure that the libraries that it installs are in 
LIBRARY_PATH, and that 
the header files are in the C-preprocessor include path.
2. Make a new gtest project
3. Run the following commands:

>  g++ $(gtest-config --cppflags --cxxflags) -o ofile.o -c 
sr_router_entities_test.cpp 
>  g++ $(gtest-config --ldflags --libs) -o foo ofile.o 

What is the expected output? What do you see instead?
The outcome (pass/fail) of the single unit test that was inside 
sr_router_entities_test.cpp.

The following is the output instead:
/vol/usr/lib/libgtest.la: file not recognized: File format not 
recognized 
collect2: ld returned 1 exit status 

What version of the product are you using? On what operating system?
Using revision 336 on the svn trunk.

Would appreciate any ideas.
Thank you,
Ali

Original issue reported on code.google.com by al...@cs.stanford.edu on 2 Nov 2009 at 3:09

GoogleCodeExporter commented 9 years ago
Most likely, you are trying to build your test with a Google Test instance 
installed that is 
incompatible with your build settings. There may be two reasons for this: the 
installed 
version is either built with a different (older?) version of GCC or for another 
architecture 
(32 vs. 64 bits).

Original comment by vladlosev on 12 Nov 2009 at 5:31

GoogleCodeExporter commented 9 years ago
I have the same exact problem.  I am using Ubuntu 9.10.

I have tried both 1.3.0 and 1.4.0, both produce the same error.

I chose for the build products to be deposited in a subdirectory of the source
directory.  

I have tried this with and without "make install".

Original comment by ralaba...@gmail.com on 4 Feb 2010 at 3:25

GoogleCodeExporter commented 9 years ago
Please make sure you don't have gtest installed. If your error message (like 
the OP's) 
mentions /usr/lib/libgtest.la, this is the most likely the problem.

Original comment by vladlosev on 4 Feb 2010 at 6:59