NetBSD Problem Report #51090

From wiz@yt.nih.at  Sun Apr 24 16:23:54 2016
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4D1F37A2B1
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Apr 2016 16:23:54 +0000 (UTC)
Message-Id: <20160424162335.6AABC2AC0B4@yt.nih.at>
Date: Sun, 24 Apr 2016 18:23:35 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: emacs21 does not package 
X-Send-Pr-Version: 3.95

>Number:         51090
>Category:       pkg
>Synopsis:       emacs21 does not package
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 24 16:25:00 +0000 2016
>Closed-Date:    Tue May 03 09:41:33 +0000 2016
>Last-Modified:  Tue May 03 09:45:00 +0000 2016
>Originator:     Thomas Klausner
>Release:        NetBSD 7.99.28
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
emacs dumps core during the build, which leads to setlist issues.

=> Checking file-check results for emacs21-21.4anb34
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /scratch/editors/emacs21/work/.destdir/usr/pkg:
ERROR:         /scratch/editors/emacs21/work/.destdir/usr/pkg/share/emacs/21.4/lisp/fast-lock.elc
ERROR:         /scratch/editors/emacs21/work/.destdir/usr/pkg/share/emacs/21.4/lisp/mail/smtpmail.elc
ERROR:         /scratch/editors/emacs21/work/.destdir/usr/pkg/share/emacs/21.4/lisp/sort.elc
ERROR: ************************************************************
ERROR: The following files are in /scratch/editors/emacs21/work/.destdir/usr/pkg but not in the PLIST:
ERROR:         /scratch/editors/emacs21/work/.destdir/usr/pkg/share/emacs/21.4/lisp/emacs.core
*** Error code 1

emacs24 works fine for me.
>How-To-Repeat:
Try building on 7.99.28/amd64.
>Fix:
Not provided.
When I copy emacs24/hacks.mk, I get a different failure:

dispnew.o: In function `copy_glyph_row_contents':
dispnew.c:(.text+0x229c): undefined reference to `copy_row_except_pointers'
dispnew.o: In function `assign_row':
dispnew.c:(.text+0x2384): undefined reference to `copy_row_except_pointers'
dispnew.o: In function `mirror_line_dance':
dispnew.c:(.text+0x5a39): undefined reference to `copy_row_except_pointers'
syntax.o: In function `back_comment':
syntax.c:(.text+0x3eb6): undefined reference to `dec_bytepos'
syntax.o: In function `scan_words':
syntax.c:(.text+0x6576): undefined reference to `dec_bytepos'
syntax.o: In function `Fforward_comment':
syntax.c:(.text+0xcb16): undefined reference to `dec_bytepos'
syntax.o: In function `scan_lists':
syntax.c:(.text+0xff57): undefined reference to `dec_bytepos'
syntax.c:(.text+0x1232f): undefined reference to `dec_bytepos'
syntax.o:syntax.c:(.text+0x128b2): more undefined references to `dec_bytepos' follow
Makefile:107: recipe for target 'temacs' failed

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51090: emacs21 does not package
Date: Mon, 25 Apr 2016 00:45:09 +0000

 On Sun, Apr 24, 2016 at 04:25:00PM +0000, Thomas Klausner wrote:
  > emacs dumps core during the build, which leads to setlist issues.

 Is this with gcc53? Also, does emacs20 build?

 (because I look after emacs20 some, emacs21 tends to be the least fixed)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51090: emacs21 does not package
Date: Mon, 25 Apr 2016 11:29:36 +0200

 On Mon, Apr 25, 2016 at 12:50:01AM +0000, David Holland wrote:
 >  Is this with gcc53?

 Yes.

 > Also, does emacs20 build?

 Yes:

 => Creating binary package /packages/All/emacs20-20.7nb18.tgz

 However, above that I see:

 chmod 1755  /scratch/editors/emacs20/work/.destdir/usr/pkg/bin/emacs-20.7
 chmod: /scratch/editors/emacs20/work/.destdir/usr/pkg/bin/emacs-20.7: Inappropriate file type or format

 and it doesn't run:

 # emacs
 Memory fault

  Thomas

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/51090: emacs21 does not package
Date: Mon, 25 Apr 2016 11:30:47 +0200

 On Mon, Apr 25, 2016 at 09:30:02AM +0000, Thomas Klausner wrote:
 >  # emacs
 >  Memory fault

 gdb says:

 #0  _libc_init () at /usr/src/lib/libc/misc/initfini.c:93
 93                      __libc_dlauxinfo = __ps_strings->ps_argvstr +
 (gdb) bt
 #0  _libc_init () at /usr/src/lib/libc/misc/initfini.c:93
 #1  0x000072b3c5a3d064 in ?? () from /usr/lib/libc.so.12
 #2  0x000072b3c64f2340 in ?? ()
 #3  0x000072b3c5a38279 in _init () from /usr/lib/libc.so.12
 #4  0x0000000000000000 in ?? ()

  Thomas

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51090: emacs21 does not package
Date: Mon, 25 Apr 2016 16:22:45 +0200

 On Sun, Apr 24, 2016 at 04:25:00PM +0000, Thomas Klausner wrote:
 > >Description:
 > emacs dumps core during the build, which leads to setlist issues.

 Emacs doesn't support ASLR at all. See the existing problems with
 building Emacs on Xen etc.

 Insert "unexec considered harmful" rant here.

 Joerg

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51090: emacs21 does not package
Date: Mon, 25 Apr 2016 23:17:22 +0200

 On Mon, Apr 25, 2016 at 02:25:00PM +0000, Joerg Sonnenberger wrote:
 >  Emacs doesn't support ASLR at all. See the existing problems with
 >  building Emacs on Xen etc.

 Well, the other emacs package versions (emacs24, emacs-current in wip)
 manage to sneak in a 'paxctl +a' which turns off ASLR for the
 problematic files. Perhaps emacs20 and emacs21 can learn that too?
  Thomas

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 03 May 2016 09:41:33 +0000
State-Changed-Why:
Fixed


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51090 CVS commit: pkgsrc/editors/emacs21
Date: Tue, 3 May 2016 09:41:20 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue May  3 09:41:20 UTC 2016

 Modified Files:
 	pkgsrc/editors/emacs21: distinfo
 	pkgsrc/editors/emacs21/patches: patch-aa patch-av patch-src_Makefile.in
 Added Files:
 	pkgsrc/editors/emacs21: hacks.mk
 	pkgsrc/editors/emacs21/patches: patch-src_syntax.c

 Log Message:
 Fix build on -current.

 From anon.

 Fixes PR 51090.


 To generate a diff of this commit:
 cvs rdiff -u -r1.20 -r1.21 pkgsrc/editors/emacs21/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/editors/emacs21/hacks.mk
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/editors/emacs21/patches/patch-aa
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/editors/emacs21/patches/patch-av \
     pkgsrc/editors/emacs21/patches/patch-src_Makefile.in
 cvs rdiff -u -r0 -r1.1 pkgsrc/editors/emacs21/patches/patch-src_syntax.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.