This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch fix-undefined-ref-to-task_code-write
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to
refs/heads/fix-undefined-ref-to-task_code-write by this push:
new 235797c40 fix(build): fix undefined reference to dsn::task_code::write
while building by gcc on ubuntu2004
235797c40 is described below
commit 235797c40ccf43d5f082416d23dc3841d5814dd9
Author: Dan Wang <[email protected]>
AuthorDate: Mon Oct 24 15:27:38 2022 +0800
fix(build): fix undefined reference to dsn::task_code::write while building
by gcc on ubuntu2004
---
scripts/recompile_thrift.sh | 2 +-
src/geo/lib/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/recompile_thrift.sh b/scripts/recompile_thrift.sh
index 1122daa6f..977adfc29 100755
--- a/scripts/recompile_thrift.sh
+++ b/scripts/recompile_thrift.sh
@@ -31,7 +31,7 @@ mkdir -p $TMP_DIR
$THIRDPARTY_ROOT/output/bin/thrift --gen cpp:moveable_types -out $TMP_DIR
../idl/rrdb.thrift
sed 's/#include "dsn_types.h"/#include "utils\/rpc_address.h"\n#include
"runtime\/task\/task_code.h"\n#include "utils\/blob.h"/' $TMP_DIR/rrdb_types.h
> ../src/include/rrdb/rrdb_types.h
-sed 's/#include "rrdb_types.h"/#include <rrdb\/rrdb_types.h>/'
$TMP_DIR/rrdb_types.cpp > ../src/base/rrdb_types.cpp
+sed 's/#include "rrdb_types.h"/#include <rrdb\/rrdb_types.h>\n#include
"common/serialization_helper/thrift_helper.h"/' $TMP_DIR/rrdb_types.cpp >
../src/base/rrdb_types.cpp
rm -rf $TMP_DIR
diff --git a/src/geo/lib/CMakeLists.txt b/src/geo/lib/CMakeLists.txt
index 3649037e3..094bfb352 100644
--- a/src/geo/lib/CMakeLists.txt
+++ b/src/geo/lib/CMakeLists.txt
@@ -36,4 +36,4 @@ set(MY_BOOST_LIBS Boost::system Boost::filesystem)
dsn_add_static_library()
-target_link_libraries(${MY_PROJ_NAME} PRIVATE pegasus_base dsn_runtime) #
TODO(huangwei5): dsn_add_static_library doesnt link libs, need fix
+target_link_libraries(${MY_PROJ_NAME} PRIVATE pegasus_base) # TODO(huangwei5):
dsn_add_static_library doesnt link libs, need fix
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]