Subject: Re: Strange console output
To: None <current-users@netbsd.org>
From: Hernani Marques Madeira <hernani@tuners.ch>
List: current-users
Date: 01/29/2004 18:43:15
In spite of the problem being solved now, I'll try to answer the
following questions -- it might be useful.

> >  24506 sh       NAMI  "/usr/pkg/lib/libedit.so.2"
> >  24506 sh       RET   open -1 errno 2 No such file or directory
> >  24506 sh       CALL  open(1208422592,0,0)
> >  24506 sh       NAMI  "/lib/libedit.so.2"
> >  24506 sh       RET   open 3
> 
> Do you have something like "LD_LIBRARY_PATH=/usr/pkg/lib" in your
> shell startup file (e.g., ~/.profile)? That's a bad idea in general. I
> doubt it's the source of this problem but I'd advise against it.

No, only in the PATH variable (on its end).

> > 	exec tput clear
> Oh my, munching the whole BSD license for a trivial one-liner. I think
> I'll make it an alias here.

Okay :-).

> >        "tput: "
> >  24506 tput     RET   write 6
> >  24506 tput     CALL  write(0x2,0xbfbfe9b0,15)
> >  24506 tput     GIO   fd 2 wrote 15 bytes
> >        "tgetent failure"
> 
> Alright. It doesn't look like there's really a file missing. I guess, either
> guess your termcap database is damaged or TERM is set to a terminal type
> you don't have a entry for at all. What's the output of the following?
> 
> $ env|grep TERM

Should I recompile the kernel with ``options WSEMUL_VT220'' (*argh*) to give
you the output? Because the system is running well now with the standard
of *_VT100.

> Do you have ncurses installed? If yes what's the output of this:
> 
> $ TERMCAP=/usr/share/misc/termcap captoinfo

<snip>

# This is our standard xterm entry.  It is based on the xterm-xf86-v33 entry
# with some changes in order to try to be compatible with as many xterm
# implementations as possible.
#xterm|vs100|xterm terminal emulator (X Window System):\
#	:ut:Co#8:pa#64:AB=\E[4%dm:AF=\E[3%dm:op=\E[m:\
#	:@1=\EOE:@7=\EOF:@8=\EOM:k;=\E[21~:\
#	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
#	:ic@:kD=\E[3~:me=\E[m:se=\E[m:ue=\E[m:vb@:\
#	:tc=xterm-xf86-v33:
xterm|vs100|xterm terminal emulator (X Window System), 
	am, bce, km, mir, msgr, xenl, 
	colors#8, cols#80, it#8, lines#24, pairs#64, 
	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
	bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, 
	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq, 
	kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
	kdch1=\E[3~, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~, 
	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~, 
	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\EOH, 
	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, nel=^M^J, op=\E[m, rc=\E8, 
	rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8, 
	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, sc=\E7, 
	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m, smacs=^N, 
	smcup=\E7\E[?47h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, 
	smul=\E[4m, tbc=\E[3g, 

</snip>

> -- 
> Christian

Hernani