error code 127 - error while loading shared libraries

Message boards : Closed Issues : error code 127 - error while loading shared libraries
Message board moderation

To post messages, you must log in.

AuthorMessage
Gunde

Send message
Joined: 15 Feb 19
Posts: 1
Credit: 201,230
RAC: 0
Message 3015 - Posted: 15 Feb 2019, 23:25:13 UTC
Last modified: 15 Feb 2019, 23:56:24 UTC

<core_client_version>7.6.31</core_client_version>
<![CDATA[
<message>
process exited with code 127 (0x7f, -129)
</message>
<stderr_txt>
../../projects/boinc.tbrada.eu/padls2_202_x86_64-pc-linux-gnu: error while loading shared libraries: libboinc_api.so.7: cannot open shared object file: No such file or directory

</stderr_txt>
]]>

On application Pseudo Associative DLS v2.02 x86_64-pc-linux-gnu with host serveral host. These are happend for linux only so far.

None of host with Linux with 4.4.0-141-generic Ubuntu 16.04 had any valid units. Only windows.
ID: 3015 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tomáš Brada
Project administrator
Volunteer developer
Avatar

Send message
Joined: 3 Feb 19
Posts: 592
Credit: 417,175
RAC: 0
Message 3016 - Posted: 16 Feb 2019, 8:38:42 UTC - in response to Message 3015.  

thanks.
you appear to be missing library libboinc_api.so.7
Can you look on your system for file matching libboinc_api.so* ? and write what you found.
I will fix it.
ID: 3016 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tomáš Brada
Project administrator
Volunteer developer
Avatar

Send message
Joined: 3 Feb 19
Posts: 592
Credit: 417,175
RAC: 0
Message 3017 - Posted: 16 Feb 2019, 13:47:26 UTC - in response to Message 3016.  

Note that you need to have BOINC installed to run this application.
ID: 3017 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tomáš Brada
Project administrator
Volunteer developer
Avatar

Send message
Joined: 3 Feb 19
Posts: 592
Credit: 417,175
RAC: 0
Message 3019 - Posted: 16 Feb 2019, 17:58:56 UTC

The app needs the following Linux libraries:
libboinc_api.so.7 -> archlinux package boinc, debian package libboinc-app7
libncursesw version 6 -> debian package name libncursesw6
libC version 6, libpthread.so.0, libdl.so.2 -> debian package libc6

Ubuntu packages have the same name as debian packages.
ID: 3019 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan

Send message
Joined: 16 Feb 19
Posts: 15
Credit: 87,087
RAC: 479
Message 3030 - Posted: 17 Feb 2019, 3:28:28 UTC
Last modified: 17 Feb 2019, 3:35:06 UTC

I'm sorry but I will have to give this project a miss.

I have tried for a few hours to get the required files installed (I am only missing the libboinc_api.so.7 and libncursesw6), but I am unable to get just the single file libboinc_api.so.7 as it is always included in a package to install Boinc-Client on my computer, this I don't want as I have Boinc-Client already installed and not from the package manager of my distribution, as i do it manually, so I don't want to muck up my set up.
The libncurses files are just painful, as I did locate a version 6 (I have 5), but it wanted me to make and install, which I am not comfortable doing.
So tried another download that just need to be extracted but it would not install without something or other.
Then located some RPM packages, but they would not install as one RPM package needed another dependency which when I located that dependency, needed another dependency which was already in the dependency that would not install.
So I gave up.

Don't know why this project needs so many new files when the other similar projects do not.
I have no trouble at Rakesearch, ODLK or Latinsquares, but total failure here.

Good luck with your project, I may try again in the future but I wont hold my breath.

Conan
ID: 3030 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tomáš Brada
Project administrator
Volunteer developer
Avatar

Send message
Joined: 3 Feb 19
Posts: 592
Credit: 417,175
RAC: 0
Message 3034 - Posted: 17 Feb 2019, 12:29:25 UTC

