GNU emacs 21.2 ported (alpha) to Cygwin

Richard Campbell richard.campbell@air2web.com
Fri Aug 2 13:10:00 GMT 2002


I'm getting a link error due to libXt fighting with libXaw3d:

make[2]: Leaving directory `/d/emacs21/emacs-21.2-build/lwlib'
gcc    -L/usr/X11R6/lib       -o temacs ecrt0.o  dispnew.o frame.o scroll.o
xdis
p.o xmenu.o window.o    charset.o coding.o category.o ccl.o     cm.o term.o
xfac
es.o xterm.o xfns.o xselect.o xrdb.o fontset.o  emacs.o keyboard.o macros.o
keym
ap.o sysdep.o   buffer.o filelock.o insdel.o marker.o   minibuf.o fileio.o
dired
.o filemode.o   cmds.o casetab.o casefiddle.o indent.o search.o regex.o
undo.o a
lloc.o data.o doc.o editfns.o callint.o         eval.o floatfns.o fns.o
print.o
lread.o         abbrev.o syntax.o unexec.o  mocklisp.o bytecode.o
process.
o callproc.o    region-cache.o sound.o atimer.o         doprnt.o strftime.o
inte
rvals.o textprop.o composite.o md5.o     termcap.o tparam.o lastfile.o
widget.
o mktime.o getloadavg.o          ../lwlib/liblw.a -L/usr/X11R6/lib
-lXaw3d -l
Xmu  -lXt -lSM -lICE -lXext -ltiff  -ljpeg  -lpng -lz -lm    -lXpm  -lX11
            -lg   `gcc -print-libgcc-file-name`  -lm  -lc     `gcc
-print-libgcc
-file-name`
/usr/X11R6/lib/libXt.a(Callback.o)(.text+0x1ec):Callback.c: multiple
definition
of `XtAddCallback'
/usr/X11R6/lib/libXaw3d.a(d000167.o)(.text+0x0): first defined here
/usr/X11R6/lib/libXt.a(Callback.o)(.text+0x750):Callback.c: multiple
definition
of `XtRemoveCallback'
/usr/X11R6/lib/libXaw3d.a(d000369.o)(.text+0x0): first defined here
/usr/X11R6/lib/libXt.a(Callback.o)(.text+0xb94):Callback.c: multiple
definition
of `XtRemoveAllCallbacks'
/usr/X11R6/lib/libXaw3d.a(d000367.o)(.text+0x0): first defined here
/usr/X11R6/lib/libXt.a(Callback.o)(.text+0xff8):Callback.c: multiple
definition
of `XtCallCallbackList'
/usr/X11R6/lib/libXaw3d.a(d000216.o)(.text+0x0): first defined here
/usr/X11R6/lib/libXt.a(Display.o)(.text+0x3a4):Display.c: multiple
definition of
 `XtOpenDisplay'

(etc, for many more lines).

If I take -lXaw3d out of the link line, I get complaints that:

make[2]: Leaving directory `/d/emacs21/emacs-21.2-build/lwlib'
gcc    -L/usr/X11R6/lib       -o temacs ecrt0.o  dispnew.o frame.o scroll.o
xdis
p.o xmenu.o window.o    charset.o coding.o category.o ccl.o     cm.o term.o
xfac
es.o xterm.o xfns.o xselect.o xrdb.o fontset.o  emacs.o keyboard.o macros.o
keym
ap.o sysdep.o   buffer.o filelock.o insdel.o marker.o   minibuf.o fileio.o
dired
.o filemode.o   cmds.o casetab.o casefiddle.o indent.o search.o regex.o
undo.o a
lloc.o data.o doc.o editfns.o callint.o         eval.o floatfns.o fns.o
print.o
lread.o         abbrev.o syntax.o unexec.o  mocklisp.o bytecode.o
process.
o callproc.o    region-cache.o sound.o atimer.o         doprnt.o strftime.o
inte
rvals.o textprop.o composite.o md5.o     termcap.o tparam.o lastfile.o
widget.
o mktime.o getloadavg.o          ../lwlib/liblw.a -L/usr/X11R6/lib     -lXmu
-l
Xt -lSM -lICE -lXext -ltiff  -ljpeg  -lpng -lz -lm    -lXpm  -lX11
     -lg   `gcc -print-libgcc-file-name`  -lm  -lc     `gcc
-print-libgcc-file-n
ame`
xterm.o: In function `xt_action_hook':
/d/emacs21/emacs-21.2/src/xterm.c:8335: undefined reference to
`scrollbarWidgetC
lass'
xterm.o: In function `x_create_toolkit_scroll_bar':
/d/emacs21/emacs-21.2/src/xterm.c:8746: undefined reference to
`scrollbarWidgetC
lass'
xterm.o: In function `x_set_toolkit_scroll_bar_thumb':
/d/emacs21/emacs-21.2/src/xterm.c:8869: undefined reference to
`XawScrollbarSetT
humb'
/d/emacs21/emacs-21.2/src/xterm.c:8890: undefined reference to
`XawScrollbarSetT
humb'

(and many more)

If I take -lXt out of the link line, I get complaints that:

make[2]: Leaving directory `/d/emacs21/emacs-21.2-build/lwlib'
gcc    -L/usr/X11R6/lib       -o temacs ecrt0.o  dispnew.o frame.o scroll.o
xdis
p.o xmenu.o window.o    charset.o coding.o category.o ccl.o     cm.o term.o
xfac
es.o xterm.o xfns.o xselect.o xrdb.o fontset.o  emacs.o keyboard.o macros.o
keym
ap.o sysdep.o   buffer.o filelock.o insdel.o marker.o   minibuf.o fileio.o
dired
.o filemode.o   cmds.o casetab.o casefiddle.o indent.o search.o regex.o
undo.o a
lloc.o data.o doc.o editfns.o callint.o         eval.o floatfns.o fns.o
print.o
lread.o         abbrev.o syntax.o unexec.o  mocklisp.o bytecode.o
process.
o callproc.o    region-cache.o sound.o atimer.o         doprnt.o strftime.o
inte
rvals.o textprop.o composite.o md5.o     termcap.o tparam.o lastfile.o
widget.
o mktime.o getloadavg.o          ../lwlib/liblw.a -L/usr/X11R6/lib
-lXaw3d -l
Xmu -lSM -lICE -lXext -ltiff  -ljpeg  -lpng -lz -lm    -lXpm  -lX11
      -lg   `gcc -print-libgcc-file-name`  -lm  -lc     `gcc
-print-libgcc-file-
name`
xmenu.o: In function `update_frame_menubar':
/d/emacs21/emacs-21.2/src/xmenu.c:1593: variable 'XtStrings' can't be
auto-impor
ted. Please read the documentation for ld's --enable-auto-import for
details.
xterm.o: In function `xaw_jump_callback':
/d/emacs21/emacs-21.2/src/xterm.c:8586: variable 'XtStrings' can't be
auto-impor
ted. Please read the documentation for ld's --enable-auto-import for
details.
/d/emacs21/emacs-21.2/src/xterm.c:8586: variable 'XtStrings' can't be
auto-impor
ted. Please read the documentation for ld's --enable-auto-import for
details.
xterm.o: In function `xaw_scroll_callback':

(and many more)

-Richard Campbell.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list