From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
rpmbuild dies in config, giving errors:
checking for SNMP support... yes, shared
checking OpenSSL dir for SNMP... no
checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log
for more inf
error: Bad exit status from /usr/local/rpm/tmp/rpm-tmp.92234 (%build)
RPM build errors:
Bad exit status from /usr/local/rpm/tmp/rpm-tmp.92234 (%build)
This turns out to refer to .../BUILD/php-5.0.2/build-cgi/config.log,
which (I'm sorry to say I just overwrote that log, having fixed the
problem locally, so no actual output) is dying trying to compile an
SNMP test program because it can't find the libelf.h header.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Be sure that elfutils-libelf-devel isn't installed
2. rpm -ivh php-5.0.2-8.src.rpm
3. rpmbuild -ba php.spec
Actual Results: rpmbuild doesn't complain about the missing
build-requires; it simply dies during config as per my description.
Expected Results: rpmbuild complains about missing build-requires
_before_ moving on to config
Installing elfutils-libelf-devel allows rpmbuild to succeed.
PS I hate the new bug writing wizard, which demeans my intelligence at
the same time it allowed me to submit the bug report without knowing
that the package that it refers to is buried deep within the report
instead of somewhere obvious at the beginning.
Sounds like Requires: elfutils-libelf-devel is missing in netsnmp-devel.
If you don't like the Wizard interface then use the "Expert"
interface, BTW. I have a firefox keyword bookmark for:
so that I just type "newbug php" in the URL bar to enter a PHP bug
report against raw hide.
Joe, may I have your net-snmp version. net-snmp-devel requires
elfutils-libelf-devel. I've fixed this in net-snmp-devel-5.1.2-4.