Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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 Doug Newgard (Scimmia) - Friday, 26 June 2020, 23:04 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No


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:
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