From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Recent changes to regex.c break bootstrapping Date: Mon, 20 Feb 2006 08:47:00 +0100 Message-ID: <43F973F4.9060807@swipnet.se> References: <200602200610.k1K6ANa25590@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140421652 25734 80.91.229.2 (20 Feb 2006 07:47:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2006 07:47:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 20 08:47:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FB5lY-000526-HA for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2006 08:47:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FB5lX-0002E5-Rn for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2006 02:47:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FB5lH-0002BV-Da for emacs-devel@gnu.org; Mon, 20 Feb 2006 02:47:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FB5lD-00028K-KZ for emacs-devel@gnu.org; Mon, 20 Feb 2006 02:47:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FB5lD-00027y-Fy for emacs-devel@gnu.org; Mon, 20 Feb 2006 02:47:07 -0500 Original-Received: from [213.50.74.197] (helo=smtp.operax.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1FB5rC-0004gz-5j for emacs-devel@gnu.org; Mon, 20 Feb 2006 02:53:18 -0500 Original-Received: (qmail 91591 invoked by uid 0); 20 Feb 2006 07:47:00 -0000 Original-Received: from dentan.operax.com (HELO ?192.168.1.48?) (192.168.1.48) by treo.operax.com with SMTP; 20 Feb 2006 07:47:00 -0000 User-Agent: Thunderbird 1.5 (X11/20051201) Original-To: Luc Teirlinck In-Reply-To: <200602200610.k1K6ANa25590@raven.dms.auburn.edu> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50804 Archived-At: Luc Teirlinck wrote: > After bootstrapping failed due to an undefined reference to xalloc, I > made the obvious correction to xmalloc and installed in CVS, but after > that bootstrapping still fails with: > > regex.o: In function `extend_range_table_work_area': > /home/teirllm/emacscvsdir/emacs/lib-src/../src/regex.c:2069: undefined > reference to `xrealloc' > /home/teirllm/emacscvsdir/emacs/lib-src/../src/regex.c:2072: undefined > reference to `xmalloc' > regex.o: In function `regcomp': > /home/teirllm/emacscvsdir/emacs/lib-src/../src/regex.c:6295: undefined > reference to `xmalloc' > /home/teirllm/emacscvsdir/emacs/lib-src/../src/regex.c:6301: undefined > reference to `xmalloc' > collect2: ld returned 1 exit status > make[3]: *** [etags] Error 1 > make[3]: Leaving directory `/home/teirllm/emacscvsdir/emacs/lib-src' > make[2]: *** [lib-src] Error 2 > make[2]: Leaving directory `/home/teirllm/emacscvsdir/emacs' > make[1]: *** [bootstrap-build] Error 2 > make[1]: Leaving directory `/home/teirllm/emacscvsdir/emacs' > make: *** [bootstrap] Error 2 > > lisp.h is, at least conditionally, already included in regex.c No, it is only included if emacs is #define:d (-Demacs), and it is not when compiling from lib-src. But what are we trying to do, use xrealloc or define xrealloc as realloc? In the first case alloc.c needs to be linked in also, or perhaps xrealloc/xmalloc defined in regex.c also (as it is in termcap.s for example). Jan D.