[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems compiling xfree 3.3.5 under slink...



On Mon, Sep 27, 1999 at 10:41:13 +0300, Martin Fluch wrote:
> I'm currently trying to compile xfree 3.3.5 under slink.

Branden has made package of at least 3.3.4 for slink; see
http://samosa.debian.org/~branden/ (I haven't checked if the 3.3.5 tree is
for slink as well).

> gcc -o xterm -O2 -g -ansi -pedantic     -L../../exports/lib button.o charproc.o 
> charsets.o cursor.o               data.o doublechr.o fontutils.o input.o        
>  menu.o misc.o print.o ptydata.o                  screen.o scrollbar.o tabs.o ut
> il.o              TekPrsTbl.o Tekproc.o VTPrsTbl.o                main.o  keysym
> 2ucs.o  -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11     -lncurses  -Wl,-rpath-link,
> ../../exports/lib
> main.o: In function `get_pty':
> /home/mfluch/xfree/xfree86-1-3.3.5/build-tree/xc/programs/xterm/main.c:1960: und
> efined reference to `openpty'

nm --defined-only --dynamic --print-file-name /usr/lib/lib*.so* \
	/usr/X11R6/lib/lib*.so* | grep 'openpty'
will show you that you need to add '-lutil' to the link line. It's quite
tricky to tell xterm what type of PTY functions to use and where to find
them.

HTH,
Ray
-- 
ART  A friend of mine in Tulsa, Okla., when I was about eleven years old. 
I'd be interested to hear from him. There are so many pseudos around taking 
his name in vain. 
- The Hipcrime Vocab by Chad C. Mulligan 


Reply to: