/usr/include/rpm/rpmlib.h says: #include "popt.h" /* XXX you now need to install the popt package */ But rpm-devel does not formally require it, so I got an error message trying to use the library...
Fixed in rpm-3.0.2-0.3. Thanks for the report.