From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 14 20:33:36 2010 Received: (at submit) by debbugs.gnu.org; 15 Dec 2010 01:33:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSgFL-0006jD-Nl for submit@debbugs.gnu.org; Tue, 14 Dec 2010 20:33:36 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSgFJ-0006j0-8w for submit@debbugs.gnu.org; Tue, 14 Dec 2010 20:33:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSgLL-000480-94 for submit@debbugs.gnu.org; Tue, 14 Dec 2010 20:39:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:44673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSgLL-00047l-7F for submit@debbugs.gnu.org; Tue, 14 Dec 2010 20:39:47 -0500 Received: from [140.186.70.92] (port=44377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSgLK-0000QH-4G for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2010 20:39:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSgLJ-000478-7j for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2010 20:39:46 -0500 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]:33757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSgLJ-00046k-5i for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2010 20:39:45 -0500 Received: from furball (bb121-6-218-24.singnet.com.sg [121.6.218.24]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id oBF1dbwJ009446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Dec 2010 20:39:39 -0500 Received: by furball (Postfix, from userid 1000) id 8DED81604BC; Tue, 14 Dec 2010 20:39:35 -0500 (EST) From: Chong Yidong To: bug-gnu-emacs@gnu.org Subject: Build failure on NetBSD 5.0.2 on IA-32 References: Date: Wed, 15 Dec 2010 09:39:35 +0800 In-Reply-To: (Nelson H. F. Beebe's message of "Mon, 13 Dec 2010 15:09:29 -0700 (MST)") Message-ID: <877hfbx19k.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Nelson H. F. Beebe reports a build failure for the 23.2.91 pretest on NetBSD 5.0.2 on IA-32. The last Emacs version to build ok was 23.1.96 in April 2010: > On NetBSD, the configure step with both native /usr/bin/cc and > gcc-4.4-20090123 fails like this: > > ... > checking whether `alloca.c' needs Cray hooks... no > checking stack direction for C alloca... -1 > configure: error: a system implementation of alloca is required From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 15 03:23:17 2010 Received: (at 7642) by debbugs.gnu.org; 15 Dec 2010 08:23:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSmdo-00081M-KZ for submit@debbugs.gnu.org; Wed, 15 Dec 2010 03:23:16 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSmdm-00081B-Gs for 7642@debbugs.gnu.org; Wed, 15 Dec 2010 03:23:14 -0500 Received: from localhost ([127.0.0.1]:57311) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSmjm-00075w-Ra; Wed, 15 Dec 2010 03:29:26 -0500 To: Chong Yidong Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: <877hfbx19k.fsf@stupidchicken.com> From: Glenn Morris X-Spook: World Trade Center Bush Wired New World Order Dick Cheney X-Ran: x4a=^ User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7642 Cc: 7642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Chong Yidong wrote: > Nelson H. F. Beebe reports a build failure for the 23.2.91 pretest on > NetBSD 5.0.2 on IA-32. The last Emacs version to build ok was 23.1.96 > in April 2010: > >> On NetBSD, the configure step with both native /usr/bin/cc and >> gcc-4.4-20090123 fails like this: >> >> ... >> checking whether `alloca.c' needs Cray hooks... no >> checking stack direction for C alloca... -1 >> configure: error: a system implementation of alloca is required The relevant part of the output is missing, but it looks like the system does not have an implementation of alloca. Support for systems without alloca was removed in 23.1. Does 23.1 currently build on that system? What does the rest of configure's output look like? From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 15 20:32:33 2010 Received: (at 7642) by debbugs.gnu.org; 16 Dec 2010 01:32:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PT2ht-0007mV-Jm for submit@debbugs.gnu.org; Wed, 15 Dec 2010 20:32:33 -0500 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PT2hq-0007mI-M8 for 7642@debbugs.gnu.org; Wed, 15 Dec 2010 20:32:31 -0500 Received: from furball (bb121-6-218-24.singnet.com.sg [121.6.218.24]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id oBG1cj7U025901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Dec 2010 20:38:47 -0500 Received: by furball (Postfix, from userid 1000) id 7949A161788; Wed, 15 Dec 2010 20:38:43 -0500 (EST) From: Chong Yidong To: "Nelson H. F. Beebe" Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: <877hfbx19k.fsf@stupidchicken.com> Date: Thu, 16 Dec 2010 09:38:43 +0800 In-Reply-To: (Glenn Morris's message of "Wed, 15 Dec 2010 03:29:26 -0500") Message-ID: <87ipyucx98.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7642 Cc: Glenn Morris , 7642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Glenn Morris writes: > Chong Yidong wrote: > >> Nelson H. F. Beebe reports a build failure for the 23.2.91 pretest on >> NetBSD 5.0.2 on IA-32. The last Emacs version to build ok was 23.1.96 >> in April 2010: >> >>> On NetBSD, the configure step with both native /usr/bin/cc and >>> gcc-4.4-20090123 fails like this: >>> >>> ... >>> checking whether `alloca.c' needs Cray hooks... no >>> checking stack direction for C alloca... -1 >>> configure: error: a system implementation of alloca is required > > The relevant part of the output is missing, but it looks like the > system does not have an implementation of alloca. Support for systems > without alloca was removed in 23.1. Does 23.1 currently build on that > system? What does the rest of configure's output look like? Nelson, could you post the rest of the entire configure log? Thanks. Surely NetBSD on IA-32 should have an alloca implementation; this is strange. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 16 11:57:43 2010 Received: (at 7642) by debbugs.gnu.org; 16 Dec 2010 16:57:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTH9C-0005u9-Ny for submit@debbugs.gnu.org; Thu, 16 Dec 2010 11:57:43 -0500 Received: from mail.math.utah.edu ([155.101.98.135]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTH99-0005tv-Vj for 7642@debbugs.gnu.org; Thu, 16 Dec 2010 11:57:41 -0500 Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.4/8.14.4) with ESMTP id oBGH3vvZ020737; Thu, 16 Dec 2010 10:03:57 -0700 (MST) Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.4/8.14.4) with ESMTP id oBGH3v9v029903; Thu, 16 Dec 2010 10:03:57 -0700 (MST) Received: (from beebe@localhost) by psi.math.utah.edu (8.14.4/8.14.4/Submit) id oBGH3vXx029902; Thu, 16 Dec 2010 10:03:57 -0700 (MST) Date: Thu, 16 Dec 2010 10:03:57 -0700 (MST) From: "Nelson H. F. Beebe" To: Chong Yidong , Glenn Morris , 7642@debbugs.gnu.org X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 585 1640, +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 Message-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (mail.math.utah.edu [155.101.98.135]); Thu, 16 Dec 2010 10:03:57 -0700 (MST) X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 7642 Cc: bug-gnu-emacs@gnu.org, beebe@math.utah.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) I tracked down the problem with the failing build of emacs-23.2.91 on NetBSD 5.0.2 on IA-32, and now have a working installation of that new version. The problem that caused the configure failure report of configure: error: a system implementation of alloca is required was entirely unrelated. On this system, the normal X11 libraries are in /usr/X11R7/lib, but to keep old executables running, we had to restore X11R6 libraries to /usr/local/lib; that resulted in a link-time failure that had nothing to do with alloca(). In order to build emacs-23.2.91 on this system, I had to work like this: % set path=(/bin /usr/bin) % env LDFLAGS='-Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib' ./configure % make ... ld: cannot find -lXaw3d % ls /usr/X11*/lib/libXaw* /usr/X11R7/lib/libXaw.a /usr/X11R7/lib/libXaw7.so.7.0 /usr/X11R7/lib/libXaw.so /usr/X11R7/lib/libXaw7_p.a /usr/X11R7/lib/libXaw.so.6 /usr/X11R7/lib/libXaw7_pic.a /usr/X11R7/lib/libXaw.so.7 /usr/X11R7/lib/libXaw8.a /usr/X11R7/lib/libXaw.so.8 /usr/X11R7/lib/libXaw8.so /usr/X11R7/lib/libXaw6.so.6 /usr/X11R7/lib/libXaw8.so.8 /usr/X11R7/lib/libXaw6.so.6.1 /usr/X11R7/lib/libXaw8.so.8.0 /usr/X11R7/lib/libXaw7.a /usr/X11R7/lib/libXaw8_p.a /usr/X11R7/lib/libXaw7.so /usr/X11R7/lib/libXaw8_pic.a /usr/X11R7/lib/libXaw7.so.7 /usr/X11R7/lib/libXaw_p.a That is a definite error: configure needs to check that -lXaw3d is available. Try again: % make distclean % env LDFLAGS='-Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib' ./configure --without-xaw3d % make ... ld: cannot find -lterminfo % ls /usr/lib/libterm* /usr/lib/libtermcap.a /usr/lib/libtermlib.a /usr/lib/libtermcap.so /usr/lib/libtermlib.so /usr/lib/libtermcap.so.0 /usr/lib/libtermlib.so.0 /usr/lib/libtermcap.so.0.6 /usr/lib/libtermlib.so.0.6 /usr/lib/libtermcap_p.a /usr/lib/libtermlib_p.a /usr/lib/libtermcap_pic.a /usr/lib/libtermlib_pic.a That is another error: -lterminfo is hard-coded into src/Makefile. Changing -lterminfo to -ltermlib does not help: % make /local/build/bare/emacs-23.2.91/src/terminfo.c:46: undefined reference to `tparm' I then changed -ltermlib to /usr/local/lib/libncurses.a, removed all -L/usr/local/lib/ and -Wl,-rpath,/usr/local/lib instances in src/Makefile, and expanded the graphics library options like -ljpeg to /usr/local/lib/libjpeg.a, etc. % diff src/Makefile.org src/Makefile 41c41 < CPPFLAGS=-I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib --- > CPPFLAGS=-I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib 77c77 < ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib -I/usr/X11R7/include ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} ${DEPFLAGS} --- > ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -I/usr/X11R7/include ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} ${DEPFLAGS} 94c94 < LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm -lgif -lXpm -lX11 $(XFT_LIBS) --- > LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) /usr/local/lib/libtiff.a /usr/local/lib/libjpeg.a /usr/local/lib/libpng.a /usr/local/lib/libz.a -lm /usr/local/lib/libgif.a -lXpm -lX11 $(XFT_LIBS) 101c101 < TEMACS_LDFLAGS = `echo -R/usr/X11R7/lib | sed -e 's/-R/-Wl,-rpath,/'` -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-z,nocombreloc --- > TEMACS_LDFLAGS = `echo -R/usr/X11R7/lib | sed -e 's/-R/-Wl,-rpath,/'` -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -Wl,-z,nocombreloc 116c116 < LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) -lterminfo $(GETLOADAVG_LIBS) ${GCONF_LIBS} $(GNULIB_VAR) -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o $(GNULIB_VAR) --- > LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) /usr/local/lib/libncurses.a $(GETLOADAVG_LIBS) ${GCONF_LIBS} $(GNULIB_VAR) -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o $(GNULIB_VAR) 141c141 < C_SWITCH_SYSTEM_1 = -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib --- > C_SWITCH_SYSTEM_1 = -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib That finally produced success, except for one ongoing nuisance: when emacs loads a Lisp file, it always uses the compiled version in preference to the source file. At my site, I have 25 flavors of Unix, many with a common emacs installation tree, and emacs versions back to 18.xx. Unfortunately, emacs-22 and emacs-23 often fail to handle .elc files from older versions, and newer ones cannot be read by older emacs versions. That resulted in dump-time failure: Invalid read syntax: "invalid multibyte form" It would be nice if, on encountering that error, emacs retried the load of the .el file before complaining. I solved the problem by removing the /usr/local/share/emacs/site-lisp/*.elc files. ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - University of Utah FAX: +1 801 581 4148 - - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - ------------------------------------------------------------------------------- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 09:26:09 2010 Received: (at 7642) by debbugs.gnu.org; 17 Dec 2010 14:26:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTbG5-0006Cz-35 for submit@debbugs.gnu.org; Fri, 17 Dec 2010 09:26:09 -0500 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTbFz-0006Cb-4m; Fri, 17 Dec 2010 09:26:05 -0500 Received: from furball (bb121-6-218-24.singnet.com.sg [121.6.218.24]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id oBHEWLjG019576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Dec 2010 09:32:23 -0500 Received: by furball (Postfix, from userid 1000) id 969F3161F1E; Fri, 17 Dec 2010 09:32:17 -0500 (EST) From: Chong Yidong To: "Nelson H. F. Beebe" Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: Date: Fri, 17 Dec 2010 22:32:17 +0800 In-Reply-To: (Nelson H. F. Beebe's message of "Thu, 16 Dec 2010 10:03:57 -0700 (MST)") Message-ID: <87ipys1nda.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 7642 Cc: Glenn Morris , enami tsugutomo , 7642@debbugs.gnu.org, 6190@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Nelson H. F. Beebe" writes: > % make distclean > % env LDFLAGS='-Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib' ./configure > --without-xaw3d > % make > ... > ld: cannot find -lterminfo > % ls /usr/lib/libterm* > /usr/lib/libtermcap.a /usr/lib/libtermlib.a > ... > > That is another error: -lterminfo is hard-coded into src/Makefile. The problem here is that in src/s/netbsd.h, we define #ifdef HAVE_TERM_H #define TERMINFO #define LIBS_TERMCAP -lterminfo #else #define LIBS_TERMCAP -ltermcap #endif Judging by this report, the existence of term.h does not imply that terminfo is available. So, we should go back to the prescription originally given in Bug#6190. Something like the following patch---Nelson, does it fix this problem? === modified file 'configure.in' *** configure.in 2010-12-10 17:46:40 +0000 --- configure.in 2010-12-17 14:29:37 +0000 *************** *** 2372,2377 **** --- 2372,2386 ---- # than to expect to find it in ncurses. AC_CHECK_LIB(ncurses, tparm) + case "$opsys" in + netbsd) + AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap]); + if test $ac_cv_search_tputs = -lterminfo; then + AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]); + fi + ;; + esac + # Do we have res_init, for detecting changes in /etc/resolv.conf? resolv=no === modified file 'src/s/netbsd.h' *** src/s/netbsd.h 2010-05-21 04:06:34 +0000 --- src/s/netbsd.h 2010-12-17 14:29:31 +0000 *************** *** 45,52 **** #define LIBS_DEBUG /* -lutil is not needed for NetBSD >0.9. */ /* #define LIBS_SYSTEM -lutil */ ! #ifdef HAVE_TERM_H ! #define TERMINFO #define LIBS_TERMCAP -lterminfo #else #define LIBS_TERMCAP -ltermcap --- 45,51 ---- #define LIBS_DEBUG /* -lutil is not needed for NetBSD >0.9. */ /* #define LIBS_SYSTEM -lutil */ ! #ifdef TERMINFO #define LIBS_TERMCAP -lterminfo #else #define LIBS_TERMCAP -ltermcap === modified file 'configure' *** configure 2010-12-10 17:46:40 +0000 --- configure 2010-12-17 14:30:05 +0000 *************** *** 11833,11838 **** --- 11833,11904 ---- fi + case "$opsys" in + netbsd) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 + $as_echo_n "checking for library containing tputs... " >&6; } + if test "${ac_cv_search_tputs+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + + /* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ + #ifdef __cplusplus + extern "C" + #endif + char tputs (); + int + main () + { + return tputs (); + ; + return 0; + } + _ACEOF + for ac_lib in '' ncurses terminfo termcap; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_tputs=$ac_res + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_tputs+set}" = set; then : + break + fi + done + if test "${ac_cv_search_tputs+set}" = set; then : + + else + ac_cv_search_tputs=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 + $as_echo "$ac_cv_search_tputs" >&6; } + ac_res=$ac_cv_search_tputs + if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + fi + ; + if test $ac_cv_search_tputs = -lterminfo; then + + $as_echo "#define TERMINFO 1" >>confdefs.h + ; + fi + ;; + esac + # Do we have res_init, for detecting changes in /etc/resolv.conf? resolv=no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 22:15:33 2011 Received: (at 7642) by debbugs.gnu.org; 16 Jan 2011 03:15:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJ5Y-0003vo-5C for submit@debbugs.gnu.org; Sat, 15 Jan 2011 22:15:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJ5W-0003vc-U7 for 7642@debbugs.gnu.org; Sat, 15 Jan 2011 22:15:31 -0500 Received: from localhost ([127.0.0.1]:43602) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJCs-0005eg-Hg; Sat, 15 Jan 2011 22:23:06 -0500 To: "Nelson H. F. Beebe" Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: From: Glenn Morris X-Spook: Afghanistan CIDA Ansar al-Islam e-bomb LABLINK ASDIC Bush X-Ran: (juF[wh|%@'h8^QEj9vaheAXH={^av&mNRexm!BTQ8vc4lw+akpuDmOP4O_dm---s6]C#h X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 15 Jan 2011 22:23:06 -0500 In-Reply-To: (Nelson H. F. Beebe's message of "Thu\, 16 Dec 2010 10\:03\:57 -0700 \(MST\)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7642 Cc: Chong Yidong , 7642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) "Nelson H. F. Beebe" wrote: > That is a definite error: configure needs to check that -lXaw3d is > available. configure checks for Xaw3d headers, but not for the library: [AC_TRY_LINK([ #include #include ], [], Presumably your system has the include file but does not have the library? In Emacs 22, there used to be a test for both an include and a library: AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], , Looks like this went in the 2007-06-13 change to configure.in. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 22:18:15 2011 Received: (at 7642) by debbugs.gnu.org; 16 Jan 2011 03:18:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJ8B-0003zf-Jk for submit@debbugs.gnu.org; Sat, 15 Jan 2011 22:18:15 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJ8A-0003zV-A7 for 7642@debbugs.gnu.org; Sat, 15 Jan 2011 22:18:14 -0500 Received: from localhost ([127.0.0.1]:43620) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeJFW-0005in-4c; Sat, 15 Jan 2011 22:25:50 -0500 To: "Nelson H. F. Beebe" Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: From: Glenn Morris X-Spook: Pine Gap Commecen analyzer USDOJ Bletchley Park MP5K-SD X-Ran: ?'W-E+4vFcraoY@}e~)3e>l/QBIq$,Z%/^1f/p:0q1VTN}iJ'2y/|%~$f-7wBmx&A80DFE X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 15 Jan 2011 22:25:49 -0500 In-Reply-To: (Nelson H. F. Beebe's message of "Thu\, 16 Dec 2010 10\:03\:57 -0700 \(MST\)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7642 Cc: Chong Yidong , 7642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) "Nelson H. F. Beebe" wrote: > That finally produced success, except for one ongoing nuisance: when > emacs loads a Lisp file, it always uses the compiled version in > preference to the source file. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2061 > Invalid read syntax: "invalid multibyte form" > > It would be nice if, on encountering that error, emacs retried the > load of the .el file before complaining. I solved the problem by > removing the /usr/local/share/emacs/site-lisp/*.elc files. Why is dumping trying to load files from /usr/local/share/emacs/site-lisp? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 27 15:43:42 2011 Received: (at 7642) by debbugs.gnu.org; 27 Jan 2011 20:43:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiYgw-0006WE-1U for submit@debbugs.gnu.org; Thu, 27 Jan 2011 15:43:42 -0500 Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiYgt-0006W3-Gj for 7642@debbugs.gnu.org; Thu, 27 Jan 2011 15:43:39 -0500 Received: from furball (dhcp128036014143.central.yale.edu [128.36.14.143]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p0RKpnS6005450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <7642@debbugs.gnu.org>; Thu, 27 Jan 2011 15:51:50 -0500 Received: by furball (Postfix, from userid 1000) id F189316024E; Thu, 27 Jan 2011 15:51:49 -0500 (EST) From: Chong Yidong To: 7642@debbugs.gnu.org Subject: Re: Build failure on NetBSD 5.0.2 on IA-32 Date: Thu, 27 Jan 2011 15:51:49 -0500 Message-ID: <87ei7yysre.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 7642 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > > That is a definite error: configure needs to check that -lXaw3d is > > available. > > configure checks for Xaw3d headers, but not for the library: I've committed a patch reinstating the check for the Xaw3d library. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 28 13:07:32 2011 Received: (at 7642-done) by debbugs.gnu.org; 28 Jan 2011 18:07:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PisjL-0004KL-R5 for submit@debbugs.gnu.org; Fri, 28 Jan 2011 13:07:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PisjK-0004K9-9I for 7642-done@debbugs.gnu.org; Fri, 28 Jan 2011 13:07:30 -0500 Received: from localhost ([127.0.0.1]:36136) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PisrC-00053j-UQ; Fri, 28 Jan 2011 13:15:39 -0500 To: 7642-done@debbugs.gnu.org Subject: Re: bug#7642: Build failure on NetBSD 5.0.2 on IA-32 References: <877hfbx19k.fsf@stupidchicken.com> <87ei7yysre.fsf@stupidchicken.com> From: Glenn Morris X-Spook: Indigo bemd 9705 Samford Road chameleon man Aladdin 9/11 X-Ran: Y#-['V6Y;?B\xoz[q\dgR!u}(Tc@SA"$[rx,x4d"O7fpgh0]L,,pBt7sLxaM{4$vBt9Sja X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 28 Jan 2011 13:15:38 -0500 In-Reply-To: <87ei7yysre.fsf@stupidchicken.com> (Chong Yidong's message of "Thu\, 27 Jan 2011 15\:51\:49 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 7642-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Chong Yidong wrote: > I've committed a patch reinstating the check for the Xaw3d library. I think this can be closed then. From unknown Sat Jun 21 03:29:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 26 Feb 2011 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator