Re: [sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Kiril Dimitrov
This is the line I used to rename the default libusb in /usr/local/lib
Just for clarification, I copied the wrong line in the previous mail.

$ sudo mv /usr/local/lib/libusb-1.0.so.0 /usr/local/lib/libusb-1.0.so.0-temp
___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


Re: [sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Kiril Dimitrov
So finally, I removed the libusb in /usr/local/lib and now libsigrok is
refering to /lib/x86_64-linux-gnu/libusb-1.0.so.0 and it all works: I built
the sigrok-cli and can start the AppImage.

Paul, thank you for your help!

$ sudo mv /usr/lib/libusb-1.0.so.0-temp /usr/lib/libusb-1.0.so.0
$ ldd /usr/local/lib/libsigrok.so
linux-vdso.so.1 =>  (0x7ffe453e1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f10f103e000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x7f10f0d2d000)
libserialport.so.0 => /usr/local/lib/libserialport.so.0 (0x7f10f0b1c000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2
(0x7f10f090e000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
(0x7f10f06f6000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x7f10f04e3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7f10f02c6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f10efefc000)
/lib64/ld-linux-x86-64.so.2 (0x7f10f165c000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x7f10efc8c000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x7f10f1834000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7f10efa72000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f10ef86a000)



On Sun, Jul 21, 2019 at 12:23 PM Kiril Dimitrov  wrote:

> Ok, I followed your leads. There are several libusb-1.0.so.0 files on my
> system. The sigrok is refering to the one located in /usr/local/lib and it
> is missing the symbols after checking with *nm*.
> There is another one in* /lib/x86_64-linux-gnu/libusb-1.0.so.0 *and it
> contains the required symbols. Do you have a suggestion how to fix it?
>
>
>
>
>
>
> *$ locate
> libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so.4/home/who/temp/libsigrok/.libs/libsigrok.so.4.0.0/usr/local/lib/libsigrok.so/usr/local/lib/libsigrok.so.4*
> */usr/local/lib/libsigrok.so.4.0.0*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *$ ldd /usr/local/lib/libsigrok.so linux-vdso.so.1 =>
>  (0x7fffd00c9000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
> (0x7f9e60cb4000) libglib-2.0.so.0 =>
> /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x7f9e609a3000)
> libserialport.so.0 => /usr/local/lib/libserialport.so.0
> (0x7f9e60792000) libftdi1.so.2 =>
> /usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x7f9e60584000)
> libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x7f9e60376000)
> libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x7f9e60163000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x7f9e5ff46000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
> (0x7f9e5fb7c000) /lib64/ld-linux-x86-64.so.2 (0x7f9e612d2000)
> libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x7f9e5f90c000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f9e5f704000)
> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7f9e5f4ea000)*
>
>
>
>
>
>
>
>
>
> *$ locate libusb-1.0.so
> /lib/x86_64-linux-gnu/libusb-1.0.so.0/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0/opt/calibre/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0.0.0/usr/lib/x86_64-linux-gnu/libusb-1.0.so
> /usr/local/lib/libusb-1.0.so.0/usr/local/lib/libusb-1.0.so.0_toberemoved*
>
> *$ nm -g /usr/local/lib/libusb-1.0.so.0 | grep version*
>
>
> *$ nm -gD /lib/x86_64-linux-gnu/libusb-1.0.so.0 | grep
> version6190 T libusb_get_version*
>
> On Sun, Jul 21, 2019 at 11:15 AM Paul Fertser  wrote:
>
>> On Sun, Jul 21, 2019 at 11:12:54AM +0300, Kiril Dimitrov wrote:
>> > $ldd ./sigrok-cli-0.7.1-x86_64.AppImage
>> > not a dynamic executable
>>
>> I realised it just after sending. I thought it's kinda obvious I meant
>> using ldd on the binry executable or the shared library that gives you
>> the error, not on the AppImage itself.
>>
>> > echo "  CCLD" sigrok-cli;gcc -std=c99 -Wall -Wextra
>> -I/usr/local/include
>> > -I/usr/include/libftdi1 -I/usr/include/libusb-1.0
>> > -I/usr/lib/x86_64-linux-gnu/libzip/include -I/usr/include/python3.5m
>> > -I/usr/include/x86_64-linux-gnu/python3.5m -I/usr/include/glib-2.0
>> > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2   -o sigrok-cli
>> main.o
>> > show.o device.o session.o input.o decode.o parsers.o anykey.o options.o
>> > -L/usr/local/lib -lsigrok -lsigrokdecode -lglib-2.0
>>
>> So are you sure you do not have libusb in /usr/local/lib?
>>
>> And check what does ldd /usr/local/lib/libsigrok*so say.
>>
>> --
>> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
>> mailto:fercer...@gmail.com
>>
>
___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


Re: [sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Kiril Dimitrov
Ok, I followed your leads. There are several libusb-1.0.so.0 files on my
system. The sigrok is refering to the one located in /usr/local/lib and it
is missing the symbols after checking with *nm*.
There is another one in* /lib/x86_64-linux-gnu/libusb-1.0.so.0 *and it
contains the required symbols. Do you have a suggestion how to fix it?






*$ locate
libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so.4/home/who/temp/libsigrok/.libs/libsigrok.so.4.0.0/usr/local/lib/libsigrok.so/usr/local/lib/libsigrok.so.4*
*/usr/local/lib/libsigrok.so.4.0.0*














*$ ldd /usr/local/lib/libsigrok.so linux-vdso.so.1 =>  (0x7fffd00c9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f9e60cb4000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x7f9e609a3000) libserialport.so.0 =>
/usr/local/lib/libserialport.so.0 (0x7f9e60792000) libftdi1.so.2 =>
/usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x7f9e60584000)
libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x7f9e60376000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x7f9e60163000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7f9e5ff46000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
(0x7f9e5fb7c000) /lib64/ld-linux-x86-64.so.2 (0x7f9e612d2000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x7f9e5f90c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f9e5f704000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7f9e5f4ea000)*









