From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: 1.6.3: libltdl troubles with error_t Date: Thu, 27 Feb 2003 12:42:46 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030227174246.63889784@fnord.ir.bbn.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" X-Trace: main.gmane.org 1046368491 30735 80.91.224.249 (27 Feb 2003 17:54:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 17:54:51 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oSF5-0007zP-00 for ; Thu, 27 Feb 2003 18:54:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oSCF-0004Kn-01 for guile-devel@m.gmane.org; Thu, 27 Feb 2003 12:51:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oS8R-0003Gr-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:47:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oS4k-00024y-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:44:13 -0500 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oS3S-0001gZ-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:42:46 -0500 Original-Received: from fnord.ir.bbn.com (localhost [127.0.0.1]) by fnord.ir.bbn.com (Postfix) with ESMTP id 63889784 for ; Thu, 27 Feb 2003 12:42:46 -0500 (EST) Original-To: guile-devel@gnu.org Content-ID: <29035.1046367715.0@fnord.ir.bbn.com> X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1995 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1995 ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29035.1046367715.1@fnord.ir.bbn.com> I have 1.6.3 imported into CVS, and am building it on NetBSD 1.6. Because I modified Makefile.am and configure.in for pkgconfig, I am running most of what's in autogen.sh from guile CVS, and I removed Makefile.in/configure/aclocal from my own repo. libltdl.c failed to build because error_t was not defined. error_t seems to be a glibc thing related to 'argz', but I'm not sure. Newer libtool versions have checks in ltdl.m4 to #define error_t to int if it isn't defined. I lost because NetBSD pkgsrc has an old, patched libtool, and the ltdl.m4 used to make aclocal.m4 came from the old libtool. The central problem is that guile includes ltdl but does not include the corresponding autoconf macros. Of course, one can say that NetBSD is broken because it doesn't have an up-to-date libtool. But the libtool that comes with NetBSD seems to be self-consistent and working ok otherwise. So, I added the new ltdl.m4 to guile-config, and that failed because it depends on new stuf libtool.m4. Building with both included got me: gmake[3]: Entering directory `/home/gdt/QUIST-current/guile/libguile-ltdl' source='guile-ltdl.c' object='guile-ltdl.lo' libtool=yes \ depfile='.deps/guile-ltdl.Plo' tmpdepfile='.deps/guile-ltdl.TPlo' \ depmode=gcc /usr/pkg/bin/bash ../depcomp \ /usr/pkg/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I./.. -I/usr/pkg/include -Wall -Wmissing-prototypes -c -o guile-ltdl.lo `test -f 'guile-ltdl.c' || echo './'`guile-ltdl.c libtool: ltconfig version `' does not match ltmain.sh version `1.4a' Fatal configuration error. See the libtool docs for more information. gmake[3]: *** [guile-ltdl.lo] Error 1 This is really for libtool, not guile, but when using nonstandard features like error_t (if indeed it is non-POSIX), it would be good to conditionalize the source on HAVE_ERROR_T, so that simply declining to define HAVE_ERROR_T causes the right behavior. I did this, and realized there was also a missing test for errno.h With this patch, i can build 1.6.3 with the older libtool m4 files. I know it's gross, but I thought it might help someone else. ------- =_aaaaaaaaaa0 Content-Type: text/plain; name="ltdl-error_t"; charset="us-ascii" Content-ID: <29035.1046367715.2@fnord.ir.bbn.com> Content-Description: libltdl patch Index: libguile-ltdl/raw-ltdl.c =================================================================== RCS file: /QUIST-CVS/guile/libguile-ltdl/raw-ltdl.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 raw-ltdl.c --- libguile-ltdl/raw-ltdl.c 2002/12/07 22:41:33 1.1.1.1 +++ libguile-ltdl/raw-ltdl.c 2003/02/27 17:20:37 @@ -86,6 +86,14 @@ # include #endif +#if HAVE_ERROR_T +/* empty */ +#else +/* Probably we were compiled without new enough ltdl.m4 support */ +#define error_t int +#include +#endif + #if HAVE_ASSERT_H # include #else ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ------- =_aaaaaaaaaa0--