bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22385: 24.5; Build failure with modules on OpenBSD


From: Paul Eggert
Subject: bug#22385: 24.5; Build failure with modules on OpenBSD
Date: Sun, 17 Jan 2016 14:30:46 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

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

Attachment: 0001-Port-cleanup-attribute-to-OpenBSD.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]