From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Pendleton Newsgroups: gmane.lisp.guile.user Subject: Re: Guile 6.4 on NCR MPRAS Date: 30 Mar 2004 17:30:44 -0700 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1080693044.17135.847.camel@s11> References: <1080347191.26226.418.camel@s11> <87ptay9drc.fsf@zip.com.au> <1080601214.26165.709.camel@s11> <87brmedm7u.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1080693184 32652 80.91.224.253 (31 Mar 2004 00:33:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2004 00:33:04 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 31 02:32:48 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B8Tey-0006bG-00 for ; Wed, 31 Mar 2004 02:32:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8TUz-000567-1W for guile-user@m.gmane.org; Tue, 30 Mar 2004 19:22:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8TUr-00055b-Oy for guile-user@gnu.org; Tue, 30 Mar 2004 19:22:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8TUL-000511-CH for guile-user@gnu.org; Tue, 30 Mar 2004 19:22:20 -0500 Original-Received: from [204.110.224.42] (helo=jadmin1.flyingj.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8TUK-00050i-WA for guile-user@gnu.org; Tue, 30 Mar 2004 19:21:49 -0500 Original-Received: from [10.7.4.30] ([10.7.4.30]) by jadmin1.flyingj.com (Lotus Domino Release 6.0.2CF1) with ESMTP id 2004033017204160-35996 ; Tue, 30 Mar 2004 17:20:41 -0700 Original-To: Kevin Ryde In-Reply-To: <87brmedm7u.fsf@zip.com.au> X-Mailer: Ximian Evolution 1.2.1 X-MIMETrack: Itemize by SMTP Server on jadmin1/Flyingj(Release 6.0.2CF1|June 9, 2003) at 03/30/2004 05:20:41 PM, Serialize by Router on jadmin1/Flyingj(Release 6.0.2CF1|June 9, 2003) at 03/30/2004 05:20:50 PM, Serialize complete at 03/30/2004 05:20:50 PM X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3030 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3030 On Tue, 2004-03-30 at 15:05, Kevin Ryde wrote: > Kevin Pendleton writes: > > > > When checking for gethostbyname, it fails both > > times, (undefined reference to `gethostbyname'), with and without > > -lnsl. > > config.log will contain the code of the failing program, you can see > if it works or if it needs to be massaged. > I am also working on compiling some other programs and I noticed that Tcl's configure was able to find gethostbyname, so I took a look at the way it is done there and noticed this comment: #-------------------------------------------------------------------- # Check for the existence of the -lsocket and -lnsl libraries. # The order here is important, so that they end up in the right # order in the command line generated by make. Here are some # special considerations: # 1. Use "connect" and "accept" to check for -lsocket, and # "gethostbyname" to check for -lnsl. # 2. Use each function name only once: can't redo a check because # autoconf caches the results of the last check and won't redo it. # 3. Use -lnsl and -lsocket only if they supply procedures that # aren't already present in the normal libraries. This is because # IRIX 5.2 has libraries, but they aren't needed and they're # bogus: they goof up name resolution if used. # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. # To get around this problem, check for both libraries together # if -lsocket doesn't work by itself. #-------------------------------------------------------------------- Looking at the configure for guile it attempts to find connect after gethostbyname, etc. Comparing the two configure files, there have been some small changes to those functions as well. It looks like guile's configure was made with Autoconf 2.57 and Tcl's configure was made with Autoconf 2.59. Is it possible that this has already been hashed out and resolved? What is the best way to recreate configure? Should I just manually change configure and send in the diff? > I see libtool AC_CHECK_LIBM knows to do this on *-ncr-sysv4.3*. We > should either use that, or do something similar. Does a program using > say "cos" fail to link if -lm is used but not -lmw too? > I know I have had problems with this in the past but am currently unable to remember with what. Kevin _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user