Date: Mon, 08 Dec 2003 18:33:00 +0900 From: Alexander Nedotsukov <bland@FreeBSD.org> To: Alexey Antipov <rabbit@lipetsk.ru> Cc: gnome@FreeBSD.org Subject: Re: freebsd guile port Message-ID: <3FD4454C.9090106@FreeBSD.org> In-Reply-To: <20031205122336.GA84835@rabbit.tts.loc> References: <20031205122336.GA84835@rabbit.tts.loc>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-gnome >To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FD4454C.9090106>