From owner-freebsd-gnome@FreeBSD.ORG Mon Dec 8 01:33:06 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 141A816A4CE for ; Mon, 8 Dec 2003 01:33:06 -0800 (PST) Received: from smtp2.jp.viruscheck.net (smtp2.jp.viruscheck.net [154.33.69.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C26F43FB1 for ; Mon, 8 Dec 2003 01:33:04 -0800 (PST) (envelope-from bland@freebsd.org) Received: from scan3.jp.viruscheck.net ([154.33.69.38] helo=mail1.jp.viruscheck.net) by smtp2.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1ATHlG-0005sr-00; Mon, 08 Dec 2003 18:33:02 +0900 Received: from [220.220.111.152] (helo=noc.orchid) by mail1.jp.viruscheck.net with esmtp (Exim 3.36 #2) id 1ATHlG-0005gB-00; Mon, 08 Dec 2003 18:33:02 +0900 Received: from FreeBSD.org (horse.orchid [89.60.10.11]) by noc.orchid (8.12.9p2/8.12.9) with ESMTP id hB89X04v009283; Mon, 8 Dec 2003 18:33:01 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <3FD4454C.9090106@FreeBSD.org> Date: Mon, 08 Dec 2003 18:33:00 +0900 From: Alexander Nedotsukov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexey Antipov References: <20031205122336.GA84835@rabbit.tts.loc> In-Reply-To: <20031205122336.GA84835@rabbit.tts.loc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: gnome@FreeBSD.org Subject: Re: freebsd guile port X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 09:33:06 -0000 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" > >