'make check' fails if boost is not in the std include and link paths
--------------------------------------------------------------------
Key: THRIFT-940
URL: https://issues.apache.org/jira/browse/THRIFT-940
Project: Thrift
Issue Type: Bug
Affects Versions: 0.5, 0.6
Environment: Mac OS X 10.6; g++
gcc version 4.2.1 (Apple Inc. build 5664)
MacPorts 1.9.1
boost @1.44.0 (devel)
Reporter: Christian Lavoie
Assignee: Christian Lavoie
Priority: Minor
Fix For: 0.6
Attachments: v1-thrift-fix-boost-unittests.patch
Without this patch, make check fails thusly:
{noformat}
g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include
-g -O2 -MT UnitTestMain.o -MD -MP -MF .deps/UnitTestMain.Tpo -c -o
UnitTestMain.o UnitTestMain.cpp
mv -f .deps/UnitTestMain.Tpo .deps/UnitTestMain.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include
-g -O2 -MT TMemoryBufferTest.o -MD -MP -MF .deps/TMemoryBufferTest.Tpo -c -o
TMemoryBufferTest.o TMemoryBufferTest.cpp
mv -f .deps/TMemoryBufferTest.Tpo .deps/TMemoryBufferTest.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src -I/opt/local/include
-g -O2 -MT TBufferBaseTest.o -MD -MP -MF .deps/TBufferBaseTest.Tpo -c -o
TBufferBaseTest.o TBufferBaseTest.cpp
mv -f .deps/TBufferBaseTest.Tpo .deps/TBufferBaseTest.Po
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -o UnitTests
UnitTestMain.o TMemoryBufferTest.o TBufferBaseTest.o libtestgencpp.la
-lboost_unit_test_framework -lpthread
libtool: link: g++ -g -O2 -o .libs/UnitTests UnitTestMain.o TMemoryBufferTest.o
TBufferBaseTest.o -Wl,-bind_at_load ./.libs/libtestgencpp.a
/Users/moosefish/ports/src/thrift-svn-1/lib/cpp/.libs/libthrift.dylib
-lboost_unit_test_framework -lpthread
ld: library not found for -lboost_unit_test_framework
collect2: ld returned 1 exit status
make[4]: *** [UnitTests] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.