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)
Created attachment 22808 [details] simple replacements for the non-standard libc functions (patch against rpm-4.0.3-0.57)
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 road. Isn't legacy wonderful :-(
Fixed (by putting a static copy in popthelp.c) in my next checkin, should be in rpm-4.0.3-0.58 or thereabouts.
*** Bug 47676 has been marked as a duplicate of this bug. ***