Subject: pkg/23701: emacs does not build on NetBSD/amd64-current.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <email@example.com>
Date: 12/10/2003 01:45:28
>Synopsis: emacs does not build on NetBSD/amd64-current.
>Arrival-Date: Wed Dec 10 01:46:01 UTC 2003
>Originator: Richard Rauch
NetBSD socrates 1.6ZG NetBSD 1.6ZG (GENERIC) #3: Sat Dec 6 11:57:52 CST 2003 root@socrates:/usr/netbsd/current/src/sys/arch/amd64/compile/obj.amd64/GENERIC amd64
Attempting to build emacs on NetBSD/amd64 fails.
I updated pkgsrc just a couple of days ago, and also searched for old
reports (closed or otherwise) on pkgsrc/emacs.
At least one problem seems to be the absence of a "machine" header;
config.h attempts to include "m/.h":
cc -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib -DHAVE_CONFIG_H -I. -I../src -I/usr/pkgsrc/editors/emacs/
work.x86_64/emacs-21.3/lib-src -I/usr/pkgsrc/editors/emacs/work.x86_64/emacs-21.3/lib-src/../src -Wl,-z,nocombreloc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/
usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib -I/us
r/pkg/include -I/usr/X11R6/include -O2 -I/usr/pkg/include -I/usr/X11R6/include -o test-distrib /usr/pkgsrc/editors/emacs/work.x86_64/emacs-21.3/lib-src/t
In file included from /usr/pkgsrc/editors/emacs/work.x86_64/emacs-21.3/lib-src/test-distrib.c:23:
../src/config.h:388:25: m/.h: No such file or directory
gmake: *** [test-distrib] Error 1
gmake: Leaving directory `/usr/pkgsrc/editors/emacs/work.x86_64/emacs-21.3/lib-src'
gmake: *** [lib-src] Error 2
*** Error code 2
On a NetBSD/amd64 system, install pkgsrc and attempt to build emacs from
Presumably, with the right information, it would be trivial to write a
machine-dependant header (and perhaps adjust the config script to find
the right one). I do not have that information.
However, there are at least 4 workarounds:
* Use emacs running on another machine. Provided a common filesystem,
or the ability to transfer files readily...
* Use xemacs. I don't care for it as much, and when I tried it, it
wiped out some of my .emacs config information (sigh). However,
xemacs does build and run.
It may be worth mentioning that some GNU/LINUX distributions seem to
have a working version for amd64, but since they prefer binary-only
packages, I haven't yet found their sources.