From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Naohiro Aota Newsgroups: gmane.emacs.bugs Subject: bug#5957: 23.1.95; [PATCH] Build failure on FreeBSD Date: Fri, 16 Apr 2010 15:46:21 +0900 (JST) Message-ID: <20100416.154621.1898092761212240086.naota@elisp.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Apr_16_15_46_21_2010_662)--" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271420957 8227 80.91.229.12 (16 Apr 2010 12:29:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 12:29:17 +0000 (UTC) To: 5957@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 16 14:29:14 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2kfa-00067x-0H for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 14:29:14 +0200 Original-Received: from localhost ([127.0.0.1]:43216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2kfZ-0002Nm-DP for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 08:29:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2kfS-0002N8-Rj for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 08:29:06 -0400 Original-Received: from [140.186.70.92] (port=49742 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2kfQ-0002Ly-VV for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 08:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2kfO-0006OC-Ni for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 08:29:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42212) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2kfO-0006O8-Kr for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 08:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O2kQr-0007GC-W9; Fri, 16 Apr 2010 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Naohiro Aota Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2010 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127142002127888 (code B ref -1); Fri, 16 Apr 2010 12:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Apr 2010 12:13:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2kQV-0007Fk-0D for submit@debbugs.gnu.org; Fri, 16 Apr 2010 08:13:40 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2jFi-00068K-QO for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:58:27 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:53496) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O2jFd-0004CN-Ec for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:58:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2jFc-0002vj-95 for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 06:58:20 -0400 Original-Received: from [140.186.70.92] (port=55684 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2jFX-0002u9-Ii for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 06:58:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2fUE-0001yW-9p for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 03:00:22 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:47496) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2fUC-0001xi-8I for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2010 02:57:08 -0400 Original-Received: by vws8 with SMTP id 8so1185215vws.0 for ; Thu, 15 Apr 2010 23:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:message-id:to :subject:from:x-mailer:mime-version:content-type :content-transfer-encoding; bh=uAp6u0jqG/ZxbDa12yc+8Uzxjxq2EWuf0ml7LvovwXo=; b=TeWPFqFzlxcD0l3iQuqKUW/0TZJ8xtAGTNA25CF+FsGBPG4Zzbju6SSBE30D0WHVYp IIqoXDoiUHvv6eBP37AeGWFnNg+E6Ub0AJRzFrTgrwhBFtYu5zyrrE7OGtPbOtseMwaW YgaTbF9NH7hBItAeMZmAlvn1kbsGvYt2M/shk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:message-id:to:subject:from:x-mailer:mime-version :content-type:content-transfer-encoding; b=T6qcbKLZIH1ldgI5lbMdpEasrciBSaQjlLtw2fTSVONw1dMuofmVAISXHJc2rJJ+eM QRttf3Cj8iG/LhqrQuAMrWd70bazzssQxWZTGekRh26QU1msrgK2lb+L6ATL5LiiX8tR l74+Ipa7WB6V6tOjLgIi1EUkL4NpMdC7DUH9w= Original-Received: by 10.220.88.81 with SMTP id z17mr675074vcl.154.1271401025522; Thu, 15 Apr 2010 23:57:05 -0700 (PDT) Original-Received: from localhost (zaq3a55f429.zaq.ne.jp [58.85.244.41]) by mx.google.com with ESMTPS id z13sm2037971vco.18.2010.04.15.23.57.03 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Apr 2010 23:57:04 -0700 (PDT) X-Mailer: Mew version 7.0.50 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 16 Apr 2010 08:13:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 16 Apr 2010 08:14:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36269 Archived-At: ----Next_Part(Fri_Apr_16_15_46_21_2010_662)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Emacs trunk cannot to be build on FreeBSD with the follwing error. /usr/lib/gcc/i686-gentoo-freebsd7.2/4.4.3/../../../../i686-gentoo-freebsd7.2/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status gmake[1]: *** [temacs] Error 1 gmake[1]: Leaving directory `/usr/local/src/bzr-src/emacs-trunk/src' gmake: *** [src] Error 2 Rev 99699 removed "#include ", but this line is necessary to define __FreeBSD_version. Without the line, "#if __FreeBSD_version < 400000" always succeeds and cause "#define LIBS_TERMCAP -ltermcap" which is not adequate library. With the attached patch, I was able to build emacs on FreeBSD again. In GNU Emacs 23.1.95.1 (i686-gentoo-freebsd7.2, GTK+ Version 2.18.9) of 2010-04-13 on sana configured using `configure '--prefix=/usr' '--build=i686-gentoo-freebsd7.2' '--host=i686-gentoo-freebsd7.2' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '-\ -localstatedir=/var/lib' '--program-suffix=-emacs-23-vcs' '--infodir=/usr/share/info/emacs-23-vcs' '--with-sound' '--with-x' '--without-gconf' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-pn\ g' '--with-rsvg' '--without-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--without-gpm' '--with-\ dbus' 'build_alias=i686-gentoo-freebsd7.2' 'host_alias=i686-gentoo-freebsd7.2' 'CFLAGS=-O2 -march=native -pipe' 'LDFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t ----Next_Part(Fri_Apr_16_15_46_21_2010_662)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emacs-freebsd.patch" === modified file 'src/s/freebsd.h' --- src/s/freebsd.h 2010-03-20 07:57:11 +0000 +++ src/s/freebsd.h 2010-04-16 06:43:51 +0000 @@ -23,6 +23,7 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ +#include /* Get most of the stuff from bsd-common */ #include "bsd-common.h" ----Next_Part(Fri_Apr_16_15_46_21_2010_662)----