From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gabriele Svelto Newsgroups: gmane.emacs.bugs Subject: bug#22385: 24.5; Build failure with modules on OpenBSD Date: Mon, 18 Jan 2016 00:58:30 +0100 Message-ID: <569C2AA6.8030802@gmail.com> References: <569C1616.5030603@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1453075950 3958 80.91.229.3 (18 Jan 2016 00:12:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2016 00:12:30 +0000 (UTC) Cc: 22385-done@debbugs.gnu.org To: Paul Eggert , Joakim Jalap Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 01:12:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKxQd-00089V-8d for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jan 2016 01:12:15 +0100 Original-Received: from localhost ([::1]:56279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKxQZ-0003Na-5d for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jan 2016 19:12:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKxQU-0003N8-Sp for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2016 19:12:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKxQQ-0003F1-MW for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2016 19:12:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKxQQ-0003Ex-IL for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2016 19:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aKxQQ-0007db-9f for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2016 19:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gabriele Svelto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2016 00:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22385-done@debbugs.gnu.org id=D22385.145307590629301 (code D ref 22385); Mon, 18 Jan 2016 00:12:02 +0000 Original-Received: (at 22385-done) by debbugs.gnu.org; 18 Jan 2016 00:11:46 +0000 Original-Received: from localhost ([127.0.0.1]:52191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKxQA-0007cV-FX for submit@debbugs.gnu.org; Sun, 17 Jan 2016 19:11:46 -0500 Original-Received: from mail-wm0-f42.google.com ([74.125.82.42]:38016) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aKxDS-0006jG-2u for 22385-done@debbugs.gnu.org; Sun, 17 Jan 2016 18:58:38 -0500 Original-Received: by mail-wm0-f42.google.com with SMTP id b14so98911803wmb.1 for <22385-done@debbugs.gnu.org>; Sun, 17 Jan 2016 15:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=76tzReH2++LFamskX3PsAQLDPL5xD4TwJidP0q/Wc3s=; b=BpmgWQ8owPR+62DX2EcylH8ENMoRc55Up3wdeXdRT4gOpzAgOPjQ9WZF0z9LawncMn mjS/5LvFoavNQjuPpgCN+irAYv7VOI4tH4kvs3BzsHWHhrNY/NsAcwKk2+uMFYe/ihb/ kWfLU65RSkTUswF9E6xXUV6nz4o8ddIlz3zWZI1gCh0lOoyyMJQN0Yybiu0K8FqJsUYD qjODI9wDbT8odAp4a8vAQxWuWVgLHjz3q0HsAs6UCPLP6Ld19h25wCWTqUbH3B03gSaC x1Tph+nySAX+4WeyWjXJ3T3xi99nUmCBc4l8T32T4/G6g5/NVfPeTBjKFXafHO/XunKJ 0UNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=76tzReH2++LFamskX3PsAQLDPL5xD4TwJidP0q/Wc3s=; b=QdEiiJgS11/k0WIE3gJJUhgWLswpxILqpQvtCIYv7s8KLXIWwuLvZ4VqZvth7cXqE5 2hR8KxRyiHme+ZU5+//jmdX0w3KVy5Rq191b9WAbL6emUdDDy3bTgu8BRbuV3A0UUkR0 Hkx0oae1i8M4+TKxOXEKHXNSkqJczdFbjTuGxoG/A3E8PNKQ1ObGFpozAYpJFYN+vpFl I+sWY9uoVHzOgfAYtgvNChgXcspYSmbmjsBvqNA1hADJ1QoDVlV7zHkjdV2IFFKjdRwv o4m46rG4s9KiwjkOUoG8+yZbSFiKQT0SRPn4bSCeCFhgV9gTeo+5Il0jEjlrDRqqai+v 7nRQ== X-Gm-Message-State: AG10YOT9aHtRxRiPxWQQo8Wa0MvlzMXyXYILjPhVSa3VmSNMMOZBnRKfpJNSuR0fPno74A== X-Received: by 10.28.194.197 with SMTP id s188mr9527258wmf.44.1453075112488; Sun, 17 Jan 2016 15:58:32 -0800 (PST) Original-Received: from [192.168.0.31] (dynamic-adsl-78-12-133-155.clienti.tiscali.it. [78.12.133.155]) by smtp.googlemail.com with ESMTPSA id w17sm13156951wmw.15.2016.01.17.15.58.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jan 2016 15:58:31 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <569C1616.5030603@cs.ucla.edu> X-Mailman-Approved-At: Sun, 17 Jan 2016 19:11:45 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111693 Archived-At: Hello Paul, thanks for getting in touch about this. There's a way to fix this issue in my macro and it's by running the test twice with and without the attribute and comparing the compiler error output instead of simply assuming that any error output means that the attribute is not supported. It's something I had considered doing in the beginning but deemed unnecessarily complicated at the time. Turns out I was wrong; I'll try to push a fix into autoconf-archive in the next few days. Gabriele On 17/01/2016 23:30, Paul Eggert wrote: > Thanks for reporting the problem. The OpenBSD compiler warnings about > strcpy etc. are false alarms, and these false alarms confuse the Emacs > build procedure and therefore introduce bugs into the Emacs module code. > We're lucky that a run-time assertion caught this. > > I installed the attached patch into the emacs-25 branch. It removes the > offending test in 'configure', and so should fix the bug so I am boldly > marking it as done. Please give the fix a try; if it doesn't work I can > unmark the bug. > > Is there some way to tell the OpenBSD C compiler to not chatter about > uses of strcpy, strcat, and sprintf? We don't want to use the > OpenBSD-suggested replacements in Emacs, as that would be more likely to > introduce bugs than to fix them. If we can suggest (or get 'configure' > to use) a build-time option to suppress the false alarms that would save > everybody some work and would help make Emacs more reliable. > > Although the OpenBSD porting problem with AX_GCC_VAR_ATTRIBUTE no longer > affects Emacs, it might affect other programs that use that macro, so > I'll CC: this to the macro's author Gabriele Svelto. Gabriele, the bug > report is here: > > http://bugs.gnu.org/22385