Red Hat Bugzilla – Bug 21132
Solaris 8 "stpcpy" problem
Last modified: 2007-04-18 12:29:57 EDT
The Solaris 8 build failed when building 'dump' in the build directory,
giving the error:
Undefined first referenced
symbol in file
Created attachment 5562 [details]
Patch for stpcpy problem on Solaris 8
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.
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
end up in librpmio if needed by shared libraries on non-linux platforms.
Fixed in rpm CVS for both rpm-4.0..