Click to See Complete Forum and Search --> : /var/lib/init.d/depcache: line 13: ---: command not found


hammer123
02-18-2004, 05:54 AM
I absolutely hate this.
After updating to portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5) and the rest of the world
I had to run ldconfig because stdlibc++ was not found (or something like that).
Now when I run emerge I still get my files but the output is riddled with strings like this
/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found
/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found
/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found
/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found
/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found
/var/lib/init.d/depcache: line 13: ---: command not found

I have also rebooted and the output there is similar
/sbin/rc: ---: command not found
/sbin/rc: +++: command not found
/sbin/rc: ---: command not found
/sbin/rc: +++: command not found
/sbin/rc: ---: command not found
/sbin/rc: +++: command not found
/sbin/rc: ---: command not found
/sbin/rc: +++: command not found

It happens on other activities I can't remember right now but safe to say I have looked at these two files and there is nothing significant at these two lines for either.

I also ran etc-update when I did the portage change, maybe I altered a file I shouldn't have. Unfortunately I don't know how to find this out since I don't know what files I edited

my dmesg has things like this right where the error pops up at boot

Mounted devfs on /dev
Freeing unused kernel memory: 172k freed
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device dm-1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (dm-1) for (dm-1)
Using r5 hash to sort names
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device dm-2, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (dm-2) for (dm-2)
Using r5 hash to sort name
...

I have /dev/hdb2 as / and it is ext2
LVM with reiserfs for /var /tmp /usr /opt and /etc

could it be i need to fsck or what?

mdwatts
02-18-2004, 12:42 PM
Originally posted by hammer123

my dmesg has things like this right where the error pops up at boot

Mounted devfs on /dev
Freeing unused kernel memory: 172k freed
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device dm-1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (dm-1) for (dm-1)
Using r5 hash to sort names
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device dm-2, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (dm-2) for (dm-2)
Using r5 hash to sort name
...

I have /dev/hdb2 as / and it is ext2
LVM with reiserfs for /var /tmp /usr /opt and /etc

could it be i need to fsck or what?

I don't believe those are error messages, so I wouldn't worry about it.

Unless another Gentoo user (I'm not) can offer assistance, I would really suggest you try searching the Gentoo forums for some of those error messages to see if others have reported the same problem.

Hayl
02-18-2004, 12:48 PM
did you run the update app for python (it said to at the end of the build) after the version of python got upgraded?

/usr/sbin/python-updater

if not then run that.

if portage is still broken after that, see if you can re-emerge portage.

hammer123
02-18-2004, 02:27 PM
I know it can be annoying to get posts like this here but no one answered at the gentoo forums after 3 days. I had run the python updater before but I ran it again just in case. Things still seem to be the same.

mdwatts
02-18-2004, 02:34 PM
Originally posted by hammer123

/var/lib/init.d/depcache: line 13: ---: command not found
/var/lib/init.d/depcache: line 15: +++: command not found

/sbin/rc: ---: command not found
/sbin/rc: +++: command not found


Have you had a look in /var/lib/init.d/depcache on lines 13 & 15 to see what command it is calling?

Does /sbin/rc exist?

hammer123
02-18-2004, 02:46 PM
They do exist, I have looked throught them, my bash knowledge does not tell me why the commands they have at that point fail. Here they are though:

/var/lib/init.d/depcache starting at line 10:

before() {
echo "BEFORE $*"; return 0
}

after() {
echo "AFTER $*"; return 0
}

------------------------------------------------------------------------
/sbin/rc starting at line 10

[ -f /sbin/livecd-functions.sh ] && source /sbin/livecd-functions.sh
umask 022

try() {
local errstr=
local retval=0
# This works fine in test, but real life booting, fails for mounting /proc
# if we only check $? for instance ... We thus need to [ -n "${errstr}" ]
# as well.
------------------------------------------------------------------------
I will attach the entire files if you like too

hammer123
02-23-2004, 02:18 AM
this one took months to track down (I tried a long time before posting)
finally je_fro and some other people told me that +++ and --- looked like I ran diff on a file and left in the symbols.

Yeah this started after an etc-update and I did not want to mess something up so one time I merged both of the things together with decorative headers.

$grep +++ /etc/*
$grep ---- /etc/*
showed me that /etc/rc.conf had +++ in it on line 15 and --- on line 13, I commented them out. Now the commands +++ and --- are no longer worries to me