Bug 863218 - Require nss-devel instead of nss to be built on RHEL 6.3
Require nss-devel instead of nss to be built on RHEL 6.3
Product: Fedora
Classification: Fedora
Component: fence-agents (Show other bugs)
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Fabio Massimo Di Nitto
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-10-04 13:55 EDT by Eduardo Bacchi Kienetz
Modified: 2012-10-05 03:14 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-10-05 03:14:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for configure.ac (769 bytes, application/octet-stream)
2012-10-04 13:55 EDT, Eduardo Bacchi Kienetz
no flags Details

  None (edit)
Description Eduardo Bacchi Kienetz 2012-10-04 13:55:24 EDT
Created attachment 621760 [details]
Patch for configure.ac

Description of problem:

fence-agents requires nss-devel to be built from source on RHEL 6.3, as checked out from git://git.fedorahosted.org/fence-agents.git

Version-Release number of selected component (if applicable):

Straight git checkout (master as of Oct 3rd, 2012)

How reproducible:

Steps to Reproduce:
1. git clone git://git.fedorahosted.org/fence-agents.git ; cd fence-agents
2. ./autogen.sh
3. ./configure
Actual results:

Will fail as it's looking for a "nss" package instead of nss-devel.

Expected results:

configure completing successfully

Additional info:
Comment 2 Fabio Massimo Di Nitto 2012-10-05 03:14:35 EDT
This patch doesn't make any sense at all.

I just did a fresh rhel6 install, install git and autotools.

checking for nss... configure: error: Package requirements (nss) were not met:

yum install nss-devel

./configure succeed as expected.

If I apply your patch, even with nss-devel installed:

checking for nss... configure: error: Package requirements (nss-devel) were not met:

There is no nss-devel.pc file anywhere.

pkg-config nss --libs

[root@rhel6-node2 fence-agents]# pkg-config nss --libs
-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl  

[root@rhel6-node2 fence-agents]# pkg-config nss-devel --libs
Package nss-devel was not found in the pkg-config search path.
Perhaps you should add the directory containing `nss-devel.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nss-devel' found

The PKG_CHECK_MODULES invokation states:


and rpm package nss-devel provides MODULES nss (see /usr/lib(64)/pkg-config.

Either your build environment is not correct regarding nss vs nss-devel or you misunderstood how pkg-config works.

Note You need to log in before you can comment on or make changes to this bug.