Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!news.uoregon.edu!serv.hinet.net!nctuccca.edu.tw!news.cc.nctu.edu.tw!news.sinica!taob From: taob@gate.sinica.edu.tw (Brian Tao) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: lynx 2-4 Date: 23 Jun 1995 07:50:32 GMT Organization: Institute of Biomedical Sciences, Academia Sinica Lines: 34 Message-ID: <3sdro8$6ou@gate.sinica.edu.tw> References: <3sbk92$10d@titan.np.ac.sg> NNTP-Posting-Host: @140.109.40.248 In article <3sbk92$10d@titan.np.ac.sg>, Leong Tiang Wah <ltw1@titan.np.ac.sg> wrote: > >Linking and creating Lynx executable >cc -O -DFANCY_CURSES -DNCURSES -DUNIX -DNO_KEYPAD -DNO_CUSERID -I../WWW/Library >LYCurses.o: Undefined symbol `_ttytype' referenced from text segment >LYCurses.o: Undefined symbol `_ttytype' referenced from text segment >LYCurses.o: Undefined symbol `_setupterm' referenced (use -lmytinfo ?) >ld: Spurious undefined symbols: # undefined symbols 2, reported 1 >*** Error code 1 Hmmmm... weird. I thought I was only getting that error on my system because of inconsistencies between my static and shared ncurses libraries (I built ncurses 1.9.1 for my FreeBSD 2.05 machines). This is my Makefile entry: # FreeBSD doesn't have or need ranlib. (ignore the error message about that :) freebsd-ncurses: cd WWW/Library/freebsd; make LYFLAGS="$(SITE_LYDEFS)" cd src; make all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DNCURSES -DUNIX \ -DNO_KEYPAD -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \ -I/usr/include/ncurses" LIBS="/usr/lib/libncurses.a -lcompat \ -ltermcap $(WAISLIB) $(SOCKSLIB)" \ WWWLIB="../WWW/Library/freebsd/libwww.a" Note that I've added in /usr/lib/libncurses.a to the LIBS variable to link that in statically (it contains the symbols listed in your error message). There is still a problem with Lynx 2.4.1 segfaulting using the vt100 or vt102 termcap (but not with vt220 or xterm), which I haven't tracked down yet. That might be specific to just my setup though. -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org