Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to compile boardd / mand in debian:bookworm due to libgrpc29. #133

Closed
chhsiao1981 opened this issue Apr 15, 2024 · 3 comments
Closed

Comments

@chhsiao1981
Copy link
Contributor

bbs@946d4dbea71b:~/pttbbs/daemon/boardd$ pmake clean all
rm -f boardc.o boardd.o convert.o article.o strings.o board_service_impl.o bbs++.o evbuffer.o board.pb.cc board.grpc.pb.cc board.pb.h board.grpc.pb.h board.pb.o board.grpc.pb.o boardc boardd
protoc -I. --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=/usr/bin/grpc_cpp_plugin board.proto
ccache clang++ -g -Os -W -Wall -Wunused  -Wno-missing-field-initializers -Wno-address-of-packed-member -pipe -DBBSHOME='"/home/bbs"' -I../../include -Wno-invalid-source-encoding  -std=c++17 -I../.. -I. -Wno-unused-parameter  -c board.pb.cc
ccache clang++ -g -Os -W -Wall -Wunused  -Wno-missing-field-initializers -Wno-address-of-packed-member -pipe -DBBSHOME='"/home/bbs"' -I../../include -Wno-invalid-source-encoding  -std=c++17 -I../.. -I. -Wno-unused-parameter  -c board.grpc.pb.cc
ccache clang++ -g -Os -W -Wall -Wunused  -Wno-missing-field-initializers -Wno-address-of-packed-member -pipe -DBBSHOME='"/home/bbs"' -I../../include -Wno-invalid-source-encoding  -std=c++17 -I../.. -I. -Wno-unused-parameter  -c boardc.cpp
ccache clang++ -g -Os -W -Wall -Wunused  -Wno-missing-field-initializers -Wno-address-of-packed-member -pipe -DBBSHOME='"/home/bbs"' -I../../include -Wno-invalid-source-encoding  -std=c++17 -I../.. -I. -Wno-unused-parameter -o boardc board.pb.o board.grpc.pb.o boardc.o -Os -Wl,--as-needed  ../../util/util_var.o  ../../common/bbs/libcmbbs.a  ../../common/sys/libcmsys.a  ../../common/osdep/libosdep.a  -levent   -pthread -lstdc++  -lgrpc++ -lprotobuf -lgflags
/usr/bin/ld: board.grpc.pb.o: undefined reference to symbol 'gpr_log'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
bmake: stopped in /home/bbs/pttbbs/daemon/boardd
bbs@946d4dbea71b:~/pttbbs/daemon/boardd$ dpkg -l|grep grpc
ii  libgrpc++-dev:amd64             1.51.1-3+b1                    amd64        high performance general RPC framework (development)
ii  libgrpc++1.51:amd64             1.51.1-3+b1                    amd64        high performance general RPC framework
ii  libgrpc-dev:amd64               1.51.1-3+b1                    amd64        high performance general RPC framework (development)
ii  libgrpc29:amd64                 1.51.1-3+b1                    amd64        high performance general RPC framework
ii  protobuf-compiler-grpc          1.51.1-3+b1                    amd64        high performance general RPC framework - protobuf plugin
bbs@946d4dbea71b:~/pttbbs/daemon/boardd$
@chhsiao1981
Copy link
Contributor Author

Can be resolved by adding -lgpr -labsl_synchronization

Need to check the side-effect after adding these flags though~

grpc/grpc#36832

@chhsiao1981
Copy link
Contributor Author

@wens
Copy link
Contributor

wens commented Dec 8, 2024

Fixed with commit 1ef2a12.

@wens wens closed this as completed Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants