четверг, 30 мая 2013 г.

YAPH make error. Решение


При компиляции YAPH получаем ошибку: init.c:203: error: label at end of compound statement
make  all-recursive
make[1]: Entering directory `/home/brrrrain/soft/yaph-0.91'
Making all in yaph
make[2]: Entering directory `/home/
brrrrain/soft/yaph-0.91/yaph'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2   -c init.c
init.c: In function ‘init_options’:
init.c:203: error: label at end of compound statement
make[2]: *** [init.o] Ошибка 1
make[2]: Leaving directory `/home/
brrrrain/soft/yaph-0.91/yaph'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/
brrrrain/soft/yaph-0.91'
make: *** [all-recursive-am] Ошибка 2
На 203 строке в файле yaph/init.c видим:

    no_file:
}
После no_file: добавляем точку с запятой. Получаем:
    no_file:
    ;
}

Причина:
The reason is that the C stanadard requires - and thus gcc since 3.4 (?) -
a label to be followed by a statement and a semicolon alone is already
an statement.


Источник: http://www.linux-mips.org/archives/linux-mips/2006-03/msg00236.html

Комментариев нет:

Отправить комментарий