Subject: The last crtbegin change causes Emacs build problem
To: None <current-users@netbsd.org>
From: TAMURA Kent <kent@netbsd.org>
List: current-users
Date: 06/05/2003 15:23:53
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/csu/common_elf/crtbegin.c.diff?r1=1.20&r2=1.21

This change makes temacs non-NetBSD binary.

% cd /usr/pkgsrc/editors/emacs
% make
<<snip>>
cc -nostartfiles    -Wl,-z,nocombreloc -Wl,-R/usr/pkg/lib -L/usr/pkg/lib  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib       -o temacs pre-crt0.o /usr/lib/crt0.o /usr/lib/crtbegin.o dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o    charset.o coding.o category.o ccl.o cm.o term.o xfaces.o xterm.o xfns.o xselect.o xrdb.o fontset.o  emacs.o keyboard.o macros.o keymap.o sysdep.o   buffer.o filelock.o insdel.o marker.o   minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o  alloc.o data.o doc.o editfns.o callint.o        eval.o floatfns.o fns.o print.o lread.o         abbrev.o syntax.o unexelf.o  mocklisp.o bytecode.o      process.o callproc.o    region-cache.o sound.o atimer.o         doprnt.o strftime.o intervals.o textprop.o composite.o md5.o     tparam.o lastfile.o gmalloc.o ralloc.o vm-limit.o  widget.o mktime.o          ../lwlib/liblw.a -L/usr/X11R6/lib    -lXaw -lXmu  -lXt -lSM -lICE -lXext -ltiff  -ljpeg  -lpng -lz -lm  -lungif  -lXpm  -lX11      -lossaudio        -ltermcap         -lm  -lgcc -lc -lgcc /usr/lib/crtend.o
<<snip>>
LC_ALL=C ./temacs -batch -l loadup dump
./temacs: 1: Syntax error: "(" unexpected
gmake[1]: *** [emacs] Error 2
<<snip>>
% file work/emacs-21.3/src/temacs
work/emacs-21.3/src/temacs: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped


The output of file(1) must contain "for NetBSD."  I'm not sure
which should be fixed, Emacs or crtbegin.

-- 
TAMURA Kent <kent2003@hauN.org> <kent@netbsd.org>