Hi,
I'm having some linker errors while compiling Emacs 19.29 on a ELF system.
Here are some information regarding the system:
Kernel: 1.3.56
GCC : gcc 2.7.2
Libs : libtermcap.so.2.0.0
libcurses.so.1.0.0
From what I can see, all the undefined references occured in either the
curses library or the termcap library (I think curse). However, I made
sure that I have the latest versions of both libraries (see above). I've
also tried placing the libraries in different directories (/usr/lib and /lib)
but with no success.
Has anyone seen this before? Do I need different libraries than the ones
mentioned above?
Thanks in advance for any help.
Francis Chang
The following is a log of the errors:
Script started on Thu Jan 18 01:12:09 1996
/emacs-19.29# make
...<snip>...
gcc -nostdlib `./prefix-args -Xlinker ` -o temacs pre-crt0.o
/usr/lib/crt1.o /usr/lib/crti.o dispnew.o frame.o scroll.o xdisp.o window.o
cm.o term.o xterm.o xfns.o xfaces.o xmenu.o xselect.o xrdb.o emacs.o
keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o
intervals.o textprop.o minibuf.o fileio.o dired.o filemode.o cmds.o
casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o
doc.o editfns.o callint.o eval.o floatfns.o fns.o print.o lread.o
abbrev.o syntax.o unexelf.o mocklisp.o bytecode.o process.o callproc.o
region-cache.o doprnt.o strftime.o getloadavg.o tparam.o lastfile.o
gmalloc.o ralloc.o vm-limit.o widget.o ../lwlib/liblw.a
-L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11
-ltermcap -lcurses -lm -lgcc -lc -lgcc /usr/lib/crtn.o
cm.o: In function `cmcostinit':
cm.o(.text+0x1e4): undefined reference to `tputs'
cm.o(.text+0x22b): undefined reference to `tputs'
cm.o(.text+0x26b): undefined reference to `tputs'
cm.o(.text+0x2ab): undefined reference to `tputs'
cm.o(.text+0x2eb): undefined reference to `tputs'
cm.o(.text+0x32b): more undefined references to `tputs' follow
term.o: In function `term_get_fkeys':
term.o(.text+0x1b33): undefined reference to `tgetstr'
term.o(.text+0x1b86): undefined reference to `tgetstr'
term.o(.text+0x1b96): undefined reference to `tgetstr'
term.o(.text+0x1c51): undefined reference to `tgetstr'
term.o(.text+0x1cad): undefined reference to `tgetstr'
term.o(.text+0x1cc2): more undefined references to `tgetstr' follow
term.o: In function `term_init':
term.o(.text+0x2150): undefined reference to `tgetent'
term.o(.text+0x21b7): undefined reference to `tgetstr'
term.o(.text+0x21c7): undefined reference to `tgetstr'
term.o(.text+0x21d7): undefined reference to `tgetstr'
term.o(.text+0x21e7): undefined reference to `tgetstr'
term.o(.text+0x21fa): undefined reference to `tgetstr'
term.o(.text+0x220a): more undefined references to `tgetstr' follow
term.o: In function `term_init':
term.o(.text+0x23c5): undefined reference to `tgetflag'
term.o(.text+0x23e7): undefined reference to `tgetstr'
term.o(.text+0x2403): undefined reference to `tgetstr'
term.o(.text+0x2416): undefined reference to `tgetstr'
term.o(.text+0x2426): undefined reference to `tgetstr'
term.o(.text+0x2436): undefined reference to `tgetstr'
term.o(.text+0x2446): more undefined references to `tgetstr' follow
term.o: In function `term_init':
term.o(.text+0x2541): undefined reference to `tgetflag'
term.o(.text+0x256a): undefined reference to `tgetflag'
term.o(.text+0x258d): undefined reference to `tgetflag'
term.o(.text+0x259c): undefined reference to `tgetflag'
term.o(.text+0x25ab): undefined reference to `tgetflag'
term.o(.text+0x25bc): more undefined references to `tgetflag' follow
term.o: In function `term_init':
term.o(.text+0x265f): undefined reference to `tgetnum'
term.o(.text+0x2681): undefined reference to `tgetnum'
term.o(.text+0x26c4): undefined reference to `tgetnum'
term.o(.text+0x26d3): undefined reference to `tgetnum'
term.o(.text+0x26e2): undefined reference to `tgetnum'
term.o(.text+0x2734): undefined reference to `PC'
term.o(.text+0x275a): undefined reference to `tgetnum'
term.o(.text+0x276a): undefined reference to `tgetstr'
term.o(.text+0x277a): undefined reference to `tgetstr'
term.o(.text+0x2796): undefined reference to `tgetstr'
sysdep.o: In function `init_baud_rate':
sysdep.o(.text+0x93): undefined reference to `ospeed'
sysdep.o(.text+0xbe): undefined reference to `ospeed'
sysdep.o(.text+0xc5): undefined reference to `ospeed'
sysdep.o(.text+0xcf): undefined reference to `ospeed'
make[1]: *** [temacs] Error 1
Script done on Thu Jan 18 01:12:41 1996