You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to update RJSONIO for a while now but it repeatedly fails to compile.
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating cleanup
** libs
x86_64-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c ConvertUTF.c -o ConvertUTF.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONAllocator.cpp -o JSONAllocator.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONChildren.cpp -o JSONChildren.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONMemory.h:6,
from libjson/Source/JSONChildren.h:6,
from JSONChildren.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONDebug.cpp -o JSONDebug.o
In file included from libjson/Source/JSONDebug.h:4:0,
from JSONDebug.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONIterators.cpp -o JSONIterators.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONNode.h:4,
from JSONIterators.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONMemory.cpp -o JSONMemory.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONMemory.h:6,
from JSONMemory.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONNode.cpp -o JSONNode.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONNode.h:4,
from JSONNode.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONNode_Mutex.cpp -o JSONNode_Mutex.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONNode.h:4,
from JSONNode_Mutex.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONPreparse.cpp -o JSONPreparse.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONPreparse.h:4,
from JSONPreparse.cpp:10:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONStream.cpp -o JSONStream.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONStream.h:4,
from JSONStream.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONValidator.cpp -o JSONValidator.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONValidator.h:4,
from JSONValidator.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_VALIDATE -DJSON_STREAM=1 -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1 -DJSON_ISO_STRICT -DJSON_STREAM -DJSON_DEBUG -fpic -O2 -pipe -c JSONWorker.cpp -o JSONWorker.o
In file included from libjson/Source/JSONDebug.h:4:0,
from libjson/Source/JSONNode.h:4,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
libjson/Source/JSONDefs.h:149:6: warning: #warning , Have JSON_DEBUG on in a release build [-Wcpp]
#warning, Have JSON_DEBUG on in a release build
^
In file included from libjson/Source/JSONDefs.h:12:0,
from libjson/Source/JSONDebug.h:4,
from libjson/Source/JSONNode.h:4,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
JSONWorker.cpp: In static member function 'static unsigned char JSONWorker::UTF8(const char*&, const char*)':
JSONWorker.cpp:297:21: error: 'intptr_t' was not declared in this scope
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
JSONWorker.cpp:297:30: error: expected ')' before 'end'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
In file included from libjson/Source/JSONNode.h:4:0,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected primary-expression before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ';' before '}' token
}
^
JSONWorker.cpp:297:2: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0'););
^
In file included from libjson/Source/JSONDefs.h:12:0,
from libjson/Source/JSONDebug.h:4,
from libjson/Source/JSONNode.h:4,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
JSONWorker.cpp: In function 'char FromOctal(const char*&, const char*)':
JSONWorker.cpp:340:24: error: 'intptr_t' was not declared in this scope
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
JSONWorker.cpp:340:33: error: expected ')' before 'end'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
In file included from libjson/Source/JSONNode.h:4:0,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected primary-expression before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
libjson/Source/JSONDebug.h:15:5: error: expected ';' before '}' token
}
^
JSONWorker.cpp:340:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0'););
^
In file included from libjson/Source/JSONDefs.h:12:0,
from libjson/Source/JSONDebug.h:4,
from libjson/Source/JSONNode.h:4,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
JSONWorker.cpp: In static member function 'static void JSONWorker::SpecialChar(const char*&, const char*, json_string&)':
JSONWorker.cpp:389:24: error: 'intptr_t' was not declared in this scope
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
JSONWorker.cpp:389:33: error: expected ')' before 'end'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDefs/GNU_C.h:38:61: note: in definition of macro 'json_unlikely'
#define json_unlikely(x) __builtin_expect((long)((bool)(x)),0)
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
In file included from libjson/Source/JSONNode.h:4:0,
from libjson/Source/JSONWorker.h:4,
from JSONWorker.cpp:1:
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDebug.h:15:5: error: expected ')' before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDebug.h:15:5: error: expected primary-expression before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
libjson/Source/JSONDebug.h:15:5: error: expected ';' before '}' token
}
^
JSONWorker.cpp:389:5: note: in expansion of macro 'JSON_ASSERT_SAFE'
JSON_ASSERT_SAFE(((intptr_t)end - (intptr_t)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;);
^
/usr/lib64/R/etc/Makeconf:137: recipe for target 'JSONWorker.o' failed
make: *** [JSONWorker.o] Error 1
ERROR: compilation failed for package 'RJSONIO'
* removing '/usr/lib64/R/library/RJSONIO'
ERROR: dependency 'RJSONIO' is not available for package 'shiny'
* removing '/usr/lib64/R/library/shiny'
The downloaded source packages are in
'/tmp/RtmpYuGHL3/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("shiny") :
installation of package 'RJSONIO' had non-zero exit status
2: In install.packages("shiny") :
installation of package 'shiny' had non-zero exit status
I don't have the libjson installed from libjson.sourceforge.net so it was pretty obvious that I'd have to use the libjson that is included in the package. So...
I've been trying to update RJSONIO for a while now but it repeatedly fails to compile.
I don't have the libjson installed from libjson.sourceforge.net so it was pretty obvious that I'd have to use the libjson that is included in the package. So...
...solves evertyhing, but I was curious if there is a way to use the default bundled libjson if none is found natively on the target system?
The text was updated successfully, but these errors were encountered: