Red Hat Bugzilla – Bug 76827
genhdlist (from the anaconda source package) doesn't work
Last modified: 2007-03-26 23:58:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1)
Description of problem:
1. genhdlist can't be compiled out of box
2. It failed to work (segmentation fault)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install the anaconda source package
2. cd util
3. make genhdlist
Please note that I don't have my RH8 box at hand, I'll try to be as accurate as
Symptom: rpm.h not found.
Reason: -I point to the wrong location
Solve: use -I/user/include/rpm instead of -I/user/include/rpm-4.0.4
Symptom: -lrpm-4.0.4 not found.
Reason: cc is looking for librpm4.0.4.a, but only librpm4.0.4.so is installed.
So are the rest of libraries (librpmdb, etc)
Solve: remove the -static compiler switch
Symptom: segmentation fault
Duplicate: Use it to generate the hdlist files as it is supposed to be. I am
able to generate hdlist files in previous RH versions.
Solve: see below "Additional Information"
Expected Results: hdlist & hdlist2 generated in base directory.
In order to look for other alternatives, I've tried the following:
- I install the rpm source release, compiled, and installed. But the problem
remains (still no librpm4.0.4.a, only librpm4.0.4.so installed)
- Tried to build against rpm-4.1 library. Found out that it is an irrelevant
issue because of one function (rpmReadHeader?) is dropped from 4.1, because of
the link failure.
You need to install the librpm404-devel package