I think this has been reported before:
link phase fails due to -Bexport switch:
cc -g -xO4 -L/usr/local//lib -L/usr/ccs/lib -xildoff
-R/usr/local//lib:/usr/dt/lib:/usr/openwin/lib:/opt/SUNWdt/lib -L/usr/dt/lib
-L/usr/openwin/lib -Wl,-Bexport -o temacs abbrev.o alloc.o blocktype.o buffer.o
bytecode.o callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o cmds.o
console.o console-stream.o data.o device.o dired.o doc.o doprnt.o dynarr.o editfns.o
elhash.o emacs.o eval.o events.o debug.o unexsol2.o tooltalk.o dragdrop.o dgif_lib.o
gif_io.o menubar.o scrollbar.o dialog.o toolbar.o menubar-x.o scrollbar-x.o dialog-x.o
toolbar-x.o gui-x.o mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o
input-method-motif.o sunplay.o console-tty.o device-tty.o event-tty.o frame-tty.o
objects-tty.o redisplay-tty.o cm.o terminfo.o event-unixoid.o database.o sysdll.o
emodules.o process-unix.o event-stream.o extents.o faces.o fileio.o filemode.o floatfns.o
fns.o font-lock.o frame.o general.o getloadavg.o glyphs.o glyphs-eimage.o glyphs-widget.o
gui.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 profile.o rangetab.o
redisplay.o redisplay-output.o regex.o search.o signal.o sound.o specifier.o strftime.o
symbols.o syntax.o sysdep.o undo.o balloon_help.o balloon-x.o console-x.o device-x.o
event-Xt.o frame-x.o glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o widget.o
window.o lastfile.o gmalloc.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o
TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o ../lwlib/liblw.a -lXm -ltiff
-lpng -ljpeg -lz -lcompface -lXpm -lDtSvc -ltt -lXmu -lXt -lXext -lX11 -ldl -lcurses
/usr/demo/SOUND/lib/libaudio.a -lintl -lkvm -lkstat -lm -lsocket -lnsl -lelf -lgen -ldl
cc: Warning: -g conflicts with auto-inlining, auto-inlining turned off
ld: fatal: option -B has illegal argument `export'
ld: fatal: Flags processing errors
*** Error code 1
make: Fatal error: Command failed for target `temacs'
Current working directory /export/home/tmp/21.2/xemacs/src
*** Error code 1
make: Fatal error: Command failed for target `src'
Compilation exited abnormally with code 1 at Fri Mar 26 21:48:16
Will try Didier's aclocal.m4 patch next.
Adrian
XEmacs Build Report as generated with
M-x build-report RET
by build-report-version $Revision: 1.55 $ follows:
Contents of /export/home/tmp/21.2/xemacs/Installation:
(Output from most recent run of ./configure)