Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing from source under GNU/Linux #17

Open
slackline opened this issue Oct 10, 2014 · 0 comments
Open

Error installing from source under GNU/Linux #17

slackline opened this issue Oct 10, 2014 · 0 comments

Comments

@slackline
Copy link

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...

# wget http://cran.r-project.org/src/contrib/RJSONIO_1.3-0.tar.gz
--2014-10-10 12:43:03--  http://cran.r-project.org/src/contrib/RJSONIO_1.3-0.tar.gz
Resolving cran.r-project.org... 137.208.57.37
Connecting to cran.r-project.org|137.208.57.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1148375 (1.1M) [application/x-gzip]
Saving to: 'RJSONIO_1.3-0.tar.gz'

100%[==================================================================================================================================================================================================>] 1,148,375   2.53MB/s   in 0.4s   

2014-10-10 12:43:04 (2.53 MB/s) - 'RJSONIO_1.3-0.tar.gz' saved [1148375/1148375]

kimura downloaded_packages # R CMD INSTALL --configure-args="--with-local-libjson=yes" RJSONIO_1.3-0.tar.gz 
* installing to library '/usr/lib64/R/library'
* installing *source* package 'RJSONIO' ...
** package 'RJSONIO' successfully unpacked and MD5 sums checked
USE_LOCAL = "yes"
Minor Version: 6
Using local libjson code. Copying files from src/libjson/Source
/tmp/RtmpPIaS0D/R.INSTALL1a4b4a0a1c84/RJSONIO
JSONAllocator.cpp
JSONChildren.cpp
JSONDebug.cpp
JSONIterators.cpp
JSONMemory.cpp
JSONNode.cpp
JSONNode_Mutex.cpp
JSONPreparse.cpp
JSONStream.cpp
JSONValidator.cpp
JSONWorker.cpp
JSONWriter.cpp
internalJSONNode.cpp
libjson.cpp
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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONChildren.cpp -o JSONChildren.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONDebug.cpp -o JSONDebug.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONIterators.cpp -o JSONIterators.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONMemory.cpp -o JSONMemory.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONNode.cpp -o JSONNode.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONNode_Mutex.cpp -o JSONNode_Mutex.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONPreparse.cpp -o JSONPreparse.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONStream.cpp -o JSONStream.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONValidator.cpp -o JSONValidator.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONWorker.cpp -o JSONWorker.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSONWriter.cpp -o JSONWriter.o
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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c JSON_parser.c -o JSON_parser.o
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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c RJSON.c -o RJSON.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c internalJSONNode.cpp -o internalJSONNode.o
x86_64-pc-linux-gnu-g++ -I/usr/lib64/R/include -DNDEBUG -I. -Ilibjson -Ilibjson/Source -DNEW_JSON_NEW_STREAM -DNDEBUG=1 -DJSON_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c libjson.cpp -o libjson.o
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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c rlibjson.c -o rlibjson.o
rlibjson.c: In function 'R_fromJSON':
rlibjson.c:49:9: note: #pragma message: activate the debug_callback
 #pragma message("activate the debug_callback")
         ^
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_STREAM=1 -DJSON_VALIDATE -DJSON_READ_PRIORITY=1 -DJSON_LIBRARY=1  -DJSON_ISO_STRICT     -fpic  -O2 -pipe  -c rparser.c -o rparser.o
x86_64-pc-linux-gnu-g++ -shared -Wl,-O1 -Wl,--as-needed -o RJSONIO.so ConvertUTF.o JSONAllocator.o JSONChildren.o JSONDebug.o JSONIterators.o JSONMemory.o JSONNode.o JSONNode_Mutex.o JSONPreparse.o JSONStream.o JSONValidator.o JSONWorker.o JSONWriter.o JSON_parser.o RJSON.o internalJSONNode.o libjson.o rlibjson.o rparser.o -L/usr/lib64/R/lib -lR
installing to /usr/lib64/R/library/RJSONIO/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (RJSONIO)

...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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant