insque(3) is in libc under FreeBSD, but if we unconditionally try to find insque(3) in libcompat, the check will succeed (as linking against -lcompat -lc already suceeds because of -lc) and libcompat will be linked in. Unfortunately, libcompat under FreeBSD contains an ancient V8 regex implementation which in turn let's RPM fail over its feed during at least "rpm -e <pubkey>" operation and certainly more. So, check for insque(3) in libcompat only if it isn't already found in libc.
insque(3) is in libc under FreeBSD, but if we unconditionally try to
find insque(3) in libcompat, the check will succeed (as linking against
-lcompat -lc already suceeds because of -lc) and libcompat will be
linked in. Unfortunately, libcompat under FreeBSD contains an ancient V8
regex implementation which in turn let's RPM fail over its feed during
at least "rpm -e <pubkey>" operation and certainly more. So, check for
insque(3) in libcompat only if it isn't already found in libc.

devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5,devzero2000/RPM5