Bug 279531

Summary: Chkconfig links static to popt
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.3.36-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-06 16:01:05 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 Robert Scheck 2007-09-05 21:27:33 UTC
Description of problem:
Chkconfig links static to popt, this seems somehow wrong to me. Please link 
popt dynamically, libpopt is in /lib[64] and add the buildrequirement popt-
devel or %{_includedir}/popt.h - thanks.

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

How reproducible / Additional info:
Remove popt-static and try to rebuild chkconfig, it will fail. BTW any build
of chkconfig in Rawhide will fail for the moment too, as popt got splitted out 
into popt and popt-devel and chkconfig missed the change at the last rebuild
by a few days.

Comment 1 Robert Scheck 2007-09-06 00:23:47 UTC
The following patch works for me:

--- chkconfig-1.3.35/Makefile       2007-02-05 23:10:37.000000000 +0100
+++ chkconfig-1.3.35/Makefile.rsc   2007-09-06 02:21:24.000000000 +0200
@@ -26,7 +26,7 @@
        done && test -z "$$fail"

 chkconfig: $(OBJS)
-       $(CC) $(LDFLAGS) -o chkconfig $(OBJS) -Wl,-Bstatic -lpopt -Wl,-Bdynamic
+       $(CC) $(LDFLAGS) -o chkconfig $(OBJS) -lpopt

 alternativs: alternatives.o


Comment 2 Bill Nottingham 2007-09-06 16:01:05 UTC
Fixed in CVS, will be in 1.3.36-1.