could not find fipscheck library
Issue 240 by fos... on 2014-12-22 16:48:56:
I'm trying to cross-compile crypsetup and made sure libfipscheck is under LD_FLAGS, however configure script always failed:
ls /home/test/openwrt/staging_dir/target-arm_cortex-a9+neon_eglibc-2.19_eabi/usr/lib
libfipscheck.so -> libfipscheck.so.1
libfipscheck.so.1
LDFLAGS="-L/home/test/openwrt/staging_dir/target-arm_cortex-a9+neon_eglibc-2.19_eabi/usr/lib" ./configure --host=arm-openwrt-linux --with-crypto_backend=openssl --enable-fips
<snip>
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for poptConfigFileToString in -lpopt... yes
checking for FIPSCHECK_verify in -lfipscheck... no
configure: error: You need the fipscheck library.
Whatever is missing. The configure script has the content below and I could not find anything obvious:
{ as\_echo "
as_me:{as\_lineno-
LINENO}: checking for FIPSCHECK_verify in -lfipscheck" >&5
$as_echo_n "checking for FIPSCHECK_verify in -lfipscheck... " >&6; }
if ${ac_cv_lib_fipscheck_FIPSCHECK_verify+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lfipscheck $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char FIPSCHECK_verify ();
int
main ()
{
return FIPSCHECK_verify ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_fipscheck_FIPSCHECK_verify=yes
else
ac_cv_lib_fipscheck_FIPSCHECK_verify=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftestac\_exeext conftest.
ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ as\_echo "
as_me:{as\_lineno-
LINENO}: result: $ac_cv_lib_fipscheck_FIPSCHECK_verify" >&5
as\_echo "
ac_cv_lib_fipscheck_FIPSCHECK_verify" >&6; }
if test "x$ac_cv_lib_fipscheck_FIPSCHECK_verify" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFIPSCHECK 1
_ACEOF
LIBS="-lfipscheck $LIBS"
else
as_fn_error ? "You need the fipscheck library." "
LINENO" 5
fi