Linker Erros Compiling Emacs 19.29 on ELF System

Linker Erros Compiling Emacs 19.29 on ELF System

Post by Francis Cha » Fri, 19 Jan 1996 04:00:00



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

 
 
 

1. errors with xterm.c when compile emacs 19.29 under Linux 1.2.11

-----BEGIN PGP SIGNED MESSAGE-----

hi folks,

thanks go to Patrick Volkerding for pointing me in the right direction
regarding the missing header file i posted about yesterday.
although that got me closer to a shiny new ELF emacs 19.29, i'm having
new and apparently more serious problems.

my setup:
486 DX4-100, 16MB
Slackware 2.2 distribution
Linux kernel 1.2.11
moved to ELF recently

here are  the errors i get with xterm.c, until this point in the
compilation there are no warnings or errors.  as usual, any info/help
is greatly appreciated.

thanks,

- -pjf

gcc -c  -Demacs -DHAVE_CONFIG_H   -I. -I/nickel/emacs-19.29/src   -D_BSD_SOURCE    -I/usr/X11R6/include      -g -O xterm.c
xterm.c: In function `x_term_init':
xterm.c:5812: dereferencing pointer to incomplete type
make[1]: *** [xterm.o] Error 1
make[1]: Leaving directory `/nickel/emacs-19.29/src'
make: *** [src] Error 2

- --

U of Utah biochem grad student in the Bass lab - zinc fingers + dsRNA!
** FINGER ME for my pgp public key ** crypto for the masses!
zifi runs LINUX 1.2.11 -=-=-=WEB=-=-=->  http://zifi.genetics.utah.edu

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMBkIRU3Qo/lG0AH5AQH5JQP/Sa8YOw/9F3siJbXbvSg4DHfp8GviAR7Y
BNb8CcKLV3S5KywrC5ZCfZRim5lo5jE9ufk2JR67z7bTv4oy/Ql6yVJXQ+ziD+rp
WqcpGwIWKqxgADBedz7tRQLapwZSCBp8KfZj+upXgKTbmeiycpllEG7tEE7EaSV1
82SyEM0vBXg=
=xT2A
-----END PGP SIGNATURE-----

2. Differences between Solaris 10 and OpenSolaris

3. Emacs 19.29 build troubles on linux.

4. printf in -fPIC lib dumps core

5. How to get BACKSPACE & DELETE working with Emacs 19.29 under X?

6. Help! want to get free ftpd source code for Solaris/AIX/HP-UX

7. emacs 19.29 problems with ispell dialog

8. Shared Libraries

9. Emacs 19.29 and ncurses 1.9.4 -- conflict?

10. Emacs 19.29 with Athena toolkit?

11. building emacs 19.29 on linux

12. emacs 19.29 error -- esc [ 1 9 ~

13. emacs 19.29