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: Sun, 20 Feb 2011 11:13:12 +0100 Message-ID: References: <1e640654.925f.12e338022b5.Coremail.lispor@163.com> <8CD9CED2114C060-235C-1E45A@Webmail-m118.sysops.aol.com> <8CD9DBB17997622-1BBC-1DCB2@webmail-d063.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 1298196503 19630 80.91.229.12 (20 Feb 2011 10:08:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 10:08:23 +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 Sun Feb 20 11:08:19 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 1Pr6DB-00038e-R7 for guile-bugs@m.gmane.org; Sun, 20 Feb 2011 11:08:18 +0100 Original-Received: from localhost ([127.0.0.1]:45850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr6DB-0002YA-7e for guile-bugs@m.gmane.org; Sun, 20 Feb 2011 05:08:17 -0500 Original-Received: from [140.186.70.92] (port=39423 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr6D4-0002Y3-Qp for bug-guile@gnu.org; Sun, 20 Feb 2011 05:08:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr6D3-0002bn-HQ for bug-guile@gnu.org; Sun, 20 Feb 2011 05:08:10 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:59421 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr6D3-0002bB-Eu for bug-guile@gnu.org; Sun, 20 Feb 2011 05:08:09 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 31A5E2592; Sun, 20 Feb 2011 05:09:13 -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=NSaz5kaxDExAF0pKEnpvAqIq9c4=; b=DMD7VE 4yrHSzxy9no7edj4Zl0VkZ/axBehs/lWMlKxOy65BHncj4aJk5MPUVvaA9DdSa/R WCgYWR73/N9OIFhibFjZZKoH+gZhXQlBmo4D+DuX1X0ZyhGThBgeZwS7ByKsfmWA 0ehoh6kwdfrDy5BuwhqRCveh7vPuPZ7VS4fO0= 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=kuLaTID07/MDqeOGSmUmll46PqrwLDKP Rl+3k7RCbSrxqTlY/TfdVEbTtKPlFcJBvjmoH8qqz5YtRBjM2QladQEa+8F7hT60 8O2ToR/HxidWGBrL7G/PE8KNWnfFK6hmC0sQIDR/dfVoD3W0/l427hPYwNeGF8lg Cq5fSOgAlY0= 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 09EFB258D; Sun, 20 Feb 2011 05:09:11 -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 B2114258C; Sun, 20 Feb 2011 05:09:07 -0500 (EST) In-Reply-To: <8CD9DBB17997622-1BBC-1DCB2@webmail-d063.sysops.aol.com> (Mark Harig's message of "Fri, 18 Feb 2011 14:42:21 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 7636B44C-3CD9-11E0-B6CC-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:5191 Archived-At: Hi Mark, On Fri 18 Feb 2011 20:42, Mark Harig writes: > gcc -I /usr/local/include/guile/2.0 -shared \ > -o libguile-bessel.so -fPIC bessel.c > > Then, the problem is to provide clear explanatory text on > how the user can determine what value to provide to the '-I' > switch. I agree that we should be using pkg-config; I was just objecting to adding --libs. >> > 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. >> > > It's interesting that Guile installed libguile-2.0 in > /usr/local/lib64 on your system. That's not quite it; the default libdir is still $prefix/lib. But on Fedora systems, "lib" is for 32-bit libs, and "lib64" is for 64-bit libs. If you install a library into "lib" you will then end up having to add the 32-bit libdir to your -L path, which is a path to madness. What I'm saying is that if we make assumptions about where Guile goes, we need to be explicit about them in the manual. Cheers, Andy -- http://wingolog.org/