LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2015, 11:26 AM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 180

Rep: Reputation: 24
Question SlackBuild for dwb packege fails: Cannot find json-c


Hi,

trying to build dwb from SlackBuilds.org for Slackware 14.1 fails, throwing the following error message:
Code:
dwb-2013.03.30/src/view.c
dwb-2013.03.30/src/view.h
dwb-2013.03.30/tools/Makefile
dwb-2013.03.30/tools/backtrace.sh
dwb-2013.03.30/tools/dwbem.c
dwb-2013.03.30/tools/grab_adblocker
config.mk:111: *** Cannot find json-c.  Stop.
But the json-c package from SBo is installed.
 
Old 05-22-2015, 11:56 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,227

Rep: Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463
json-c has been updated not much time ago and the dwb version on SBo (more than two years old) is not compatible with its new version: please update it locally like this diff shows

https://github.com/Ponce/slackbuilds...5e853ef83780d1
 
Old 05-22-2015, 12:45 PM   #3
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 180

Original Poster
Rep: Reputation: 24
Thanks ponce,

I made the changes, but now it fails with other error messages:
Code:
Build options:
CC = cc
CFLAGS = -O2 -march=i486 -mtune=i686 -Wall -Werror=format-security -pipe --ansi -std=c99 -D_POSIX_C_SOURCE=200112L -O2 -g -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_NETBSD_SOURCE -D__BSD_VISIBLE -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libdrm -I/usr/include/harfbuzz -I/usr/include/webkitgtk-1.0 -I/usr/include/p11-kit-1 -I/usr/include/json-c -I/usr/include/libsecret-1 -DWITH_LIBSOUP_2_38=1
LDFLAGS = -lwebkitgtk-1.0 -lgtk-x11-2.0 -lsoup-2.4 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -ljavascriptcoregtk-1.0 -lgnutls -ljson-c -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpthread -lm -lX11
CPPFLAGS = -DWITH_LIBSECRET
make[1]: Entering directory `/home/tmp/SBo/dwb-20150419_8ba11e5/src/util'
cc convert_transport_security.c
convert_transport_security.c: In function 'handle_pinsets':
convert_transport_security.c:256:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((name_obj = json_object_object_get(pin_list, "name")) == NULL || !json_object_is_type(name_obj, json_type_string))
         ^
convert_transport_security.c:263:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         good_hashes = json_object_object_get(pin_list, "static_spki_hashes");
         ^
convert_transport_security.c:264:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         bad_hashes = json_object_object_get(pin_list, "bad_static_spki_hashes");
         ^
convert_transport_security.c: In function 'handle_entries':
convert_transport_security.c:297:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((name_obj = json_object_object_get(entry, "name")) == NULL ||
         ^
convert_transport_security.c:307:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         json_object *mode = json_object_object_get(entry, "mode");
         ^
convert_transport_security.c:315:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         json_object *include_subdomains = json_object_object_get(entry, "include_subdomains");
         ^
convert_transport_security.c:327:9: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
         if((entry_pins = json_object_object_get(entry, "pins")) != NULL)
         ^
convert_transport_security.c: In function 'parse_json':
convert_transport_security.c:371:5: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
     if((pinsets = json_object_object_get(json, "pinsets")) == NULL || !json_object_is_type(pinsets, json_type_array) ||
     ^
convert_transport_security.c:380:5: warning: 'json_object_object_get' is deprecated (declared at /usr/include/json-c/json_object.h:290) [-Wdeprecated-declarations]
     if((entries = json_object_object_get(json, "entries")) == NULL || !json_object_is_type(entries, json_type_array) ||
     ^
gen hsts_preload.h
cc mktlds-header.c
gen tlds.h
make[1]: Leaving directory `/home/tmp/SBo/dwb-20150419_8ba11e5/src/util'
make[1]: Entering directory `/home/tmp/SBo/dwb-20150419_8ba11e5/exar'
cc exar.c
make[1]: Leaving directory `/home/tmp/SBo/dwb-20150419_8ba11e5/exar'
make[1]: Entering directory `/home/tmp/SBo/dwb-20150419_8ba11e5/dwbremote'
cc dwbremote.c
cc main.c
cc -o dwbremote
make[1]: Leaving directory `/home/tmp/SBo/dwb-20150419_8ba11e5/dwbremote'
make[1]: Entering directory `/home/tmp/SBo/dwb-20150419_8ba11e5/m4'
gen settings.html
gen keys.html
make[1]: Leaving directory `/home/tmp/SBo/dwb-20150419_8ba11e5/m4'
make[1]: Entering directory `/home/tmp/SBo/dwb-20150419_8ba11e5/src'
cc secret.c
secret.c:120:1: error: unknown type name 'SecretService'
 static SecretService *
 ^
secret.c: In function 'get_service':
secret.c:123:5: error: unknown type name 'SecretService'
     SecretService *service = secret_service_get_finish(result, &e);
     ^
secret.c:123:5: warning: implicit declaration of function 'secret_service_get_finish' [-Wimplicit-function-declaration]
secret.c:123:30: warning: initialization makes pointer from integer without a cast [enabled by default]
     SecretService *service = secret_service_get_finish(result, &e);
                              ^
secret.c: At top level:
secret.c:131:1: error: unknown type name 'SecretCollection'
 static SecretCollection *
 ^
secret.c:132:27: error: unknown type name 'SecretService'
 collection_first_matching(SecretService *service, const char *name) {
                           ^
secret.c:147:24: error: unknown type name 'SecretService'
 collection_lookup_path(SecretService *service, const char *name) {
                        ^
secret.c: In function 'on_created_collection':
secret.c:163:5: error: unknown type name 'SecretCollection'
     SecretCollection *collection = secret_collection_create_finish(result, &e);
     ^
secret.c:163:5: warning: implicit declaration of function 'secret_collection_create_finish' [-Wimplicit-function-declaration]
secret.c:163:36: warning: initialization makes pointer from integer without a cast [enabled by default]
     SecretCollection *collection = secret_collection_create_finish(result, &e);
                                    ^
secret.c: In function 'on_service_create_collection':
secret.c:175:5: error: unknown type name 'SecretService'
     SecretService *service = get_service(secret, result);
     ^
secret.c:177:9: error: unknown type name 'SecretCollection'
         SecretCollection *collection = collection_first_matching(service, secret->data);
         ^
secret.c:177:9: warning: implicit declaration of function 'collection_first_matching' [-Wimplicit-function-declaration]
secret.c:177:40: warning: initialization makes pointer from integer without a cast [enabled by default]
         SecretCollection *collection = collection_first_matching(service, secret->data);
                                        ^
secret.c:179:13: warning: implicit declaration of function 'secret_collection_create' [-Wimplicit-function-declaration]
             secret_collection_create(service, secret->data, NULL, SECRET_COLLECTION_CREATE_NONE, NULL, 
             ^
secret.c:179:67: error: 'SECRET_COLLECTION_CREATE_NONE' undeclared (first use in this function)
             secret_collection_create(service, secret->data, NULL, SECRET_COLLECTION_CREATE_NONE, NULL, 
                                                                   ^
secret.c:179:67: note: each undeclared identifier is reported only once for each function it appears in
secret.c: In function 'dwb_secret_create_collection':
secret.c:193:5: warning: implicit declaration of function 'secret_service_get' [-Wimplicit-function-declaration]
     get_service_init(on_service_create_collection, s);
     ^
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:193:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_create_collection, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:193:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_create_collection, s);
     ^
secret.c: At top level:
secret.c:200:27: error: unknown type name 'SecretService'
 on_lock_unlock_collection(SecretService *service, GAsyncResult *result, dwb_secret_t *secret) {
                           ^
secret.c: In function 'on_service_lock_unlock_collection':
secret.c:220:5: error: unknown type name 'SecretService'
     SecretService *service = get_service(secret, result);
     ^
secret.c:225:5: warning: implicit declaration of function 'secret_service_get_collections' [-Wimplicit-function-declaration]
     GList *collections = secret_service_get_collections(service);
     ^
secret.c:225:26: warning: initialization makes pointer from integer without a cast [enabled by default]
     GList *collections = secret_service_get_collections(service);
                          ^
secret.c:229:9: error: unknown type name 'SecretCollection'
         SecretCollection *collection = l->data;
         ^
secret.c:230:9: warning: implicit declaration of function 'secret_collection_get_locked' [-Wimplicit-function-declaration]
         gboolean locked = secret_collection_get_locked(collection);
         ^
secret.c:232:13: warning: implicit declaration of function 'secret_collection_get_label' [-Wimplicit-function-declaration]
             char *label = secret_collection_get_label(collection);
             ^
secret.c:232:27: warning: initialization makes pointer from integer without a cast [enabled by default]
             char *label = secret_collection_get_label(collection);
                           ^
secret.c:241:13: warning: implicit declaration of function 'secret_service_unlock' [-Wimplicit-function-declaration]
             secret_service_unlock(service, cols, NULL, (GAsyncReadyCallback)on_lock_unlock_collection, secret);
             ^
secret.c:241:77: error: 'on_lock_unlock_collection' undeclared (first use in this function)
             secret_service_unlock(service, cols, NULL, (GAsyncReadyCallback)on_lock_unlock_collection, secret);
                                                                             ^
secret.c:243:13: warning: implicit declaration of function 'secret_service_lock' [-Wimplicit-function-declaration]
             secret_service_lock(service, cols, NULL, (GAsyncReadyCallback)on_lock_unlock_collection, secret);
             ^
secret.c: In function 'dwb_secret_lock_collection':
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:258:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_lock_unlock_collection, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:258:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_lock_unlock_collection, s);
     ^
secret.c: In function 'dwb_secret_unlock_collection':
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:264:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_lock_unlock_collection, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:264:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_lock_unlock_collection, s);
     ^
secret.c: In function 'on_service_pwd':
secret.c:292:5: error: unknown type name 'SecretService'
     SecretService *service = get_service(secret, result);
     ^
secret.c:297:13: warning: implicit declaration of function 'collection_lookup_path' [-Wimplicit-function-declaration]
             path = collection_lookup_path(service, pwd->collection);
             ^
secret.c:297:18: warning: assignment makes pointer from integer without a cast [enabled by default]
             path = collection_lookup_path(service, pwd->collection);
                  ^
secret.c: In function 'dwb_secret_store_pwd':
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:321:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_pwd, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:321:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_pwd, s);
     ^
secret.c: In function 'dwb_secret_lookup_pwd':
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:329:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_pwd, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:329:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_pwd, s);
     ^
secret.c: In function 'on_service_check_service':
secret.c:334:5: error: unknown type name 'SecretService'
     SecretService *service = get_service(secret, result);
     ^
secret.c: In function 'dwb_secret_check_service':
secret.c:58:52: error: 'SECRET_SERVICE_LOAD_COLLECTIONS' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                    ^
secret.c:343:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_check_service, s);
     ^
secret.c:58:86: error: 'SECRET_SERVICE_OPEN_SESSION' undeclared (first use in this function)
 #define get_service_init(cb, s) secret_service_get(SECRET_SERVICE_LOAD_COLLECTIONS | SECRET_SERVICE_OPEN_SESSION, \
                                                                                      ^
secret.c:343:5: note: in expansion of macro 'get_service_init'
     get_service_init(on_service_check_service, s);
     ^
make[1]: *** [secret.o] Error 1
make[1]: Leaving directory `/home/tmp/SBo/dwb-20150419_8ba11e5/src'
make: *** [src.subdir-make] Error 2
 
