Bug 279531 - Chkconfig links static to popt
Chkconfig links static to popt
Product: Fedora
Classification: Fedora
Component: chkconfig (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-09-05 17:27 EDT by Robert Scheck
Modified: 2014-03-16 23:08 EDT (History)
1 user (show)

See Also:
Fixed In Version: 1.3.36-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-06 12:01:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2007-09-05 17:27:33 EDT
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):

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-05 20:23:47 EDT
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 12:01:05 EDT
Fixed in CVS, will be in 1.3.36-1.

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