Red Hat Bugzilla – Bug 432545
Can't build nut in mock
Last modified: 2008-02-14 09:53:50 EST
I'm trying to build nut-2.2.0-6.1 from F8 updates and/or nut-2.2.0-5.1 from EPEL
5 in mock (for F8 and RHEL5 respectively; I'm trying to add a patch to support
my old UPS that will hopefully be in the next release of nut), but it is failing
on trying to build drivers/snmp-ups.c. Is this a known problem or am I just
I've tried with F-8:
[tsmetana@dhcp-lab-165 F-8]$ mock --rebuild -r fedora-8-i386
INFO: mock.py version 0.8.19 starting...
State Changed: init plugins
State Changed: start
INFO: Start(nut-2.2.0-6.1.fc8.src.rpm) Config(fedora-8-i386)
State Changed: lock buildroot
State Changed: clean
State Changed: init
State Changed: lock buildroot
INFO: enabled root cache
INFO: enabled yum cache
State Changed: cleaning yum metadata
State Changed: running yum
State Changed: creating cache
State Changed: setup
State Changed: build
INFO: Done(nut-2.2.0-6.1.fc8.src.rpm) Config(fedora-8-i386) 17 minutes 55 seconds
INFO: Results and/or logs in: /var/lib/mock//fedora-8-i386/result
Everything went OK. Could you post the logs?
Created attachment 294838 [details]
Created attachment 294839 [details]
I'm on an older mock (build host is still FC6, but other stuff builds fine). I see:
service:1:~$ mock --rebuild -r fedora-8-i386 nut-2.2.0-6.1.fc8.src.rpm
This may take a while
Results and/or logs in: /var/lib/mock/fedora-8-i386/result
service:2:~$ ls /var/lib/mock/fedora-8-i386/result
build.log mockconfig.log nut-2.2.0-6.1.fc8.src.rpm root.log
I'll attach the root and build logs.
So... Here's the difference. Your configure script says:
checking for Net-SNMP cflags...
checking for Net-SNMP libs...
checking for Net-SNMP cflags... -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
-m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Ulinux
-Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp
checking for Net-SNMP libs... -lcrypto -L/usr/lib -lnetsnmp
Since you have the same net-snmp-devel installed, there must be something
different in net-snmp-config output. This may be caused by the mock itself.
You might want to try to rebuild the package with patched
m4/nut_check_libnetsnmp.m4 (removing the 2> /dev/null redirection to see whether
something goes wrong with the net-snmp-config command).
If I just fire up "mock shell" and run "net-snmp-config --cflags", I get:
/usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found
My build host is x86_64, but I've never had trouble building for i386 before.
Maybe this is a bug in mock; sounds like it is time to upgrade this system to F8
to get a newer mock.
Oh well, thanks for your time in looking at this. I don't believe there is any
bug in nut or its packaging, so I'll close this.