I did not know there are distributions that do not allow installing up to date libraries. I know how to fix it. I have to build ncurses, freebasic compiler and boinc from sources, extract the a files and buld a static executable with those. Sounds easy, right?
Oh and if you are building your own boinc client, the libboinc_api is there.
ID: 3034 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan

Send message
Joined: 16 Feb 19
Posts: 15
Credit: 87,087
RAC: 479
Message 3050 - Posted: 18 Feb 2019, 8:04:51 UTC

Thanks for the response Thomas,
It is not so much that the distribution can't be updated but that I am using Fedora 21, Fedora is up to release 30 now.
I mainly just do BOINC on the Linux computers and I manually installed BOINC-Client and Manager, in the way it used to be installed many years ago.
I find that it is now harder to install in this manner with the distribution release version (I had another computer running before that I could only get Boinc to work via the distribution release, it was Fedora 25, manually did not work)

So I don't do boinc updates through the distribution (which does support that function), I manually update only when I really need to, such as when HTTPS started and I had trouble getting that to work on the older distribution and BOINC versions I was using.

Thanks again
Conan
ID: 3050 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Bok

Send message
Joined: 18 Feb 19
Posts: 5
Credit: 169,485
RAC: 0
Message 3061 - Posted: 21 Feb 2019, 13:15:15 UTC

Fails on CentOS 7 also

[root@hpz800-1 boinc.tbrada.eu]# ldd padls2_202_x86_64-pc-linux-gnu
./padls2_202_x86_64-pc-linux-gnu: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./padls2_202_x86_64-pc-linux-gnu)
linux-vdso.so.1 => (0x00007fff25481000)
libboinc_api.so.7 => not found
libncursesw.so.6 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f6e722f7000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6e720db000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6e71dd8000)
libc.so.6 => /lib64/libc.so.6 (0x00007f6e71a17000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6e72a45000)

I can probably symlink in the files, BUT any reason it can't be statically linked?
ID: 3061 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
M0CZY

Send message
Joined: 21 Feb 19
Posts: 2
Credit: 5,374
RAC: 0
Message 3062 - Posted: 21 Feb 2019, 17:30:23 UTC

/var/lib/boinc-client/projects/boinc.tbrada.eu$ sudo ldd padls2_202_x86_64-pc-linux-gnu
./padls2_202_x86_64-pc-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./padls2_202_x86_64-pc-linux-gnu)
linux-vdso.so.1 (0x00007fff7c6a2000)
libboinc_api.so.7 => /usr/lib/x86_64-linux-gnu/libboinc_api.so.7 (0x00007f8349639000)
libncursesw.so.6 => not found
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8349435000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8349216000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8348e78000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8348a87000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8349d90000)
libboinc.so.7 => /usr/lib/x86_64-linux-gnu/libboinc.so.7 (0x00007f83487d2000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8348449000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8348231000)

I give up for the time being. It is too difficult to install all the required dependencies on my Ubuntu 18.04.1 LTS. Some of the needed packages are not available for my version of Ubuntu.

The admin will have to do as other users have requested, and build applications with all the required dependencies built in, instead of relying on user's computers having them installed on their systems.
ID: 3062 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tomáš Brada
Project administrator
Volunteer developer
Avatar

Send message
Joined: 3 Feb 19
Posts: 592
Credit: 417,175
RAC: 0
Message 3063 - Posted: 21 Feb 2019, 18:08:44 UTC

Ubuntu Cosmic (18.10) has all the required libraries.
You are right, the app should be statically linked. I know how to fix it. Luckily there are no new tasks now. I will post a news item when new Linux build becomes available.
ID: 3063 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan

Send message
Joined: 16 Feb 19
Posts: 15
Credit: 87,087
RAC: 479
Message 3064 - Posted: 21 Feb 2019, 21:09:24 UTC

Thank you Tomas, that will help greatly.

Conan
ID: 3064 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Closed Issues : error code 127 - error while loading shared libraries

©2020 Tomáš Brada