Bug 279531 - Chkconfig links static to popt
Summary: Chkconfig links static to popt
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-05 21:27 UTC by Robert Scheck
Modified: 2014-03-17 03:08 UTC (History)
1 user (show)

Fixed In Version: 1.3.36-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-06 16:01:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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