rpmlib does the includes: #include "rpmio.h" #include "dbindex.h" #include "header.h" When an app includes it as #include <rpm/rpmlib.h> this does not work correctly.
Add -I/usr/include/rpm to compilation flags.
the perl XS modules create shadow files of the files included by rpmlib.h, so having it doing #include "header.h" instead of #include <header.h> is a major pain because the shadow files that should not be included are actually included.
Fixed in cvs.