Atkins3 / googletest

Automatically exported from code.google.com/p/googletest
0 stars 0 forks source link

1.0.0 release does not compile out of the box on Mac OS X Leopard #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download 1.0.0 release of gtest
2. Unpack to a directory
3. Run ./configure
4. Run make

What is the expected output? What do you see instead?

There should be no errors compiling but I get the following:

depbase=`echo src/gtest.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I./config_aux  -I. -I./include   -g -O2 -MT src/gtest.lo -MD -MP
-MF "$depbase.Tpo" -c -o src/gtest.lo src/gtest.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exit 1; fi
mkdir src/.libs
 g++ -DHAVE_CONFIG_H -I. -I. -I./config_aux -I. -I./include -g -O2 -MT
src/gtest.lo -MD -MP -MF src/.deps/gtest.Tpo -c src/gtest.cc  -fno-common
-DPIC -o src/.libs/gtest.o
In file included from src/gtest.cc:34:
./include/gtest/gtest.h:74:39: error: gtest-internal.h: No such file or
directory
In file included from ./include/gtest/gtest.h:75,
                 from src/gtest.cc:34:
./include/gtest/gtest-message.h:57:37: error: gtest-string.h: No such file
or directory
make: *** [src/gtest.lo] Error 1

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

gtest: 1.0.0
Mac OS X: 10.5.4

Please provide any additional information below.

The problem is solved if instead of ./configure I use ./configure
CPPFLAGS=-DGTEST_NOT_MAC_FRAMEWORK_MODE. Users should just be able to
./configure && make and have it work out of the box.

Original issue reported on code.google.com by evlogimenos on 4 Jul 2008 at 11:54

GoogleCodeExporter commented 9 years ago
I got the same error on Mac OS X 10.4.11. My workaround was
CPPFLAGS=-I./include/gtest/internal ./configure

Using either this configuration or the one given in the initial report, make
succeeds, but make check fails with partial output:
test/gtest_repeat_test.cc: In member function 'virtual
void<unnamed>::BarDeathTest_ThreadSafeAndFast_Test::TestBody()':
test/gtest_repeat_test.cc:114: error: 'EXPECT_DEATH' was not declared in this 
scope
make[1]: *** [test/gtest_repeat_test.o] Error 1
make: *** [check-am] Error 2

Original comment by sneaky.r...@gmail.com on 5 Jul 2008 at 8:11

GoogleCodeExporter commented 9 years ago
I've reported the make check failure as Issue 5 and attached a patch that fixes 
it.

Original comment by sneaky.r...@gmail.com on 5 Jul 2008 at 9:04

GoogleCodeExporter commented 9 years ago
I wrote an another patch for this issue, confirmed on Leopard 10.5.4.

Original comment by mootoh on 5 Jul 2008 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report, guys.

This is expected as the initial release supports building on Linux only.  We
mentioned this in our official announcement on the Google Testing blog.  Sorry 
if it
wasn't obvious.

Having said that, we will add support for Mac OS X and other platforms soon - 
it's a
high priority for us.  Thanks.

Original comment by shiq...@gmail.com on 7 Jul 2008 at 9:57

GoogleCodeExporter commented 9 years ago
This is fixed in trunk and release-1.0.1.

Original comment by shiq...@gmail.com on 9 Jul 2008 at 10:07