История изменений
Исправление ZenitharChampion, (текущая версия) :
Патч пока такой. http://paste.org.ru/?j7hbz4 Я застопорился на нешаблонном моменте.
cd crlutil; make libs
make[2]: Entering directory `/usr/src/packages/BUILD/nss-3.33/nss/cmd/crlutil'
cc -o Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/crlgen_lex.o -c -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing -fPIC -m64 -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -Wall -Werror -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/include/nspr4 -I../../../dist/Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/seccmd -I../../../dist/public/dbm crlgen_lex.c
crlgen_lex_orig.l: In function 'yylex':
crlgen_lex_orig.l:96:14: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
return parserStatus;
^
crlgen_lex_orig.l:144:17: note: in expansion of macro 'ECHO'
parserData->parsedLineNum, yytext);
^
cc1: all warnings being treated as errors
make[2]: *** [Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/crlgen_lex.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/nss-3.33/nss/cmd/crlutil'
В файле «crlgen_lex_orig.l» слова fwrite нет. Есть в «crlgen_lex.с»
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void)fwrite(yytext, yyleng, 1, yyout)
#endif
Исходная версия ZenitharChampion, :
Патч пока такой. http://paste.org.ru/?j7hbz4 Я застопорился на нешаблонном моменте.
[ 132s] cd crlutil; make libs
[ 132s] make[2]: Entering directory `/usr/src/packages/BUILD/nss-3.33/nss/cmd/crlutil'
[ 132s] cc -o Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/crlgen_lex.o -c -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing -fPIC -m64 -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -Wall -Werror -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/include/nspr4 -I../../../dist/Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/seccmd -I../../../dist/public/dbm crlgen_lex.c
[ 132s] crlgen_lex_orig.l: In function 'yylex':
[ 132s] crlgen_lex_orig.l:96:14: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
[ 132s] return parserStatus;
[ 132s] ^
[ 132s] crlgen_lex_orig.l:144:17: note: in expansion of macro 'ECHO'
[ 132s] parserData->parsedLineNum, yytext);
[ 132s] ^
[ 132s] cc1: all warnings being treated as errors
[ 132s] make[2]: *** [Linux4.4_x86_64_cc_glibc_PTH_64_OPT.OBJ/crlgen_lex.o] Error 1
[ 132s] make[2]: Leaving directory `/usr/src/packages/BUILD/nss-3.33/nss/cmd/crlutil'
В файле «crlgen_lex_orig.l» слова fwrite нет. Есть в «crlgen_lex.с»
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void)fwrite(yytext, yyleng, 1, yyout)
#endif