I may be wrong here, but... file /usr/include/rpm/rpmlib.h includes the following header files: /* This is the *only* module users of rpmlib should need to include */ /* and it shouldn't need these :-( */ #include <rpmio.h> #include <dbindex.h> #include <header.h> #include <popt.h> Should the above files (excluding popt.h) not have a prefix of rpm/ as the header files are in the /usr/include/rpm direcotry? I know what the comment says, but something still seem to need them. And there is that whole completeness thing. :) I noticed this when building ucd-snmp (from RH 6.0) with rpm-3.0.3-6x.src.rpm
Add -I/usr/include/rpm to CFLAGS. I can't change to #include <rpm/header.h> because that prevents rpm itself from building. The include used to be #include "header.h" but that prevented some (perl?) automated (and broken!) binding generator from working.