RPM assumes basename() in libc is the GNU-style basename(). Single Unix allows basename() to be argument-modifying and other such rubbish. This breaks build/parsePrep.c on HP-UX 10, and probably elsewhere (some SunOS's have an argument-modifying basename() too I think). Easy fix: unconditionally #include "misc/basename.c" in stubs.c.
Sorry, scratch the easy fix, that breaks the build on Tru64. Proper fix coming up...
Still looking for the "proper fix" ...
Closed for lack of input.