Bug 21132

Summary: Solaris 8 "stpcpy" problem
Product: [Retired] Red Hat Linux Reporter: Joe Orton <jorton>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-22 15:09:44 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:
Attachments:
Description Flags
Patch for stpcpy problem on Solaris 8 none

Description Joe Orton 2000-11-20 17:10:14 UTC
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 17:11:08 UTC
Created attachment 5562 [details]
Patch for stpcpy problem on Solaris 8

Comment 2 Joe Orton 2000-11-20 17:13:42 UTC
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 15:09:41 UTC
I understand the problem, but changing the order is not the right approach, as I
wish
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 18:33:47 UTC
Fixed in rpm CVS for both rpm-4.0.[12].