freebsd guile port
Alexander Nedotsukov
bland at FreeBSD.org
Mon Dec 8 01:33:06 PST 2003
Alexey,
Commited, thanks!
All the best,
Alexander.
Alexey Antipov wrote:
>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,
>====
>_______________________________________________
>freebsd-gnome at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
>To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
>
>
More information about the freebsd-gnome
mailing list