Jeff Miller <jmiller(a)smart.net> writes in xemacs-beta(a)xemacs.org:
I'm kinda confused on this one, so I'd like to see if anyone
can
duplicate it.
On my Linux box here at home I can build xemacs 21.1.4 without
menubars without a problem. I tried the same thing on my Solaris
workstation at work today. The compile goes ok until the final link
when it bitches about a missing external reference to
menubar_show_keybindings in gui.c. If I add a "#ifdef HAVE_MENUBARS"
wrapper around that little "if" statement in gui.c, xemacs compiles and
dumps fine.
has anyone else seen this or even begin to have a clue why?
Possibly differences in the linker. I don't know. Have you tried it
on Solaris with a full GNU toolset (ie. with gas and gnuld)?
I just tried a build with X without menubars with 21.2 and it bombs
out here:
gcc -c -g -O3 -Demacs -I. -DHAVE_CONFIG_H -I/usr/lib/locale/ja/wnn/demo/include
-I/usr/local/include -I/usr/local/canna/include -I/usr/dt/include
-I/usr/local/X11R6/include /usr/local/devel/xemacs-21.2/src/scrollbar-x.c
/usr/local/devel/xemacs-21.2/src/scrollbar-x.c: In function
`update_one_scrollbar_bs':
/usr/local/devel/xemacs-21.2/src/scrollbar-x.c:189: `XtNuseBackingStore' undeclared
(first use in this function)
/usr/local/devel/xemacs-21.2/src/scrollbar-x.c:189: (Each undeclared identifier is
reported only once
/usr/local/devel/xemacs-21.2/src/scrollbar-x.c:189: for each function it appears in.)
make[1]: *** [scrollbar-x.o] Error 1
make[1]: Leaving directory `/usr/local/devel/miho-test/src'
make: *** [src] Error 2
and I see your problem with a build against 21.1:
Undefined first referenced
symbol in file
menubar_show_keybindings gui.o
ld: fatal: Symbol referencing errors. No output written to temacs
collect2: ld returned 1 exit status