Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508980 - net-misc/grive-0.2.0-r1 - .../work/grive-0.2.0/libgrive/src/protocol/Json.cc:359:3: error: ‘::json_tokener_errors’ has not been declared
Summary: net-misc/grive-0.2.0-r1 - .../work/grive-0.2.0/libgrive/src/protocol/Json.cc:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christoph Junghans (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-28 13:56 UTC by Jonathan Isom
Modified: 2014-04-29 16:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,21.16 KB, text/plain)
2014-04-28 13:56 UTC, Jonathan Isom
Details
net-misc:grive-0.2.0-r1:20140428-004021.log (net-misc:grive-0.2.0-r1:20140428-004021.log,30.61 KB, text/plain)
2014-04-28 17:53 UTC, Jonathan Isom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Isom 2014-04-28 13:56:42 UTC
Created attachment 375956 [details]
emerge --info

Compile Fails

/usr/bin/cmake -H/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0 -B/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/CMakeFiles /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
make -f libgrive/CMakeFiles/grive.dir/build.make libgrive/CMakeFiles/grive.dir/depend
make[2]: Entering directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
cd /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0 /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/libgrive /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/libgrive/CMakeFiles/grive.dir/DependInfo.cmake
make[2]: Leaving directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
make -f libgrive/CMakeFiles/grive.dir/build.make libgrive/CMakeFiles/grive.dir/build
make[2]: Entering directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/CMakeFiles 14
[  2%] Building CXX object libgrive/CMakeFiles/grive.dir/src/protocol/Json.cc.o
cd /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build/libgrive && /usr/bin/x86_64-pc-linux-gnu-g++  -DSRC_DIR=\"/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src\" -DTEST_DATA=\"/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/test/data/\" -DVERSION=\"0.2.0\"  -DNDEBUG -O3 -march=native -pipe -ggdb -mno-3dnow   -I/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src -I/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/test    -o CMakeFiles/grive.dir/src/protocol/Json.cc.o -c /var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc: In member function ‘gr::Json gr::Json::operator[](const string&) const’:
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:149:28: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:149:72: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc: In member function ‘bool gr::Json::Has(const string&) const’:
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:180:11: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:180:55: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc: In member function ‘bool gr::Json::Get(const string&, gr::Json&) const’:
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:186:28: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:186:72: warning: ‘json_object* json_object_object_get(json_object*, const char*)’ is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc: In static member function ‘static gr::Json gr::Json::ParseFile(const string&)’:
/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0/libgrive/src/protocol/Json.cc:359:3: error: ‘::json_tokener_errors’ has not been declared
libgrive/CMakeFiles/grive.dir/build.make:356: recipe for target 'libgrive/CMakeFiles/grive.dir/src/protocol/Json.cc.o' failed
make[2]: *** [libgrive/CMakeFiles/grive.dir/src/protocol/Json.cc.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
CMakeFiles/Makefile2:80: recipe for target 'libgrive/CMakeFiles/grive.dir/all' failed
make[1]: *** [libgrive/CMakeFiles/grive.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-misc/grive-0.2.0-r1/work/grive-0.2.0_build'
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-28 14:08:56 UTC
Please attach the entire build log to this bug report.
Comment 2 Rafał Mużyło 2014-04-28 17:49:09 UTC
That error likely reads as "incompatible with >=json-c-0.12".
Comment 3 Jonathan Isom 2014-04-28 17:53:25 UTC
Created attachment 375970 [details]
net-misc:grive-0.2.0-r1:20140428-004021.log

Here is the build log. Sorry about that.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-28 17:55:27 UTC
Which version of dev-libs/json-c would that be?
Comment 5 Jonathan Isom 2014-04-28 18:05:50 UTC
I have dev-libs/json-c-0.12 installed.
Comment 6 Christoph Junghans (RETIRED) gentoo-dev 2014-04-28 20:18:41 UTC
@Jonathan: Can you have a look if this was reported upstream (@github) already? And if not, please open an issue there, too.

And there is a Debian bug, which looks similar.
Comment 7 Jonathan Isom 2014-04-28 22:28:44 UTC
I checked upstream and the version there is 0.3.1. With the same patches as the gentoo ebuild uses it compiles fine. Has an additional dependacy of dev-libs/yajl among probably other I didn't already have installed.
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2014-04-28 23:09:58 UTC
(In reply to Jonathan Isom from comment #7)
> I checked upstream and the version there is 0.3.1. With the same patches as
> the gentoo ebuild uses it compiles fine. Has an additional dependacy of
> dev-libs/yajl among probably other I didn't already have installed.
Huh, <https://github.com/Grive/grive/releases> and <http://www.lbreda.com/grive/download> only list 0.2.0!
Where did you find 0.3.1?
Comment 9 Jonathan Isom 2014-04-28 23:14:42 UTC
Sorry. 0.3.0-pre. https://github.com/Grive/grive
Comment 10 Christoph Junghans (RETIRED) gentoo-dev 2014-04-29 16:59:15 UTC
+*grive-0.3.0_pre20130503 (29 Apr 2014)
+
+  29 Apr 2014; Christoph Junghans <ottxor@gentoo.org>
+  +grive-0.3.0_pre20130503.ebuild:
+  version bump to build with latest json-c (bug #508980)
+