From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs Subject: Re: Guile-1.8.4 compile bug Mac OS X 10.4.11 PPC G4 Date: Sat, 8 Mar 2008 14:48:39 +0100 Message-ID: <5DF13EDD-4370-4798-9611-6F92EC150B4C@math.su.se> References: <3635F871-351D-461C-8344-8FDC6D396751@math.su.se> <87pru6cnqy.fsf@ossau.uklinux.net> <829CC0A2-DAC2-416C-8598-E118F1884064@math.su.se> <87bq5qcgzh.fsf@ossau.uklinux.net> <9B3A957D-B759-4081-8879-18851D88730F@math.su.se> <87d4q5be6o.fsf@ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204984163 10483 80.91.229.12 (8 Mar 2008 13:49:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 13:49:23 +0000 (UTC) Cc: bug-guile@gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Mar 08 14:49:50 2008 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.50) id 1JXzQr-000192-Fy for guile-bugs@m.gmane.org; Sat, 08 Mar 2008 14:49:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXzQI-0007Jf-KR for guile-bugs@m.gmane.org; Sat, 08 Mar 2008 08:49:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXzPt-0006zR-Ee for bug-guile@gnu.org; Sat, 08 Mar 2008 08:48:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXzPr-0006yY-PU for bug-guile@gnu.org; Sat, 08 Mar 2008 08:48:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXzPr-0006yO-Kg for bug-guile@gnu.org; Sat, 08 Mar 2008 08:48:47 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXzPq-0003ks-QQ for bug-guile@gnu.org; Sat, 08 Mar 2008 08:48:47 -0500 Original-Received: from c83-250-96-160.bredband.comhem.se ([83.250.96.160]:54825) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JXzPm-0000Ta-4Y; Sat, 08 Mar 2008 14:48:42 +0100 In-Reply-To: <87d4q5be6o.fsf@ossau.uklinux.net> X-Mailer: Apple Mail (2.753) X-Originating-IP: 83.250.96.160 X-Scan-Result: No virus found in message 1JXzPm-0000Ta-4Y. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JXzPm-0000Ta-4Y 7f74987f082ea56fe65f1a7849e7a81b X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:3835 Archived-At: On 8 Mar 2008, at 13:19, Neil Jerram wrote: >> (On Mac OS X, dynamic libraries end with .dylib, being a Mach-O >> format. The .so is for a fromat used on GNU/Linux computers.) > > OK, thanks. For what I have checked, the functions are named the same. So if one assumes the dynamic libraries have been created on Mac OS X, the only change needed in the source code is to look for files ending in .dylib instead of .so. >>> will always prefer to pick up >>> -lreadline from /usr/lib rather than from /usr/local/lib. >> >> It could be, because the reason I installed latest readline was >> that I >> wanted Hugs and GHCi working with UTF-8, and it didn't work. >> >> Suppose I set a soft link from the system readline to the newly >> installed, would it suffice to set it from >> /usr/lib/libreadline. -> /usr/local/lib/libreadline. > > Yes, that should work. Sysadmin-wise, it's a confusing change to keep > track of, though. Yes, it is a mess. :-) >> Or must some other stuff, like in /usr/include, also be relinked? > > No, I don't think that will be needed. As long as you have > CFLAGS=-I/usr/local/include when you run ./configure, I believe that > headers under /usr/local/include will be picked up in preference to > those under /usr/include. > > (BTW, this is something that I've never seen a good explanation for. > -I/usr/local/include takes preference over the standard /usr/include, > but -L/usr/local/lib doesn't take preference over the standard > /usr/lib. What is the logic there?) It is certainly causing problems. Somebody got problems on the GMP list reported problems with that package and Guile (Mac OS X 10.5 Intel perhaps). But it strikes me now, in view of your letters, that it might be due to the same issue as with readlib. Do you happen to know with there are any environment variables one might set for GCC, like LIBPATH, INCLUDEPATH, or something, that ensures /usr/local is included? This would be a convenient method. Hans Aberg