From 4ed3210133fb9f990c3d34fd04619867656c74e3 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 13 Jun 2013 22:02:45 -0700 Subject: [PATCH] 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. --- execute.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.43.0