Date: Tue, 16 Dec 2003 23:49:58 -0600 (CST) From: James Van Artsdalen <james-freebsd-amd64@jrv.org> To: freebsd-amd64@freebsd.org Subject: Re: emacs? Message-ID: <200312170549.hBH5nwKF096166@bigtex.jrv.org>
next in thread | raw e-mail | index | archive | help
I got port xemacs-devel to build and run. There are two bugs: 1. An rlimit value is stored 32-bit int, truncating the value and confusing the allocator. This is in the xemacs sources. 2. unexelf.c was only using 32 bit things instead of 64. In this case it is the FreeBSD ports patch file that actually needs to change (these lines aren't present at all in the xemacs distribution). The second change should instead be something like #if sizeof(char *) == 8 or some such. *** mem-limits.h.~1~ Wed Aug 27 12:26:21 2003 --- mem-limits.h Tue Dec 16 22:10:00 2003 *************** *** 108,114 **** static POINTER data_space_start; /* Number of bytes of writable memory we can expect to be able to get */ ! extern unsigned int lim_data; #if defined (HEAP_IN_DATA) && !defined(PDUMP) extern unsigned long static_heap_size; --- 108,114 ---- static POINTER data_space_start; /* Number of bytes of writable memory we can expect to be able to get */ ! extern rlim_t lim_data; #if defined (HEAP_IN_DATA) && !defined(PDUMP) extern unsigned long static_heap_size; *** unexelf.c.~1~ Tue Dec 16 22:02:06 2003 --- unexelf.c Tue Dec 16 22:35:43 2003 *************** *** 475,481 **** # include <sys/exec_elf.h> #endif ! #if defined(__FreeBSD__) && defined(__alpha__) # ifdef __STDC__ # define ElfW(type) Elf64_##type # else --- 475,481 ---- # include <sys/exec_elf.h> #endif ! #if defined(__FreeBSD__) && (defined(__alpha__) || defined(__amd64)) # ifdef __STDC__ # define ElfW(type) Elf64_##type # else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312170549.hBH5nwKF096166>