Skip to content

Instantly share code, notes, and snippets.

@aammd
Created January 31, 2015 00:26
Show Gist options
  • Save aammd/c28c9a4c8a7dd82c24e0 to your computer and use it in GitHub Desktop.
Save aammd/c28c9a4c8a7dd82c24e0 to your computer and use it in GitHub Desktop.
my sad sad adventures trying to install RTidyHTML
Installing package into ‘/home/andrew/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package ‘RTidyHTML’ ...
cc -Iinclude -fPIC -c -o access.o access.c
cc -Iinclude -fPIC -c -o alloc.o alloc.c
cc -Iinclude -fPIC -c -o attrask.o attrask.c
cc -Iinclude -fPIC -c -o attrdict.o attrdict.c
cc -Iinclude -fPIC -c -o attrget.o attrget.c
cc -Iinclude -fPIC -c -o attrs.o attrs.c
cc -Iinclude -fPIC -c -o buffio.o buffio.c
cc -Iinclude -fPIC -c -o charsets.o charsets.c
cc -Iinclude -fPIC -c -o clean.o clean.c
cc -Iinclude -fPIC -c -o config.o config.c
cc -Iinclude -fPIC -c -o entities.o entities.c
cc -Iinclude -fPIC -c -o fileio.o fileio.c
cc -Iinclude -fPIC -c -o iconvtc.o iconvtc.c
cc -Iinclude -fPIC -c -o istack.o istack.c
cc -Iinclude -fPIC -c -o lexer.o lexer.c
cc -Iinclude -fPIC -c -o localize.o localize.c
localize.c: In function ‘prvTidyReportAccessWarning’:
localize.c:1376:5: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode( doc, TidyAccess, node, fmt );
^
localize.c: In function ‘prvTidyReportAccessError’:
localize.c:1383:5: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode( doc, TidyAccess, node, fmt );
^
localize.c: In function ‘prvTidyReportWarning’:
localize.c:1402:9: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode(doc, TidyWarning, rpt, fmt);
^
localize.c: In function ‘prvTidyReportError’:
localize.c:1483:9: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode(doc, TidyWarning, rpt, fmt);
^
localize.c:1502:9: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode(doc, TidyWarning, node, fmt);
^
localize.c: In function ‘prvTidyReportFatal’:
localize.c:1551:9: warning: format not a string literal and no format arguments [-Wformat-security]
messageNode(doc, TidyError, rpt, fmt);
^
cc -Iinclude -fPIC -c -o mappedio.o mappedio.c
cc -Iinclude -fPIC -c -o parser.o parser.c
cc -Iinclude -fPIC -c -o pprint.o pprint.c
cc -Iinclude -fPIC -c -o streamio.o streamio.c
cc -Iinclude -fPIC -c -o tagask.o tagask.c
cc -Iinclude -fPIC -c -o tags.o tags.c
cc -Iinclude -fPIC -c -o tidylib.o tidylib.c
cc -Iinclude -fPIC -c -o tmbstr.o tmbstr.c
cc -Iinclude -fPIC -c -o utf8.o utf8.c
cc -Iinclude -fPIC -c -o win32tc.o win32tc.c
ar -r libtidy.a access.o alloc.o attrask.o attrdict.o attrget.o attrs.o buffio.o charsets.o clean.o config.o entities.o fileio.o iconvtc.o istack.o lexer.o localize.o mappedio.o parser.o pprint.o streamio.o tagask.o tags.o tidylib.o tmbstr.o utf8.o win32tc.o
ar: creating libtidy.a
if test -n "ranlib" ; then ranlib libtidy.a ; fi
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -Ilibtidy/include -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Rtidy.c -o Rtidy.o
Rtidy.c: In function ‘RTI_panic’:
Rtidy.c:34:5: error: format not a string literal and no format arguments [-Werror=format-security]
ERROR;
^
cc1: some warnings being treated as errors
make: *** [Rtidy.o] Error 1
ERROR: compilation failed for package ‘RTidyHTML’
* removing ‘/home/andrew/R/x86_64-pc-linux-gnu-library/3.1/RTidyHTML’
Warning in install.packages :
installation of package ‘/home/andrew/Desktop/RTidyHTML_0.2-1.tar.gz’ had non-zero exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment