Bug 76827

Summary: genhdlist (from the anaconda source package) doesn't work
Product: [Retired] Red Hat Linux Reporter: Need Real Name <suntong001>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-27 17:52:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-10-27 17:52:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1)
Gecko/20020823 Netscape/7.0

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):


How reproducible:
Always

Steps to Reproduce:
1. Install the anaconda source package
2. cd util
3. make genhdlist


Actual Results:  

Please note that I don't have my RH8 box at hand, I'll try to be as accurate as
possible.

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.
Reason: ??
Solve: see below "Additional Information"



Expected Results:  hdlist & hdlist2 generated in base directory.

Additional info:

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.

Comment 1 Jeremy Katz 2002-10-30 19:16:22 UTC
You need to install the librpm404-devel package