Subject: xemacs-21.1.4 build problems on netbsd?
To: None <port-mac68k@netbsd.org>
From: Nathan Raymond <nate@portents.com>
List: port-mac68k
Date: 08/07/1999 19:18:46
gcc exits on an error code 1 on the file src/unexhp9k3.c when I try
to build the latest xemacs, 21.1.4. I'm not sure why it seems to be
configured to use source for HPUX for netbsd 68k, but this is what
config does:
XEmacs 21.1.4 "Arches" configured for `m68k-apple-netbsd1.4'.
Where should the build process find the source code?
/home/nate/xemacs-21.1.4
What installation prefix should install use? /usr/local
What operating system and machine description files should XEmacs use?
`s/netbsd.h' and `m/hp9000s300.h'
So then I took a look at xemacs-21.1.4/configure.in, which
interestingly enough has this code:
case "$canonical" in
dnl NetBSD ports
*-*-netbsd* )
case "$canonical" in
i[[3-9]]86-*-netbsd*) machine=intel386 ;;
hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* |
mac68k-*-netbsd* | da
30-*-netbsd* | m68k-*-netbsd* )
dnl Yes, this is somewhat bogus.
machine=hp9000s300 ;;
pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
esac
;;
Encouraging comment, "Yes, this is somewhat bogus"! Are they
kludging this? This is where gcc craps out on me:
gcc -c -g -O2 -m68040 -Demacs -I. -DHAVE_CONFIG_H -I/usr/pkg/include/
-I/usr/X11R6/include unexhp9k3.c
In file included from unexhp9k3.c:52:
sysdep.h:34: warning: `struct device' declared inside parameter list
sysdep.h:34: warning: its scope is only this definition or declaration,
sysdep.h:34: warning: which is probably not what you want.
sysdep.h:36: warning: `struct console' declared inside parameter list
sysdep.h:38: warning: `struct device' declared inside parameter list
sysdep.h:47: syntax error before `get_eof_char'
sysdep.h:47: warning: data definition has no type or storage class
sysdep.h:88: warning: `struct console' declared inside parameter list
sysdep.h:89: warning: `struct console' declared inside parameter list
sysdep.h:90: warning: `struct device' declared inside parameter list
sysdep.h:91: warning: `struct device' declared inside parameter list
sysdep.h:121: warning: `struct device' declared inside parameter list
sysdep.h:125: warning: `struct device' declared inside parameter list
unexhp9k3.c: In function `unexec':
unexhp9k3.c:318: `EXEC_PAGESIZE' undeclared (first use in this function)
unexhp9k3.c:318: (Each undeclared identifier is reported only once
unexhp9k3.c:318: for each function it appears in.)
unexhp9k3.c:322: dereferencing pointer to incomplete type
unexhp9k3.c:390: structure has no member named `a_extension'
unexhp9k3.c:392: structure has no member named `a_extension'
unexhp9k3.c:465: storage size of `dhdr' isn't known
*** Error code 1
Stop.
*** Error code 1
Stop.
Any help with this greatly appreciated!
--
nathan raymond
webmaster <a href="http://www.everythingmac.com">everythingmac.com</a>