Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 13:10:55 -0700 (PDT)
From:      Danny Pansters <dannypansters@yahoo.com>
To:        freebsd-stable@freebsd.org
Subject:   Termcap weirdness when building world 4.6 (Jul 7) -> 4.7 (Oct 1)
Message-ID:  <20021002201055.29646.qmail@web40501.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hey guys (gals). Here's something weird. I can solve
it probably, but not really explain it fully:

I wanted to buildworld on my gateway box, but got
stuck at this (typed over from console, formatting may
differ a bit):

===> share/termcap
gzip -cn /usr/src/share/termcap/termcap.5 >
termcap5.gz
TERM=dumb TERMCAP=dumb: ex -
/usr/src/share/termcap/termcap.src <
/usr/src/share/termcap/reorder
cap_mkdb termcap
cap_mkdb: No such file or directory
*** Error code 1

First I just cvsup'ed again and retried. Same thing. I
always remove /usr/obj/* before building world. I
tried one more time, this time also doing make clean
in /usr/src (shouldn't matter but well). Same result.

Compared with my desktop which has a Aug 30 world, the
only difference is termcap.src. This doesn't seem
crucial in any way to me. However I tried some stuff
(first line just FYI):

root@gateway.home.ricin.net [/usr/src/share/termcap] #
uname -a
FreeBSD gateway.home.ricin.net 4.6-STABLE FreeBSD
4.6-STABLE #0: Sat Jul  6 23:01:58 CEST 2002    
root@gateway.home.ricin.net:/usr/obj/usr/src/sys/GATEWAY
 i386
root@gateway.home.ricin.net [/usr/src/share/termcap] #
cap_mkdb foo
/usr/bin/cap_mkdb: File name too long.
root@gateway.home.ricin.net [/usr/src/share/termcap] #
ls -lai /usr/bin/cap_mkdb
24128 l-wSr-x-wT  1 root  wheel  5392 Jul  7 00:33
/usr/bin/cap_mkdb -> ?ELF????
root@gateway.home.ricin.net [/usr/src/share/termcap] #
strings /usr/bin/cap_mkdb
/usr/libexec/elf/strings: /usr/bin/cap_mkdb: File name
too long
root@gateway.home.ricin.net [/usr/src/share/termcap] #
cat /usr/bin/cap_mkdb
cat: /usr/bin/cap_mkdb: File name too long

Seems to me that something went wrong upon installing
world on July 7. Note the weird attributes on the
weird symlink. Looks as if the file contents have been
accidentally been set as the name of a symlink to
instead of the contents of cap_mkdb. The size equates
to the size of the (proper) cap_mkdb binary on my
desktop. Sure I can copy this one over and I will do
that later and try to buildworld again. 

Would you agree that this is probably just some quirk,
perhaps from cvsup'ing inbetween commits at July 7? 

FYI, I have no reason to assume that the box has been
compromised.


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021002201055.29646.qmail>