SLAX, Deep Style, ZenWalk
Модератор: Модераторы разделов
fixx
Сообщения: 430
Статус: индивид
ОС: fedora
Сообщение
fixx » 22.12.2006 18:51
не получается собрать mc-MP (http://mc.linuxinside.com)
Код: Выделить всё
cons.handler.c: In function `handle_console_linux':
cons.handler.c:208: error: label at end of compound statement
make[1]: *** [cons.handler.o] Ошибка 1
make[1]: Leaving directory `/home/fixx/documents/11/mc-4.1.40-pre9/src'
make: *** [all] Ошибка 1
и он вообще, как, с utf дружит?
_Storm
Сообщения: 135
ОС: MOPS Linux 5.0
Сообщение
_Storm » 26.12.2006 20:47
fixx писал(а): ↑ 22.12.2006 18:51
не получается собрать mc-MP (http://mc.linuxinside.com)
Код: Выделить всё
cons.handler.c: In function `handle_console_linux':
cons.handler.c:208: error: label at end of compound statement
make[1]: *** [cons.handler.o] Ошибка 1
make[1]: Leaving directory `/home/fixx/documents/11/mc-4.1.40-pre9/src'
make: *** [all] Ошибка 1
и он вообще, как, с utf дружит?
поставь после метки ;
fixx
Сообщения: 430
Статус: индивид
ОС: fedora
Сообщение
fixx » 27.12.2006 08:21
_Storm
после какой метки?
Лис
Сообщения: 1639
ОС: Zenwalk
Сообщение
Лис » 27.12.2006 11:40
и он вообще, как, с utf дружит?
Непатченный нет. Чтобы дружил - нужны патчи.
_Storm
Сообщения: 135
ОС: MOPS Linux 5.0
Сообщение
_Storm » 27.12.2006 21:04
cons.handler.c:208: error: label at end of compound statement
Открой файл cons.handler.c и перейди на строку 208. Сразу все поймешь.
Otto
Сообщения: 10
ОС: Linux SuSe 10.2 x86_64
Сообщение
Otto » 06.05.2007 09:51
Аналогичная проблема, не собирается. Та же ошибка:
Код:
cons.handler.c:209: error: label at end of compound statement
make[1]: *** [cons.handler.o] Error 1
make[1]: Leaving directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/src'
make: *** [all] Error 1
Вот из файлика cons.handler.c :
Код:
if (action == CONSOLE_DONE || !console_flag) {
/* We are done -> Let's clean up */
close (pipefd1 [1]);
close (pipefd2 [0]);
waitpid (cons_saver_pid, &status, 0);
console_flag = 0;
}
break;
default:
/* Nothing */
}
}
/* Nothing */ - это 208 строчка. Подскажите, куда вписывать ";" и надо ли вообще это делать?
eduard_pustobaev
Сообщения: 2629
Статус: Ленивец
ОС: Arch/Debian.
Сообщение
eduard_pustobaev » 06.05.2007 11:14
Otto писал(а): ↑ 06.05.2007 09:51
Код:
if (action == CONSOLE_DONE || !console_flag) {
/* We are done -> Let's clean up */
close (pipefd1 [1]);
close (pipefd2 [0]);
waitpid (cons_saver_pid, &status, 0);
console_flag = 0;
}
break;
default:
/* Nothing */
}
}
/* Nothing */ - это 208 строчка. Подскажите, куда вписывать ";" и надо ли вообще это делать?
default попробуй закомментировать //default
В дисгармонии со вселенной.
Otto
Сообщения: 10
ОС: Linux SuSe 10.2 x86_64
Сообщение
Otto » 06.05.2007 14:54
Закомментировал:
Код:
waitpid (cons_saver_pid, &status, 0);
console_flag = 0;
}
break;
/* default:*/
/* Nothing */
}
}
Сделал make и получил ошибку:
Код:
make[1]: Entering directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
file=./`echo ru | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ru.po
ru.po:878: context separator <EOT> within string
ru.po:2407: context separator <EOT> within string
ru.po:2410: context separator <EOT> within string
/usr/bin/msgfmt: found 3 fatal errors
make[1]: *** [ru.gmo] Error 1
make[1]: Leaving directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
make: *** [all] Error 1
KDA
Сообщения: 95
ОС: MOPSLinux
Сообщение
KDA » 06.05.2007 22:21
Otto, попробуй так:
насколько помню, это называется "пустой оператор".
Не кидайте камни в чужой огород - могут прилететь обратно! ©
Liksys
Сообщения: 2910
Сообщение
Liksys » 06.05.2007 22:26
напиши:
Otto
Сообщения: 10
ОС: Linux SuSe 10.2 x86_64
Сообщение
Otto » 07.05.2007 12:20
Liksys
Исправил, как ты сказал (шутку оценил
), но все равно:
Код:
make[1]: Entering directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
file=./`echo ru | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ru.po
ru.po:878: context separator <EOT> within string
ru.po:2407: context separator <EOT> within string
ru.po:2410: context separator <EOT> within string
/usr/bin/msgfmt: found 3 fatal errors
make[1]: *** [ru.gmo] Error 1
make[1]: Leaving directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
make: *** [all] Error 1
KDA
А с твоим кодом такая ошибка:
Код:
make[1]: Leaving directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/src'
make[1]: Entering directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
file=./`echo ru | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ru.po
ru.po:878: context separator <EOT> within string
ru.po:2407: context separator <EOT> within string
ru.po:2410: context separator <EOT> within string
/usr/bin/msgfmt: found 3 fatal errors
make[1]: *** [ru.gmo] Error 1
make[1]: Leaving directory `/home/otto/Distrib/Shell/mc-4.1.40-pre9/po'
make: *** [all] Error 1
Наверно мне не суждено собрать сию прогу
Black
Сообщения: 1104
ОС: ArchLinux
Сообщение
Black » 08.05.2007 07:48
А вы, извиняюсь за глупый вопрос, не ./configure случайно запускали? А то я сначала по привычке запустил ./configure, мне выдало ошибку (не помню какую). Почитал README, запустил ./mc.configure - всё собралось.
cat README.40
Quick installation: (keep this order!)
~~~~~~~~~~~~~~~~~~~
1. Check/edit mc.configure, and execute it:
./mc.configure
(remove --without-gpm-mouse for console mouse support)
You can also use ./configure, specifying options manually.
NOTE:
You can use "mc-[SYSTEM_CLASS_NAME].configure" scripts for
different systems, if you can't or wan't read simple "./configure
--help", and/or can't combine some necessary commandline keys
of "configure" in conclusion.
2. Compile it:
make
3. If compilation successful, remove your old mc version, because it
DOES CONFLICT with this. At least delete everything from /usr/lib/mc:
rm -rf /usr/lib/mc ~/.mc
4. Install the new mc:
make install
Компьютер служит для решения тех проблем, которых до изобретения компьютера не существовало