>>> Completed installing into /var/tmp/portage/gcc-2.95.3-r5/image/ >>> Updating mtimes... >>> Merging sys-devel/gcc-2.95.3-r5 to / bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' --- /usr/ --- /usr/lib/ --- /usr/lib/gcc-lib/ <snip> >>> Safely unmerging already-installed instance... bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' --- !empty dir /usr/share --- !mtime obj /usr/lib/libiberty.a --- !mtime obj /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs --- !mtime obj /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a <snip> --- !mtime sym /lib/cpp --- !empty dir /lib --- !mtime obj /etc/env.d/05gcc --- !empty dir /etc/env.d --- !empty dir /etc bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' >>> original instance of package unmerged safely. bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' >>> Regenerating /etc/ld.so.cache... >>> sys-devel/gcc-2.95.3-r5 merged. bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' * Regenerating GNU info directory index... * Processed 16 info files. portage #
The only thing I can think of that would be doing this is a bad /etc/profile or bad /root/.bashrc. Try just typing "bash" at the prompt and see if you get these errors. Do you get these errors when you log in?
No errors typing bash. No errors logging in, or chroot'n as the case is here...I'm following the instructions for installing, so I haven't gotten to booting, yet.
The mc error seems to be more cosmetic than anything as I have so far been able to go through the bootstrap process and building the kernel. However, I'm seeing the error in every single package I build...for example fluxbox: buzz linux # emerge fluxbox Calculating dependencies.. done! >>> emerge x11-base/xfree-4.2.0-r8 to / bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' bash: mc: line 2: unexpected EOF while looking for matching ``' bash: mc: line 4: syntax error: unexpected end of file bash: error importing function definition for `mc' >>> Fetching X420src-1.tgz...
Forwarding to Azarah. Azarah, do you have any idea on this one?
I know that mandrake, etc define a mc() in thier profile's. Maybe you used your old /root ?
I doubt it...I'm doing the following to set up the env: mkdir /mnt/gentoo mount /dev/hdb6 /mnt/gentoo tar -xvjpf /home/mwlang/files/gentoo/build-*.tbz2 mount -o bind /proc /mnt/gentoo chroot /mnt/gentoo /bin/bash env-update source /etc/profile
Ok, let me put it this way, the only time I had that, was when I did a Gentoo build chrooted from Mandrake. The resulution was, to do before chroot: # unset mc
Marking as WORKSFORME, until it occurs again, or the original reporter give more details.