From: Carl Worth Date: Fri, 14 Jun 2013 05:02:45 +0000 (-0700) Subject: Add more detailed warning if libfips binary could not be found. X-Git-Url: https://git.cworth.org/git?p=fips;a=commitdiff_plain;h=4ed3210133fb9f990c3d34fd04619867656c74e3 Add more detailed warning if libfips binary could not be found. Since we now may not compile a non-native bit-size libfips, (such as not compiling libfips-32.so on a native 64-bit install), then fips can fail when trying to wrap a 32-bit application. So be kind and suggest that the user install gcc-multilib and re-compile fips as one potential solution for this problem. --- diff --git a/execute.c b/execute.c index 0719e2d..cc01c43 100644 --- a/execute.c +++ b/execute.c @@ -279,6 +279,9 @@ find_libfips_path (void *ctx, const char *program) "\t%s\n" "and\n" "\t%s/" BINDIR_TO_LIBFIPSDIR "\n", bin_path, bin_path); + + fprintf(stderr, "\nIt's possible fips was not compiled with support for %d-bit applications.\n", bits); + fprintf(stderr, "Perhaps you need to install gcc-multilib and re-compile fips?\n"); exit (1); }