Bug 21132 - Solaris 8 "stpcpy" problem
Solaris 8 "stpcpy" problem
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
sparc Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-11-20 12:10 EST by Joe Orton
Modified: 2007-04-18 12:29 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-22 10:09:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for stpcpy problem on Solaris 8 (775 bytes, patch)
2000-11-20 12:11 EST, Joe Orton
no flags Details | Diff

  None (edit)
Description Joe Orton 2000-11-20 12:10:14 EST
The Solaris 8 build failed when building 'dump' in the build directory,
giving the error:

Undefined                       first referenced
 symbol                             in file
stpcpy                              ../rpmio/.libs/librpmio.a(rpmio.o)
Comment 1 Joe Orton 2000-11-20 12:11:08 EST
Created attachment 5562 [details]
Patch for stpcpy problem on Solaris 8
Comment 2 Joe Orton 2000-11-20 12:13:42 EST
stpcpy was being compiled correctly into librpm.a, but this came 
earlier in the link order than librpmio.a, so it didn't get picked up.
The patch attached moves librpm.a later; not sure if this is correct though.

Comment 3 Jeff Johnson 2000-12-22 10:09:41 EST
I understand the problem, but changing the order is not the right approach, as I
the library search order to be linear
	librpmbuild -> librpm -> librpmio -> libpopt [ -> libmisc ]
What's needed is to move the lib/stubs.c code from librpm to librpmio, so that
stpcpy will
end up in librpmio if needed by shared libraries on non-linux platforms.
Comment 4 Jeff Johnson 2000-12-30 13:33:47 EST
Fixed in rpm CVS for both rpm-4.0.[12].

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