Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 47500 - GNU C extensions used in popt
GNU C extensions used in popt
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
: 47676 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2001-07-05 15:16 EDT by Nathan Owen
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-05 15:46:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
simple replacements for the non-standard libc functions (patch against rpm-4.0.3-0.57) (2.27 KB, patch)
2001-07-05 15:19 EDT, Nathan Owen
no flags Details | Diff

  None (edit)
Description Nathan Owen 2001-07-05 15:16:56 EDT
Description of Problem:
The functions stpcpy and stpncpy are used in popt, and are not available on
non-glibc systems (at least they aren't on solaris 2.6)
Comment 1 Nathan Owen 2001-07-05 15:19:05 EDT
Created attachment 22808 [details]
simple replacements for the non-standard libc functions (patch against rpm-4.0.3-0.57)
Comment 2 Jeff Johnson 2001-07-05 15:46:36 EDT
There are copies of stpcpy/stpncpy in libmisc.a, so what's
really broken is that -lmisc needs to follow, not precede,
-lpopt when linking. That works for popt as a subdir of rpm,
but not for popt as a standalone library.

Adding symbols to libpopt as you have done will "work", but probably
should be done with a static to prevent further symbol clash down the

Isn't legacy wonderful :-(
Comment 3 Jeff Johnson 2001-07-05 17:44:20 EDT
Fixed (by putting a static copy in popthelp.c) in my next checkin, should
be in rpm-4.0.3-0.58 or thereabouts.
Comment 4 Jeff Johnson 2001-07-06 09:59:42 EDT
*** Bug 47676 has been marked as a duplicate of this bug. ***

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