FS#67127 - [opendht] Missing msgpack-c header files when compiling a project
Attached to Project:
Community Packages
Opened by secret (dec05eba) - Friday, 26 June 2020, 21:25 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Friday, 18 March 2022, 21:51 GMT
Opened by secret (dec05eba) - Friday, 26 June 2020, 21:25 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Friday, 18 March 2022, 21:51 GMT
|
Details
Description:
opendht right now only has a make dependency on msgpack-c, but opendht includes msgpack from its public header files as well, so msgpack-c needs to be installed when using opendht. Steps to reproduce: compile the c++ example available in the README file here: https://github.com/savoirfairelinux/opendht with: g++ main.cpp $(pkg-config --cflags --libs opendht) and it fails with: ``` In file included from /usr/include/opendht/dhtrunner.h:24, from /usr/include/opendht.h:21, from main.cpp:1: /usr/include/opendht/infohash.h:24:10: fatal error: msgpack.hpp: No such file or directory 24 | #include <msgpack.hpp> | ^~~~~~~~~~~~~ compilation terminated. ``` it compiles fine after installing msgpack-c. |
This task depends upon
Closed by Bruno Pagani (ArchangeGabriel)
Friday, 18 March 2022, 21:51 GMT
Reason for closing: Implemented
Additional comments about closing: opendht-1:2.3.5-2
Friday, 18 March 2022, 21:51 GMT
Reason for closing: Implemented
Additional comments about closing: opendht-1:2.3.5-2
Comment by
Bruno Pagani (ArchangeGabriel) -
Monday, 18 October 2021, 20:57 GMT
Maybe I should add msgpack-cxx as an optdep?