Open GoogleCodeExporter opened 9 years ago
Could you do a pull and try it again? Kalev fixed some things dealing with
boost and his changes just barely (a minute ago) got pushed into trunk.
Hopefully the other changes (not as tested as I'd like) that I just pushed
won't break anything =]
Original comment by taxilian
on 15 Sep 2010 at 5:02
updated
# make UnitTest_ScriptingCore
Scanning dependencies of target UnitTest++
[ 3%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/AssertException.cpp.o
[ 6%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/Test.cpp.o
[ 9%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/Checks.cpp.o
[ 12%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestRunner.cpp.o
[ 15%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestResults.cpp.o
[ 18%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestReporter.cpp.o
[ 21%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestReporterStdout.cpp
.o
[ 24%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/ReportAssert.cpp.o
[ 27%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestList.cpp.o
[ 30%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TimeConstraint.cpp.o
[ 33%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/TestDetails.cpp.o
[ 36%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/MemoryOutStream.cpp.o
[ 39%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/DeferredTestReporter.c
pp.o
[ 42%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/DeferredTestResult.cpp
.o
[ 45%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/XmlTestReporter.cpp.o
[ 48%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/CurrentTest.cpp.o
[ 51%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/Posix/SignalTranslator
.cpp.o
[ 54%] Building CXX object
src/unittest-cpp/UnitTest++/CMakeFiles/UnitTest++.dir/src/Posix/TimeHelpers.cpp.
o
Linking CXX static library libUnitTest++.a
[ 54%] Built target UnitTest++
Scanning dependencies of target ScriptingCore
[ 57%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/utf8_tools.cpp.o
[ 60%] Building C object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/utf8.c.o
[ 63%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/DOM/JSAPI_DOMWindow.cpp.o
[ 66%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/DOM/JSAPI_DOMElement.cpp.o
[ 69%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/DOM/JSAPI_DOMDocument.cpp.o
[ 72%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/DOM/JSAPI_DOMNode.cpp.o
[ 75%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/Util/JSArray.cpp.o
[ 78%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/JSAPIAuto.cpp.o
[ 81%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/JSAPI.cpp.o
[ 84%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/JSAPISimple.cpp.o
[ 87%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/BrowserHostWrapper.cpp.o
[ 90%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/BrowserObjectAPI.cpp.o
[ 93%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/AsyncBrowserCall.cpp.o
[ 96%] Building CXX object
src/ScriptingCore/CMakeFiles/ScriptingCore.dir/SyncBrowserCall.cpp.o
Linking CXX static library libScriptingCore.a
[ 96%] Built target ScriptingCore
Scanning dependencies of target UnitTest_ScriptingCore
[100%] Building CXX object
src/ScriptingCoreTest/CMakeFiles/UnitTest_ScriptingCore.dir/ScriptingCoreTest.cp
p.o
Linking CXX executable ../../bin/UnitTest_ScriptingCore
../ScriptingCore/libScriptingCore.a(SyncBrowserCall.cpp.o): In function
`boost::mutex::mutex()':
SyncBrowserCall.cpp:(.text._ZN5boost5mutexC2Ev[_ZN5boost5mutexC5Ev]+0x4b):
undefined reference to `boost::thread_resource_error::thread_resource_error()'
SyncBrowserCall.cpp:(.text._ZN5boost5mutexC2Ev[_ZN5boost5mutexC5Ev]+0x6a):
undefined reference to `boost::thread_resource_error::~thread_resource_error()'
SyncBrowserCall.cpp:(.text._ZN5boost5mutexC2Ev[_ZN5boost5mutexC5Ev]+0x74):
undefined reference to `typeinfo for boost::thread_resource_error'
../ScriptingCore/libScriptingCore.a(SyncBrowserCall.cpp.o): In function
`boost::condition_variable::condition_variable()':
SyncBrowserCall.cpp:(.text._ZN5boost18condition_variableC2Ev[_ZN5boost18conditio
n_variableC5Ev]+0x3f): undefined reference to
`boost::thread_resource_error::thread_resource_error()'
SyncBrowserCall.cpp:(.text._ZN5boost18condition_variableC2Ev[_ZN5boost18conditio
n_variableC5Ev]+0x64): undefined reference to
`boost::thread_resource_error::~thread_resource_error()'
SyncBrowserCall.cpp:(.text._ZN5boost18condition_variableC2Ev[_ZN5boost18conditio
n_variableC5Ev]+0x6e): undefined reference to `typeinfo for
boost::thread_resource_error'
../ScriptingCore/libScriptingCore.a(SyncBrowserCall.cpp.o): In function
`boost::detail::interruption_checker::interruption_checker(pthread_cond_t*)':
SyncBrowserCall.cpp:(.text._ZN5boost6detail20interruption_checkerC2EP14pthread_c
ond_t[_ZN5boost6detail20interruption_checkerC5EP14pthread_cond_t]+0x14):
undefined reference to `boost::detail::get_current_thread_data()'
../ScriptingCore/libScriptingCore.a(SyncBrowserCall.cpp.o): In function
`boost::unique_lock<boost::mutex>::lock()':
SyncBrowserCall.cpp:(.text._ZN5boost11unique_lockINS_5mutexEE4lockEv[boost::uniq
ue_lock<boost::mutex>::lock()]+0x35): undefined reference to
`boost::lock_error::lock_error()'
SyncBrowserCall.cpp:(.text._ZN5boost11unique_lockINS_5mutexEE4lockEv[boost::uniq
ue_lock<boost::mutex>::lock()]+0x5a): undefined reference to
`boost::lock_error::~lock_error()'
SyncBrowserCall.cpp:(.text._ZN5boost11unique_lockINS_5mutexEE4lockEv[boost::uniq
ue_lock<boost::mutex>::lock()]+0x64): undefined reference to `typeinfo for
boost::lock_error'
../ScriptingCore/libScriptingCore.a(BrowserHostWrapper.cpp.o): In function
`FB::BrowserHostWrapper::isMainThread()':
/home/nikita/work/Firefox/firebreath/src/ScriptingCore/BrowserHostWrapper.cpp:55
: undefined reference to `boost::this_thread::get_id()'
collect2: ld returned 1 exit status
make[3]: *** [bin/UnitTest_ScriptingCore] Error 1
make[2]: *** [src/ScriptingCoreTest/CMakeFiles/UnitTest_ScriptingCore.dir/all]
Error 2
make[1]: *** [src/ScriptingCoreTest/CMakeFiles/UnitTest_ScriptingCore.dir/rule]
Error 2
make: *** [UnitTest_ScriptingCore] Error 2
Original comment by bignikita
on 15 Sep 2010 at 5:30
we should add to CMakeLists.txt
find_package (Threads REQUIRED)
and change src/ScriptingCoreTest/CMakeLists.txt
target_link_libraries (${PROJNAME}
ScriptingCore
UnitTest++
+ ${Boost_THREAD_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
)
Original comment by bignikita
on 15 Sep 2010 at 5:43
The same changes should be made to src/NpapiPluginTest/CMakeLists.txt
Original comment by bignikita
on 15 Sep 2010 at 6:05
heh, and to
diff -r a0db20659039 cmake/projectConfig_main.cmake.in
--- a/cmake/projectConfig_main.cmake.in Tue Sep 14 12:09:15 2010 -0600
+++ b/cmake/projectConfig_main.cmake.in Wed Sep 15 10:13:06 2010 +0400
@@ -57,6 +57,7 @@
${PLUGIN_PREFIX}_PluginWindow
ScriptingCore
PluginCore
+ ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
)
Original comment by bignikita
on 15 Sep 2010 at 6:13
Should be fixed in
http://code.google.com/p/firebreath/source/detail?r=aed8c03b35a0b5095447b0f75ba6
7b4b6d672535
Can you confirm the fix, Nikita?
Original comment by kalevlember@gmail.com
on 15 Sep 2010 at 10:31
yes, it is fixed
Thank you!
Original comment by bignikita
on 15 Sep 2010 at 10:42
Original issue reported on code.google.com by
bignikita
on 15 Sep 2010 at 4:55