Date: Fri, 5 Dec 2003 15:23:36 +0300 From: Alexey Antipov <rabbit@lipetsk.ru> To: gnome@FreeBSD.org Subject: freebsd guile port Message-ID: <20031205122336.GA84835@rabbit.tts.loc>
next in thread | raw e-mail | index | archive | help
Hi! During compilation of the lang/guile port used HAVE_CRYPT_H macros, whis is undefined on freebsd. The "crypt" function in posix.c depends on it, and does not compiled in. try >(crypt "foo" "bar") and you will get "Unbound variable: crypt" message As we definitely have crypt(3) in libcrypt, the HAVE_CRYPT_H macros is unneeded. sample patch which corrects the problem: ==== --- libguile/posix.c.orig Fri Dec 5 14:52:43 2003 +++ libguile/posix.c Fri Dec 5 14:57:01 2003 @@ -1343,7 +1343,7 @@ #undef FUNC_NAME #endif /* HAVE_SYNC */ -#if HAVE_LIBCRYPT && HAVE_CRYPT_H +#if HAVE_LIBCRYPT SCM_DEFINE (scm_crypt, "crypt", 2, 0, 0, (SCM key, SCM salt), "Encrypt @var{key} using @var{salt} as the salt value to the\n" @@ -1361,7 +1361,7 @@ return scm_makfrom0str (p); } #undef FUNC_NAME -#endif /* HAVE_LIBCRYPT && HAVE_CRYPT_H */ +#endif /* HAVE_LIBCRYPT */ #if HAVE_CHROOT SCM_DEFINE (scm_chroot, "chroot", 1, 0, 0, ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031205122336.GA84835>