rpm 4.0.3 from CVS (as of 6:00 pm CDT 07/30/2001) fails to compile on Solaris with the Sun Forte development environment, version 6.1. The problem is that several functions in rpm-4.0.3/lib/hdrinline.h have void return types, but actually try return a value. gcc might say "whatever", but most other compilers will rightfully object. A patch is attached, though JBJ may find a better fix than just deleting the three inlined versions of those functions.
Created attachment 25531 [details] rpm-4.0.3/lib/hdrinline.h "void functions return something" patch
This appears to be a problem with return (void) that can be easily remedied with s/return //. Will do ...
FIxed in my next checkin, should be in rpm-4.0.3-0.87.