freebsd guile port
Alexey Antipov
rabbit at lipetsk.ru
Fri Dec 5 04:23:58 PST 2003
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,
====
More information about the freebsd-gnome
mailing list