FreeBSD 3.0-CURRENT (soon to be -RELEASE) has switched from a.out to
ELF and XEmacs won't build or run properly. If s/freebsd.h is synched
up with Emacs 20.3, to use unexelf.c for instance, it will build
properly, but dumps core when it attempts to run. Moreover, Emacs-20.3
builds and runs perfectly fine in the new ELF world of FreeBSD.
This is with 21.2, though I imagine all versions would have this same
problem. Here's a backtrace:
(gdb) bt
#0 0x8051ccd in allocate_string_chars_struct (string_it_goes_with=0x8398634,
fullsize=56) at /jaz/xemacs/xemacs-21.2/src/alloc.c:2123
#1 0x8051e96 in make_uninit_string (length=50)
at /jaz/xemacs/xemacs-21.2/src/alloc.c:2156
#2 0x8052412 in make_string (
contents=0xefbfd394 "/jaz/xemacs/xemacs-21.2/objdir/lisp/auto-autoloads",
length=50) at /jaz/xemacs/xemacs-21.2/src/alloc.c:2391
#3 0x80d2803 in Fexpand_file_name (name={gu = {type = Lisp_Type_Record,
val = 34496901}, s = {bits = 0, val = 68993802}, u = {bits = 0,
val = 68993802}, ui = 137987604, i = 137987604, v = 0x8398614,
cv = 0x8398614}, default_directory={gu = {type = Lisp_Type_Record,
val = 34520969}, s = {bits = 0, val = 69041938}, u = {bits = 0,
val = 69041938}, ui = 138083876, i = 138083876, v = 0x83afe24,
cv = 0x83afe24}) at /jaz/xemacs/xemacs-21.2/src/fileio.c:1267
#4 0x808b130 in funcall_recording_as (recorded_as={gu = {
type = Lisp_Type_Record, val = 34370561}, s = {bits = 0,
val = 68741122}, u = {bits = 0, val = 68741122}, ui = 137482244,
i = 137482244, v = 0x831d004, cv = 0x831d004}, nargs=2, args=0xefbfd734)
at /jaz/xemacs/xemacs-21.2/src/eval.c:3197
#5 0x808b365 in Ffuncall (nargs=3, args=0xefbfd734)
at /jaz/xemacs/xemacs-21.2/src/eval.c:3238
#6 0x80612e6 in Fbyte_code (bytestr={gu = {type = Lisp_Type_Record,
val = 34190489}, s = {bits = 0, val = 68380978}, u = {bits = 0,
val = 68380978}, ui = 136761956, i = 136761956, v = 0x826d264,
cv = 0x826d264}, vector={gu = {type = Lisp_Type_Record, val = 34190535},
s = {bits = 0, val = 68381070}, u = {bits = 0, val = 68381070},
ui = 136762140, i = 136762140, v = 0x826d31c, cv = 0x826d31c}, maxdepth={
gu = {type = Lisp_Type_Int_Even, val = 3}, s = {bits = 1, val = 6}, u = {
bits = 1, val = 6}, ui = 13, i = 13, v = 0xd, cv = 0xd})
at /jaz/xemacs/xemacs-21.2/src/bytecode.c:416
#7 0x808c3c4 in funcall_lambda (fun={gu = {type = Lisp_Type_Record,
val = 34190664}, s = {bits = 0, val = 68381328}, u = {bits = 0,
val = 68381328}, ui = 136762656, i = 136762656, v = 0x826d520,
cv = 0x826d520}, nargs=0, arg_vector=0xefbfd7e0)
at /jaz/xemacs/xemacs-21.2/src/eval.c:3599
#8 0x808bc8b in apply_lambda (fun={gu = {type = Lisp_Type_Record,
val = 34190664}, s = {bits = 0, val = 68381328}, u = {bits = 0,
val = 68381328}, ui = 136762656, i = 136762656, v = 0x826d520,
cv = 0x826d520}, numargs=0, unevalled_args={gu = {
type = Lisp_Type_Record, val = 34347009}, s = {bits = 0,
val = 68694018}, u = {bits = 0, val = 68694018}, ui = 137388036,
i = 137388036, v = 0x8306004, cv = 0x8306004})
at /jaz/xemacs/xemacs-21.2/src/eval.c:3501
#9 0x808ac14 in Feval (form={gu = {type = Lisp_Type_Record, val = 34413513},
s = {bits = 0, val = 68827026}, u = {bits = 0, val = 68827026},
ui = 137654052, i = 137654052, v = 0x8346f24, cv = 0x8346f24})
at /jaz/xemacs/xemacs-21.2/src/eval.c:3085
#10 0x8087f60 in condition_case_1 (handlers={gu = {type = Lisp_Type_Record,
val = 34347037}, s = {bits = 0, val = 68694074}, u = {bits = 0,
val = 68694074}, ui = 137388148, i = 137388148, v = 0x8306074,
cv = 0x8306074}, bfun=0x8089e14 <Feval>, barg={gu = {
type = Lisp_Type_Record, val = 34413513}, s = {bits = 0,
val = 68827026}, u = {bits = 0, val = 68827026}, ui = 137654052,
i = 137654052, v = 0x8346f24, cv = 0x8346f24},
hfun=0x8069140 <cmd_error>, harg={gu = {type = Lisp_Type_Record,
val = 34347009}, s = {bits = 0, val = 68694018}, u = {bits = 0,
val = 68694018}, ui = 137388036, i = 137388036, v = 0x8306004,
cv = 0x8306004}) at /jaz/xemacs/xemacs-21.2/src/eval.c:1653
#11 0x806a158 in top_level_1 (dummy={gu = {type = Lisp_Type_Record,
val = 34347009}, s = {bits = 0, val = 68694018}, u = {bits = 0,
val = 68694018}, ui = 137388036, i = 137388036, v = 0x8306004,
cv = 0x8306004}) at /jaz/xemacs/xemacs-21.2/src/cmdloop.c:206
#12 0x8087b74 in internal_catch (tag={gu = {type = Lisp_Type_Record,
val = 34366591}, s = {bits = 0, val = 68733182}, u = {bits = 0,
---Type <return> to continue, or q <return> to quit---
val = 68733182}, ui = 137466364, i = 137466364, v = 0x83191fc,
cv = 0x83191fc}, func=0x806a12c <top_level_1>, arg={gu = {
type = Lisp_Type_Record, val = 34347009}, s = {bits = 0,
val = 68694018}, u = {bits = 0, val = 68694018}, ui = 137388036,
i = 137388036, v = 0x8306004, cv = 0x8306004}, threw=0x0)
at /jaz/xemacs/xemacs-21.2/src/eval.c:1328
#13 0x8069290 in initial_command_loop (load_me={gu = {type = Lisp_Type_Record,
val = 34347009}, s = {bits = 0, val = 68694018}, u = {bits = 0,
val = 68694018}, ui = 137388036, i = 137388036, v = 0x8306004,
cv = 0x8306004}) at /jaz/xemacs/xemacs-21.2/src/cmdloop.c:285
#14 0x8083a65 in xemacs_21_2_b1_i386_unknown_freebsd3_0 (argc=1,
argv=0xefbfdac4, envp=0xefbfdacc, restart=0)
at /jaz/xemacs/xemacs-21.2/src/emacs.c:1702
#15 0x808412b in main (argc=1, argv=0xefbfdac4, envp=0xefbfdacc)
at /jaz/xemacs/xemacs-21.2/src/emacs.c:2119
#16 0x804e51e in _start ()
--
Josh Howard (jrh(a)zeppelin.net) --
http://www.zeppelin.net/