Old 05-22-2015, 01:00 PM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,033

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
try these patch :

https://projects.archlinux.org/svnto...h=packages/dwb
 
Old 05-22-2015, 02:57 PM   #5
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 180

Original Poster
Rep: Reputation: 24
Thanks, gmgf.

The first patch for src/application.c is not needed, since that rule is already implemented.

The second patch, which removes the -Werror parameter from the CFLAG lines in exar/Makefile and dwbremote/Makefile (Makefile.new didn't exist) didn't make any change. I also tested to remove -Werror parameter from the DCFLAG lines in that files, but without success.

The error messages are the same as shown above.

Last edited by slacksam; 05-22-2015 at 03:06 PM.
 
Old 05-22-2015, 03:55 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,227

Rep: Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463Reputation: 3463
sorry, slacksam, my bad: I tested this on current, where we have libsecret (and the build system should check for it but it seems the check doesn't work very well).

try this script (where I patch very roughly its config file to ignore libsecret completely)

http://ponce.cc/testing/dwb/

Last edited by ponce; 05-22-2015 at 04:00 PM.
 
1 members found this post helpful.
Old 05-22-2015, 04:20 PM   #7
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 180

Original Poster
Rep: Reputation: 24
That one made the job.

Thank you very much, ponce!
 
  


Reply

Tags
fails, json, sbo, slackbuild, slackware 14.1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building ClamAV with Slackbuild fails- can't find libmilter. SOLUTION arfon Slackware 1 03-22-2015 10:15 AM
[SOLVED] Installing grub-2.00 slackbuild, fails when it can't find man directory slacker_ Slackware 2 09-02-2013 05:48 AM
[SOLVED] Conky SlackBuild fails agi93 Slackware 6 07-02-2010 05:21 PM
wmii slackbuild fails... What can I do...? Alexvader Slackware 3 11-02-2009 09:59 AM
LXer: Ten from IBM: Eclipse DWB and GMF, CI, NVSv4, JSON, backup hints... LXer Syndicated Linux News 0 09-16-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration