linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Raul Piper <raulpblooper@gmail.com>
To: "Stotland, Inga" <inga.stotland@intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50
Date: Thu, 23 Aug 2018 00:58:42 +0530	[thread overview]
Message-ID: <CAEwN+MDWnmOSxt_Y3aLD6idwxvv3HnAfaaOHH3JaHJLUWLy_5A@mail.gmail.com> (raw)
In-Reply-To: <1534872308.5879.48.camel@intel.com>

Hello Inga,
On Tue, Aug 21, 2018 at 10:55 PM Stotland, Inga <inga.stotland@intel.com> wrote:
>
> Hi Raul,
>
> On Tue, 2018-08-21 at 13:29 +0530, Raul Piper wrote:
> > Hello Inga,
> >
> >
> > On Tue, Aug 21, 2018 at 2:37 AM, Stotland, Inga <inga.stotland@intel.
> > com> wrote:
> > > Hi Raul,
> > >
> > > On Tue, 2018-08-21 at 01:14 +0530, Raul Piper wrote:
> > > > Hello Inga,
> > > > Attached,
> > > > Rgds,
> > > > Rp
> > > >
> > > > On Tue, Aug 21, 2018 at 12:46 AM, Stotland, Inga
> > > > <inga.stotland@intel.com> wrote:
> > > > > Hi Raul,
> > > > >
> > > > > On Tue, 2018-08-21 at 00:13 +0530, Raul Piper wrote:
> > > > > > Hello Inga,
> > > > > > it gives the below logs :
> > > > > >
> > > > > > pi@raspberrypi:~/blueZ $ meshctl -c mesh
> > > > > >
> > > > > > Failed to parse local node configuration file
> > > > > > mesh/local_node.json
> > > > > >
> > > > > >
> > > > > >
> > > > > > pi@raspberrypi:~/blueZ $ meshctl -v
> > > > > >
> > > > > > meshctl: 5.50
> > > > > >
> > > > > > i need to do export before executing above commands
> > > > > >
> > > > > > pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib
> > > > > >
> > > > > > pi@raspberrypi:~ $ export LD_LIBRARY_PATH
> > > > > >
> > > > > >
> > > > > >
> > > > > > to avoid the below error :
> > > > > >
> > > > > > pi@raspberrypi:~ $ meshctl -v
> > > > > >
> > > > > > meshctl: error while loading shared libraries: libjson-
> > > > > > c.so.4:
> > > > > > cannot
> > > > > > open shared object file: No such file or directory
> > > > > >
> > > > > >
> > > > > > can you please assist?
> > > > > > or any  experimental patch I could use on BlueZ
> > > > > >
> > > > > > Thanks in advance
> > > > > > Best Regards,
> > > > > > Rp
> > > > > >
> > > > > > On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga <inga.stotlan
> > > > > > d@in
> > > > > > tel.
> > > > > > com> wrote:
> > > > > > > Hi Raul,
> > > > > > > On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
> > > > > > > > Hello ,
> > > > > > > > I have built and BlueZ 5.50 from the source and installed
> > > > > > > > it
> > > > > > > > on
> > > > > > > > raspberry PI 3 W0, but when I am trying to launch the
> > > > > > > > meshctl
> > > > > > > > tool -
> > > > > > > > using ./meshctl (from within or out side the mesh
> > > > > > > > directory)
> > > > > > > > i am
> > > > > > > > getting the below error  :
> > > > > > > >
> > > > > > > > Failed to parse provisioning database file prov_db.json
> > > > > > > >
> > > > > > > > I checked the online sanity onfthe above json file and it
> > > > > > > > seems
> > > > > > > > correct.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I tried doing the sudo hcitool -lescan - it shows the LE
> > > > > > > > devices
> > > > > > > > and also
> > > > > > > >
> > > > > > > > bluetoothd -v gives 5.50 which shows my compilation and
> > > > > > > > loading
> > > > > > > > of the
> > > > > > > > new BlueZ is alteast correct.
> > > > > > > >
> > > > > > > > I have already installed the c-json lib .
> > > > > > > >
> > > > > > > > Is this a bug in meshctl?
> > > > > > > >
> > > > > > > > Please assist !
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks in Advance !
> > > > > > >
> > > > > > > Are you using the default json file? If so, there's a bug
> > > > > > > in
> > > > > > > meshctl
> > > > > > > for reading from default location (just subimmted a patch
> > > > > > > for
> > > > > > > that).
> > > > > > >
> > > > > > > Meanwhile, try running:
> > > > > > >  ./meshctl -c mesh
> > > > > > >
> > > > > > > Regards,
> > > > > > > Inga
> > > > > > >
> > > > >
> > > > > I am not an expert on system setup, but could you please run
> > > > > sudo /sbin/ldconfig -v
> > > > >
> > > > > Regards,
> > > > > Inga
> > > >
> > > >
> > >
> > > There is no record of libjson-c in your ldconfig output. So my
> > > guess
> > > would be that something is to do with the installation of json-c
> > > library on rpi.
> > >
> > > If you had to build the json-c from source and then run make
> > > install,
> > > you may want to modify the installation path to be something
> > > standard
> > > on your system from where ldconfig will be able to pick it up.
> > > ./configure --prefix=/somewhere/not/usr/local prior to make install
> > >
> > > Alternatively, you may try to run this command:
> > >
> > >  ldconfig -l /path-to-libjson-c.so.xxx
> > >
> > > Re-run ldconfig afterwards and see if the libjson-c showed up.
> > >
> > > Regards,
> > >
> > > Inga
> > >
> > > P.S. Just FYI, the standard way to respond to emails on bluez
> > > mailing
> > > list is to include the body of you reply at the tail of the
> > > message.
> > >
> >
> > Sorry for Top posting.
> > I reinstalled the blueZ  (with --enable-mesh) , installed json-c from
> > the git
> > I can see the entry of the libjson-c unlike previously but it still
> > gives the same error.
>
> By the same error you mean "error loading shared library" or "failed to
> parse"?
>
> > Don't we have to link the libjson-c with the BlueZ while building by
> > setting some Linker flags(LD) in the Makefile of the BlueZ.Is there
> > any such option?
> > How will I come to know that it has built successfully with the
> > reference to the libjson-c.
> > I believe we must have json-c pre-installed before building
> > the  BlueZ
> > and Build setup of BlueZ must know where is the libjson-c.
>
> Both configure and Makefile.tools reference ljson-c. meshctl executable
> would not be built if libjson-c wasn't found during build time.
>
> In case you are still experiencing "loading shared library" error, my
> guess is that the libjson-c location is not on the search path.
>
> Regards,
> Inga

The error I meant  is below (on executing meshctl -c mesh):
"Failed to parse local node configuration file mesh/local_node.json"



ldconfig -v | grep json command gives the below  logs :

====================
ldconfig: Path `/lib/arm-linux-gnueabihf' given more than once

ldconfig: Path `/usr/lib/arm-linux-gnueabihf' given more than once

libjson-c.so.3 -> libjson-c.so.3.0.1

ldconfig: /lib/arm-linux-gnueabihf/ld-2.24.so is the dynamic linker, ignoring


libjson-glib-1.0.so.0 -> libjson-glib-1.0.so.0.200.6

libfastjson.so.4 -> libfastjson.so.4.0.0

libjson-c.so.4 -> libjson-c.so.4.0.0




whereis libjson-c.so.4 gives the below  logs :

===============================

libjson-c.so: /usr/local/lib/libjson-c.so /usr/local/lib/libjson-c.so.4

whereis libjson-c.so.4.0.0 gives the below  logs :

==============================

libjson-c.so.4.0: /usr/local/lib/libjson-c.so.4.0.0

I have added the /usr/local/lib to the PATH

echo $PATH gives the below  logs :
===========================
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/lib:/home/pi/opt/bin


what possibly could be wrong?
Do you have a set of steps to test the "meshctl -c mesh " command
starting from the installation
of json-c and BlueZ . I can start fresh .

Thanks in advance !
Rp

  reply	other threads:[~2018-08-22 19:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-18 21:33 Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50 Raul Piper
2018-08-19 21:36 ` Stotland, Inga
2018-08-20 18:43   ` Raul Piper
2018-08-20 19:16     ` Stotland, Inga
2018-08-20 19:44       ` Raul Piper
2018-08-20 21:07         ` Stotland, Inga
2018-08-21  7:59           ` Raul Piper
2018-08-21 17:25             ` Stotland, Inga
2018-08-22 19:28               ` Raul Piper [this message]
2018-08-23  6:19                 ` Stotland, Inga
2018-08-23 12:55                   ` Steve Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEwN+MDWnmOSxt_Y3aLD6idwxvv3HnAfaaOHH3JaHJLUWLy_5A@mail.gmail.com \
    --to=raulpblooper@gmail.com \
    --cc=inga.stotland@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).