]> git.cworth.org Git - fips/commitdiff
Add more detailed warning if libfips binary could not be found.
authorCarl Worth <cworth@cworth.org>
Fri, 14 Jun 2013 05:02:45 +0000 (22:02 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 Jun 2013 05:02:45 +0000 (22:02 -0700)
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

index 0719e2da23ce1c1b18d4f43a2dc62b5b6abfdb2d..cc01c436db2329e19184a7d651b3fe5e06efe5aa 100644 (file)
--- 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);
 }