I still can not build 21.5 on Solaris because wcslen is undefined:
<Linefeeds added to avoid mailer wussiness>
make[2]: Leaving directory
`/u/shelton2/software/build/SunOS-5.5/xemacs-21.5-2002-05-24-debug/dynodump'
gcc -O2 -pipe -ffast-math -fno-exceptions -g -fno-gnu-linker
-L/u/shelton2/software/SunOS-5.5/lib -L/usr/ccs/lib -Xlinker
-R/u/shelton2/software/SunOS-5.5/lib:/usr/dt/lib:/usr/openwin/lib:/u/shelton2/software/SunOS-5.5/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.5.1/3.1/../../..
-L/usr/dt/lib
-L/usr/openwin/lib -o temacs abbrev.o alloc.o alloca.o balloon_help.o
balloon-x.o blocktype.o buffer.o bytecode.o callint.o callproc.o
casefiddle.o casetab.o chartab.o filelock.o cmdloop.o cmds.o console.o
console-stream.o data.o database.o debug.o tests.o device.o dired.o
doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o eval.o events.o
event-stream.o event-unixoid.o unexsol2.o getloadavg.o inline.o
terminfo.o extents.o faces.o file-coding.o fileio.o filemode.o
floatfns.o fns.o font-lock.o frame.o general.o dgif_lib.o gif_io.o
glyphs.o glyphs-eimage.o glyphs-shared.o glyphs-widget.o gui.o
menubar.o scrollbar.o toolbar.o gutter.o hash.o imgproc.o indent.o
insdel.o intl.o keymap.o line-number.o lread.o lstream.o macros.o
marker.o md5.o minibuf.o objects.o opaque.o print.o process.o
process-unix.o profile.o rangetab.o realpath.o redisplay.o
redisplay-output.o regex.o search.o select.o sysdll.o emodules.o
signal.o sound.o specifier.o strftime.o symbols.o syntax.o sysdep.o
text.o tooltalk.o console-tty.o device-tty.o event-tty.o frame-tty.o
objects-tty.o redisplay-tty.o cm.o undo.o unicode.o console-x.o
device-x.o event-Xt.o frame-x.o glyphs-x.o objects-x.o redisplay-x.o
select-x.o xgccache.o intl-x.o gui-x.o menubar-x.o scrollbar-x.o
toolbar-x.o toolbar-common.o widget.o window.o lastfile.o gmalloc.o
free-hook.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o
TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o
../lwlib/liblw.a -lpng -lz -lXpm -ltt -lXmu -lXt -lXext -lX11 -lcurses
-lkvm -lkstat -lm -lsocket -lnsl -lelf -lgen -ldl
Undefined first referenced
symbol in file
wcslen buffer.o (symbol belongs to implicit dependency
/usr/lib/libw.so.1)
ld: fatal: Symbol referencing errors. No output written to temacs
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory
`/u/shelton2/software/build/SunOS-5.5/xemacs-21.5-2002-05-24-debug/src'
make: *** [dump-elcs] Error 2
Once I append -lw to the link line, I can build an XEmacs which will
dump core when invoked (even -vanilla):
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.5.1"...
(gdb) run -vanilla
Starting program:
/u/shelton2/software/build/SunOS-5.5/xemacs-21.5-2002-05-24-debug/src/xemacs -vanilla
Program received signal SIGSEGV, Segmentation fault.
0x000c65d8 in compare_key_value_pairs (humpty=0x632240, dumpty=0x0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/extents.c:3516
3516 if (EQ (foo->key, bar->key))
(gdb) bt
#0 0x000c65d8 in compare_key_value_pairs (humpty=0x632240, dumpty=0x0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/extents.c:3516
#1 0xef3ba9a4 in bsearch () from /usr/lib/libc.so.1
#2 0x000c6cc4 in Fset_extent_parent (extent=0, parent=0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/lisp.h:1093
#3 0x00185f84 in generate_formatted_string_db (format_str=6647896,
result_str=3430516, w=0x325c00, dl=0x459138, db=0x0, findex=0,
min_pixpos=6, max_pixpos=613, type=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:3799
#4 0x00186280 in generate_modeline (w=0x563000, dl=0x63b800, type=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:3896
#5 0x00187e28 in ensure_modeline_generated (w=0x563000, type=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:4442
#6 0x0018a1cc in regenerate_window (w=0x563000, start_pos=1, point=1, type=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:5347
#7 0x0018c24c in redisplay_window (window=5648384, skip_selected=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:6339
#8 0x0018d30c in redisplay_frame (f=0x585c00, preemption_check=0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:6628
#9 0x0018d640 in redisplay_device (d=0x5cfc00, automatic=1)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:6704
#10 0x0018dde0 in redisplay_without_hooks ()
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/redisplay.c:6791
#11 0x000b2d08 in Fsit_for (seconds=6784, nodisplay=3069956)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/event-stream.c:2848
#12 0x000a07d0 in Ffuncall (nargs=-1, args=0xefffec14)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:3631
#13 0x00064ecc in execute_optimized_program (program=0xefffec14 "",
stack_depth=1, constants_data=0x45e2d0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/bytecode.c:670
#14 0x00068c2c in Fbyte_code (instructions=4603284, constants=4580048,
stack_depth=9)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/lisp.h:2356
#15 0x000a017c in Feval (form=3724204)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:3449
#16 0x0009c630 in internal_catch (tag=4601060, func=0x9f650 <Feval>,
arg=3724204, threw=0x0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:1323
#17 0x000660c8 in execute_rare_opcode (stack_ptr=0xefffefd4,
program_ptr=0x60f139 "\210+rÏÊ!q\210Ð
\210\016\";«\005\016\"c\210ÑÈ!)\207\016'ÒÈ\211\211\211\211\030\035\034\036
\e\031\036#\n\205\201", opcode=Bcatch)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/bytecode.c:1176
#18 0x00064c58 in execute_optimized_program (program=0xefffefd8 "",
stack_depth=13, constants_data=0x465d10)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/bytecode.c:580
#19 0x000a502c in funcall_compiled_function (fun=4578824, nargs=6353152,
args=0xeffff1b0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/lisp.h:2082
#20 0x000a06e8 in Ffuncall (nargs=0, args=0xeffff1ac)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:3666
#21 0x00064ecc in execute_optimized_program (program=0xeffff1ac "",
stack_depth=0, constants_data=0x465e10)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/bytecode.c:670
#22 0x000a502c in funcall_compiled_function (fun=4578076, nargs=6094080,
args=0xeffff380)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/lisp.h:2082
#23 0x000a06e8 in Ffuncall (nargs=0, args=0xeffff37c)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:3666
#24 0x00064ecc in execute_optimized_program (program=0xeffff37c "",
stack_depth=0, constants_data=0x465010)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/bytecode.c:670
#25 0x000a502c in funcall_compiled_function (fun=4577988, nargs=3546368,
args=0xeffff4b0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/lisp.h:2082
#26 0x0009ff94 in Feval (form=4395660)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:3478
#27 0x0009cb18 in condition_case_1 (handlers=2524160, bfun=0x9f650 <Feval>,
barg=4395660, hfun=0x7210c <cmd_error>, harg=3069956)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:1692
#28 0x000721a8 in top_level_1 (dummy=3069956)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/cmdloop.c:209
#29 0x0009c630 in internal_catch (tag=3150380, func=0x72160 <top_level_1>,
arg=3069956, threw=0x0)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/eval.c:1323
#30 0x000722b8 in initial_command_loop (load_me=3069956)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/cmdloop.c:288
#31 0x00097af4 in xemacs_21_5_b6_sparc_sun_solaris2_5_1 (argc=2,
argv=0xeffffa64, envp=0xeffffa70, restart=5355620)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/emacs.c:2352
#32 0x0009854c in main (argc=2, argv=0xeffffa64, envp=0xeffffa70)
at /u/shelton2/software/src/xemacs-21.5-2002-05-24/src/emacs.c:2790
(gdb) q
HTH,
Vin