*$ locate libusb-1.0.so
/lib/x86_64-linux-gnu/libusb-1.0.so.0/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0/opt/calibre/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0.0.0/usr/lib/x86_64-linux-gnu/libusb-1.0.so
/usr/local/lib/libusb-1.0.so.0/usr/local/lib/libusb-1.0.so.0_toberemoved*

*$ nm -g /usr/local/lib/libusb-1.0.so.0 | grep version*


*$ nm -gD /lib/x86_64-linux-gnu/libusb-1.0.so.0 | grep
version6190 T libusb_get_version*

On Sun, Jul 21, 2019 at 11:15 AM Paul Fertser  wrote:

> On Sun, Jul 21, 2019 at 11:12:54AM +0300, Kiril Dimitrov wrote:
> > $ldd ./sigrok-cli-0.7.1-x86_64.AppImage
> > not a dynamic executable
>
> I realised it just after sending. I thought it's kinda obvious I meant
> using ldd on the binry executable or the shared library that gives you
> the error, not on the AppImage itself.
>
> > echo "  CCLD" sigrok-cli;gcc -std=c99 -Wall -Wextra
> -I/usr/local/include
> > -I/usr/include/libftdi1 -I/usr/include/libusb-1.0
> > -I/usr/lib/x86_64-linux-gnu/libzip/include -I/usr/include/python3.5m
> > -I/usr/include/x86_64-linux-gnu/python3.5m -I/usr/include/glib-2.0
> > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2   -o sigrok-cli
> main.o
> > show.o device.o session.o input.o decode.o parsers.o anykey.o options.o
> > -L/usr/local/lib -lsigrok -lsigrokdecode -lglib-2.0
>
> So are you sure you do not have libusb in /usr/local/lib?
>
> And check what does ldd /usr/local/lib/libsigrok*so say.
>
> --
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:fercer...@gmail.com
>
___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


Re: [sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Paul Fertser
On Sun, Jul 21, 2019 at 10:33:52AM +0300, Kiril Dimitrov wrote:
> ./sigrok-cli-0.7.1-x86_64.AppImage
> sigrok-cli: symbol lookup error: 
> /tmp/.mount_sigrokLM29y6/usr/lib/libsigrok.so.4: undefined symbol: 
> libusb_get_version

"ldd ./sigrok-cli-0.7.1-x86_64.AppImage" might give additional clues
too.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com


___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


Re: [sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Paul Fertser
Hi,

On Sun, Jul 21, 2019 at 10:33:52AM +0300, Kiril Dimitrov wrote:
> ~/temp/sigrok-cli$ make
> make  all-am
>   CCLD sigrok-cli
> /usr/local/lib/libsigrok.so: undefined reference to `libusb_free_pollfds'

My guess would be that you have an outdated libusb version installed
in /usr/local/lib . I suggest you run make in a way to show you full
linker command line to see the library linking path.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com


___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel


[sigrok-devel] sigrok-cli-0.7.1 and PulseView-0.4.1 AppImage do not start because of undefined symbol: libusb_get_version Ask Question

2019-07-21 Thread Kiril Dimitrov
I am trying to start *PulseView* and *sigrok* AppImages. Unfortunately, I
am getting an error message and I cannot figure out how to fix it:

./sigrok-cli-0.7.1-x86_64.AppImage
sigrok-cli: symbol lookup error:
/tmp/.mount_sigrokLM29y6/usr/lib/libsigrok.so.4: undefined symbol:
libusb_get_version

./PulseView-0.4.1-x86_64.AppImage
pulseview: symbol lookup error:
/tmp/.mount_PulseVunpXcp/usr/lib/libsigrok.so.4: undefined symbol:
libusb_get_version

Then, I tried to build from source following the instructions at
https://sigrok.org/wiki/Linux . I have built successfully all libraries but
got the same undefined reference to *libusb* when building *sigrok-cli*:

~/temp/sigrok-cli$ make
make  all-am
  CCLD sigrok-cli
/usr/local/lib/libsigrok.so: undefined reference to `libusb_free_pollfds'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_version'
/usr/local/lib/libsigrok.so: undefined reference to
`libusb_handle_events_timeout_completed'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_has_capability'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_error_name'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_port_numbers'
collect2: error: ld returned 1 exit status
Makefile:476: recipe for target 'sigrok-cli' failed
make[1]: *** [sigrok-cli] Error 1
Makefile:362: recipe for target 'all' failed
make: *** [all] Error 2

Here are some dumps:

$ lsb_release -a
LSB Version:
core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:Ubuntu 16.04.6 LTS
Release:16.04
Codename:   xenial

$ apt-cache policy libusb-1.0*
libusb-1.0-0:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libusb-1.0-0-dbg:
  Installed: (none)
  Candidate: 2:1.0.20-1
  Version table:
 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libusb-1.0-0-dev:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libusb-1.0-doc:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status

Do you have ideas what is the problem?
___
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel