On Sep 18, 2009, at 5:36 AM, Manoj Palhade wrote:
> I am trying to implement sample program mentioned in “Maximum RPM”. My
> understanding is that this content is not update with current version
> of RPM source code.
The examples in "Maximum RPM" won't compile with any version
of RPM released in the last 5-6 years. The examples were written in
lots has changed since.
> 1. In sample program I am getting following error.
> undefined reference to `headerDump'
> undefined reference to `headerFreeIterator'
> undefined reference to `headerGetEntry'
> undefined reference to `headerInitIterator'
> undefined reference to `headerNextIterator'
> undefined reference to `rpmFreeSignature'
> undefined reference to `rpmReadPackageInfo'
If you post the source I can ttry to rewrite o the current @rpm5.org
> 2. Also As mentioned in “Maximum RPM”; I included rpmlib.h but
> able to find header.h.
Yes. Most of what used to be in header.h has moved to <rpmdb/rpmtag.h>.
But rpmReadPackageFile() is likely what you are looking for.
73 de Jeff
Received on Fri Sep 18 14:42:49 2009