Subject: Re: problems building emacs
To: Sylvester F <sylvester_f@hotmail.com>
From: Brett Lymn <blymn@baesystems.com.au>
List: netbsd-help
Date: 01/11/2001 23:11:24
According to Sylvester F:
>
>anyone succeeded in compiling emacs on netbsd1.5?
>i tried to compile emacs19-34 but failed.
>for some time, it compiled happily, and then ended with some errors:
>

Yes, but it was not fun.  As someone else recommended you are probably
best off getting the latest and greatest.  If you want to persist with
19.34 what you need to do is make sure that unexec is using the ELF
version (unexelf.c) not the sunos4 one you appear to be using, just
copy unexelf.c to unexec.c.  Edit the unexec.c file and comment out
this block of defines:

# define PT_LOAD      Elf_pt_load
# define SHT_SYMTAB     Elf_sht_symtab
# define SHT_DYNSYM     Elf_sht_dynsym
# define SHT_NULL       Elf_sht_null
# define SHT_NOBITS     Elf_sht_nobits
# define SHT_REL        Elf_sht_rel
# define SHT_RELA       Elf_sht_rela

# define SHN_UNDEF      Elf_eshn_undefined
# define SHN_ABS        Elf_eshn_absolute
# define SHN_COMMON     Elf_eshn_common


You should then be able to build emacs for NetBSD ELF.

-- 
===============================================================================
Brett Lymn, Computer Systems Administrator, BAE SYSTEMS
===============================================================================