WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: autogen: error while loading shared libraries: libatomic_ops.so.0  (Read 2002 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 106
Can someone help with the following?

With autogen I'm getting a dependency error for the libatomic_ops library.
The library libatomic_ops.tcz is installed, only the file 'libatomic_ops.so.0' is not present (anymore?).

http://www.tinycorelinux.net/13.x/x86_64/tcz/libatomic_ops.tcz.list

Code: [Select]
$ version
13.1

Code: [Select]
$ uname -m
x86_64

Code: [Select]
$ /usr/local/bin/autogen
/usr/local/bin/autogen: error while loading shared libraries: libatomic_ops.so.0: cannot open shared object file: No such file or directory

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 106
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #1 on: October 11, 2022, 01:47:42 PM »
Get a 'similar' error for autogen on x86

Code: [Select]
$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory

Code: [Select]
$ tce-load -wi libffi.tcz
libffi is already installed!

Code: [Select]
$ version
13.0

Code: [Select]
$ uname -m
i686

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #2 on: October 11, 2022, 04:25:00 PM »
Check libffi version installed and missing
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 106
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #3 on: October 11, 2022, 05:02:23 PM »
Thanks.

For x86, just looked and tried with libffi6.tcz but that didn't work either. Tried with a symlink but no change.

Code: [Select]
$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory

$ tce-load -wi libffi6.tcz
Downloading: libffi6.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
saving to 'libffi6.tcz'
libffi6.tcz          100% |****************************************************| 16384  0:00:00 ETA
'libffi6.tcz' saved
libffi6.tcz: OK

$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory

$ sudo ln -s /tmp/tcloop/libffi6/usr/local/lib/libffi.so.6 /usr/local/lib/libffi.so.5

$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory


ldd shows it uses both libffi.so.7 and libffi.so.5:
Code: [Select]
$ ldd /usr/local/bin/autogen
        linux-gate.so.1 (0xb7f35000)
        libopts.so.25 => /usr/local/lib/libopts.so.25 (0xb7f04000)
        libguile-2.0.so.22 => /usr/local/lib/libguile-2.0.so.22 (0xb7dd1000)
        libffi.so.5 => not found
        libunistring.so.0 => /usr/local/lib/libunistring.so.0 (0xb7cd3000)
        libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0xb7c7d000)
        libltdl.so.7 => /usr/local/lib/libltdl.so.7 (0xb7c75000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7c43000)
        libgc.so.1 => /usr/local/lib/libgc.so.1 (0xb7bee000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7be9000)
        libm.so.6 => /lib/libm.so.6 (0xb7b13000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7b0e000)
        libc.so.6 => /lib/libc.so.6 (0xb7973000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7952000)
        libatomic_ops.so.1 => /usr/local/lib/libatomic_ops.so.1 (0xb7950000)
        libffi.so.7 => /usr/local/lib/libffi.so.7 (0xb7947000)
        /lib/ld-linux.so.2 (0xb7f37000)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #4 on: October 11, 2022, 09:40:16 PM »
Hi rhermsen
Try installing libffi5 from TC10. Read the info file:
http://tinycorelinux.net/10.x/x86/tcz/libffi5.tcz.info

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14754
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #5 on: October 11, 2022, 10:41:45 PM »
I’ll look at updating the autogen extensions in the next couple of days.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14754
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #6 on: October 12, 2022, 08:55:25 AM »
Updated autogen posted in x86_64 repo.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 106
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #7 on: October 12, 2022, 03:02:09 PM »
Thanks, it is working now for x86_64.
You even solved two issues in one... (I didn't notice the version requirement)

Code: [Select]
checking for autogen version >= 5.18.12... yes

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14754
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #8 on: October 13, 2022, 06:28:14 AM »
Updated autogen posted to the x86 repo.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 106
Re: autogen: error while loading shared libraries: libatomic_ops.so.0
« Reply #9 on: October 13, 2022, 06:18:52 PM »
Thanks, also for x86 it is working.

Code: [Select]
checking for autogen version >= 5.18.12... yes