Bug#908393: jq: error while loading shared libraries: libonig.so.2

2018-09-09 Thread George B.
Package: jq
Followup-For: Bug #908393

I figured it out - my ldd shows libjq in /usr/local/lib and that was
being loaded by the binary instead of Debian libjq. Doing "rm
/usr/local/lib/libjq*" fixed the issue.

This is from a machine that I don't log into often and must have been
left over from a time I compiled my own jq to get round some bugs and
never cleaned it up properly.

I'll close this bug out, sorry for the wild goose chase.



Bug#908393: jq: error while loading shared libraries: libonig.so.2

2018-09-09 Thread 陳昌倬
On Sun, Sep 09, 2018 at 03:54:43PM +0100, George B. wrote:
> Package: jq
> Version: 1.5+dfsg-2+b1
> Followup-For: Bug #908393
> 
> $ which jq
> /usr/bin/jq
> 
> $ ldd /usr/bin/jq 
> linux-vdso.so.1 (0x7fff647cc000)
> libjq.so.1 => /usr/local/lib/libjq.so.1 (0x7fa1c2892000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7fa1c26fe000)
> libonig.so.5 => /usr/lib/x86_64-linux-gnu/libonig.so.5 
> (0x7fa1c2674000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fa1c24b7000)
> /lib64/ld-linux-x86-64.so.2 (0x7fa1c2d0d000)
> libonig.so.2 => not found

That is strange. In my sid machine, jq 1.5+dfsg-2+b1 is linked to
libonig.so.5, not libonig.so.2. Could you help to reinstall jq
1.5+dfsg-2+b1 to see if the problem remains or not?


$ ldd `which jq` 
linux-vdso.so.1 (0x7ffc05123000)
libjq.so.1 => /lib/x86_64-linux-gnu/libjq.so.1 (0x7fd14e383000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7fd14e1ef000)
libonig.so.5 => /lib/x86_64-linux-gnu/libonig.so.5 (0x7fd14e165000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fd14dfa8000)
/lib64/ld-linux-x86-64.so.2 (0x7fd14e7ff000)


$ apt-cache showpkg jq|grep libonig
1.5+dfsg-2+b1 - libjq1 (5 1.5+dfsg-2+b1) libc6 (2 2.4) libonig5 (2 6.8.1) 
jq:i386 (32 (null)) 
1.5+dfsg-1.3 - libjq1 (5 1.5+dfsg-1.3) libc6 (2 2.4) libonig4 (2 5.9.5) jq:i386 
(32 (null)) 
1.5+dfsg-1.3~bpo8+1 - libjq1 (5 1.5+dfsg-1.3~bpo8+1) libc6 (2 2.4) libonig2 (2 
5.9.5) jq:i386 (32 (null)) 


-- 
ChangZhuo Chen (陳昌倬) czchen@{czchen,debconf,debian}.org
http://czchen.info/
Key fingerprint = BA04 346D C2E1 FE63 C790  8793 CC65 B0CD EC27 5D5B


signature.asc
Description: PGP signature


Bug#908393: jq: error while loading shared libraries: libonig.so.2

2018-09-09 Thread George B.
Package: jq
Version: 1.5+dfsg-2+b1
Followup-For: Bug #908393

$ which jq
/usr/bin/jq

$ ldd /usr/bin/jq 
linux-vdso.so.1 (0x7fff647cc000)
libjq.so.1 => /usr/local/lib/libjq.so.1 (0x7fa1c2892000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7fa1c26fe000)
libonig.so.5 => /usr/lib/x86_64-linux-gnu/libonig.so.5 
(0x7fa1c2674000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fa1c24b7000)
/lib64/ld-linux-x86-64.so.2 (0x7fa1c2d0d000)
libonig.so.2 => not found



Bug#908393: jq: error while loading shared libraries: libonig.so.2

2018-09-09 Thread Adrian Bunk
On Sun, Sep 09, 2018 at 02:44:30PM +0100, George B. wrote:
> Package: jq
> Version: 1.5+dfsg-2+b1
> Severity: grave
> Justification: renders package unusable
> 
> Hello,
> 
> The jq program is currently unusable:
> 
> ```
> $ jq
> jq: error while loading shared libraries: libonig.so.2: cannot open shared 
> object file: No such file or directory
> ```
> 
> The recent libonig update (Thu, 06 Sep 2018) mentions "Refresh symbols
> file" in the changelog - maybe this has something to do with it?

libonig.so.2 was in jessie, not in stretch or later.

What is the output of
  which jq


> Thanks,
> 
> George

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#908393: jq: error while loading shared libraries: libonig.so.2

2018-09-09 Thread George B.
Package: jq
Version: 1.5+dfsg-2+b1
Severity: grave
Justification: renders package unusable

Hello,

The jq program is currently unusable:

```
$ jq
jq: error while loading shared libraries: libonig.so.2: cannot open shared 
object file: No such file or directory
```

The recent libonig update (Thu, 06 Sep 2018) mentions "Refresh symbols
file" in the changelog - maybe this has something to do with it?


Thanks,

George

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jq depends on:
ii  libc6 2.27-6
ii  libjq11.5+dfsg-2+b1
ii  libonig5  6.9.0-1

jq recommends no packages.

jq suggests no packages.

-- no debconf information