From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: Can not work with libguile-2.0 Date: Fri, 18 Feb 2011 09:53:27 +0100 Message-ID: References: <1e640654.925f.12e338022b5.Coremail.lispor@163.com> <8CD9CED2114C060-235C-1E45A@Webmail-m118.sysops.aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298018915 29881 80.91.229.12 (18 Feb 2011 08:48:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 08:48:35 +0000 (UTC) Cc: bug-guile@gnu.org, lispor@163.com To: Mark Harig Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Feb 18 09:48:29 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PqM0q-0008Sy-R5 for guile-bugs@m.gmane.org; Fri, 18 Feb 2011 09:48:29 +0100 Original-Received: from localhost ([127.0.0.1]:34908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqM0q-0001lC-9r for guile-bugs@m.gmane.org; Fri, 18 Feb 2011 03:48:28 -0500 Original-Received: from [140.186.70.92] (port=41770 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqM0k-0001l6-WD for bug-guile@gnu.org; Fri, 18 Feb 2011 03:48:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqM0j-0005Br-9B for bug-guile@gnu.org; Fri, 18 Feb 2011 03:48:23 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:44780 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqM0j-0005Bb-6g for bug-guile@gnu.org; Fri, 18 Feb 2011 03:48:21 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 046F92D3C; Fri, 18 Feb 2011 03:49:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=EX6uEnx2wglwEERA12eR97wy8Ec=; b=DhoyIL 9wfssp7UZxCxr4G/zwR4XArCMCAafZ93NyBYKhbUbth1lP7nzU8VUZoDmWI2SIag NGpnr/6v6nQBqIAIm/Y2V+9DKjCyf0YqBfumL4xu8iKPeKhPyvzlkhdid1DWH964 NQ93u7wtbpI7wVAD55KkewrtP+OX7g8xfTwTM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=B5tyyVNLkOtWdUdqUVtFrVA471a4Ea2U Elw7rgivRKwlO4OgsyEd1T//qnbuMTXFpNqQOGWMHbuKDwgEIkzW/kx2/2p8yWz3 vuIqdJoPFsTDPG6NjbPx2cShyBteiQCaldIxODLH1TQTDcAg1vlGptiqgnIDg+I3 dw+CkPPZxEI= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id D110E2D3A; Fri, 18 Feb 2011 03:49:25 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id D79662D39; Fri, 18 Feb 2011 03:49:22 -0500 (EST) In-Reply-To: <8CD9CED2114C060-235C-1E45A@Webmail-m118.sysops.aol.com> (Mark Harig's message of "Thu, 17 Feb 2011 14:08:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: FD2E89BA-3B3B-11E0-84EC-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5183 Archived-At: On Thu 17 Feb 2011 20:08, Mark Harig writes: > The command listed in section 2.4 "Writing Guile Extensions" > should follow the pattern used in section 2.3 "Linking Guile into > Programs," namely, add the 'pkg-config' command to provide the > appropriate command-line options for the preprocessor, compiler, and > linker. Really? It doesn't seem to be necessary to actually link to libguile there. > In addition, the manual should mention that the environment > variable 'PKG_CONFIG_PATH' needs to be set before invoking the > compiler. Something like the following needs to be added, along with > some explanatory text: > > $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH Well that isn't quite right, as /usr/local/lib isn't the right place for libguile-2.0 on many systems. It's lib64 on my fedora machine. I guess we will have to add a section on install prefixes, and the relation between -rpath, libtool, PKG_CONFIG_PATH, and guile-config. Then further compile/link examples can refer back (or forwards) to it. Perhaps it would be best to assume that Guile is system-installed, and note that if linking fails, see some section at the end of libguile.texi that discusses these issues. What do you think? Andy -- http://wingolog.org/