WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Missing shared object for svn in new install (current)  (Read 6135 times)

Offline beetle

  • Newbie
  • *
  • Posts: 14
Missing shared object for svn in new install (current)
« on: May 23, 2018, 12:33:58 AM »
I just did a minimalistic tinycore install.

Wanted to get some files off an svn repo. But it appears there's a missing dependency.

Code: (bash) [Select]
tc@box:~$ svn
svn: error while loading shared libraries: libsasl2.so.3: cannot open shared object file: No such file or directory

Not sure of what I should do to cleanly work around this.

Code: (bash) [Select]
tc@box:~$ uname -a
Linux box 4.14.10-tinycore #876 SMP Mon Jan 1 15:00:32 UTC 2018 i686 GNU/Linux

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Missing shared object for svn in new install (current)
« Reply #1 on: May 23, 2018, 12:40:26 AM »
Hi beetle
That's available in  cyrus-sasl.tcz.

Offline beetle

  • Newbie
  • *
  • Posts: 14
Re: Missing shared object for svn in new install (current)
« Reply #2 on: May 23, 2018, 12:52:56 AM »
Oh thanks! After I installed cyrus-sasl.tcz, svn complained of a missing libsqlite3 so.

Code: (bash) [Select]
svn: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
I guessed and installed libsqlite3.tcz and now it complains about libldap

Code: (bash) [Select]
svn: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
While I'm still looking for the package that would contain this... 1) what's the easy way to find packages that contain "those" files ?

Also I understand that the dependencies for svn.tcz were not completed. 2) Guessing the maintainer needs help?

Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Missing shared object for svn in new install (current)
« Reply #3 on: May 23, 2018, 01:01:00 AM »
Hi beetle
That's in  openldap.tcz.

Quote
1) what's the easy way to find packages that contain "those" files ?
In the  Apps  utility click the button labeled  Search  and change it to  Provides. Then enter what you are looking for in
the text box to the right.

Offline beetle

  • Newbie
  • *
  • Posts: 14
Re: Missing shared object for svn in new install (current)
« Reply #4 on: May 23, 2018, 01:09:17 AM »
Thanks... Now I know better...
And since I'm all console / no GUI, I just discovered I can do that (search using "Provides") with tce-ab.
Case closed!
Thanks!


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Missing shared object for svn in new install (current)
« Reply #5 on: May 23, 2018, 01:13:42 AM »
Hi beetle
You are welcome.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Missing shared object for svn in new install (current)
« Reply #6 on: May 23, 2018, 01:46:45 AM »
dep file adjusted - thanks for reporting this.

Offline squigley

  • Newbie
  • *
  • Posts: 1
Re: Missing shared object for svn in new install (current)
« Reply #7 on: August 13, 2018, 11:21:38 AM »
Not sure if I should be opening a new thread or replying to this one.

I am trying to install the svn extension however it has a dependency on "open-ldap", except the extension is "openldap", so it is getting a 404 when trying to download/install "open-ldap.tcz".

Is there a way to workaround the dep file?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Missing shared object for svn in new install (current)
« Reply #8 on: August 13, 2018, 11:31:46 AM »
Hi squigley
You could modify your copy of the dependency file until an administrator can fix the copy in the repository.

Offline Nathan_SR

  • Jr. Member
  • **
  • Posts: 82
    • Quick-Save-Live
Re: Missing shared object for svn in new install (current)
« Reply #9 on: August 14, 2018, 11:41:32 AM »

As a means of detecting library dependencies of binaries in all packages, automatically, here is a piece of code, that I found on the internet, after a google search, which can be adapted suitably, to meet our needs :

Code: [Select]
echo ":: $file ..."
        if file $file | grep 'ELF' 1>/dev/null; then
          if ldd $file | grep 'not found' 1>/dev/null; then
            pkg=$(basename $(grep -E "^$(echo $file | sed 's:^/::')$" --recursive /var/log/packages | sed 's/:.*//'))
            libraries=$(ldd $file | grep 'not found' | sed 's/ =>.*//')
            for library in $libraries; do
              in_package="$(slackpkg file-search $library | grep uninstalled | sed 's/^.* //' | xargs)"
              if [ -z "$in_package" ]; then
                in_package="$(grep $library --recursive /var/log/packages | sed -e 's/:.*//' -e 's:.*/::')"
                if [ -n "$in_package" ]; then
                continue
                fi
                in_package="?"
              fi
              echo "$file [$pkg] => $library [$in_package]"
            done
          fi
        fi

This code is from this article : https://gist.github.com/nihilismus/3888a82b6f83eda9a837

Needless to say, loading and un-loading of each extension needs to take place, in a vanilla system, thereby isolating each extension seperately from others, to check if all its dependencies are covered, in its .dep file.

These QA / QC checks can be routinely automated with a custom script like this.

Hope this helps.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Missing shared object for svn in new install (current)
« Reply #10 on: August 14, 2018, 11:54:59 AM »
dep file corrected - thanks for reporting this

Offline Nathan_SR

  • Jr. Member
  • **
  • Posts: 82
    • Quick-Save-Live
Re: Missing shared object for svn in new install (current)
« Reply #11 on: August 14, 2018, 12:45:29 PM »

Hi Juanito,

I guess, my post is not understood properly. I am talking about a way of detecting library dependencies of binaries, either in all Extensions, automatically OR for an individual / future Extension, submitted, on demand.

This will prevent issues like the one in this topic.

Regards,

Nathan SR

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Missing shared object for svn in new install (current)
« Reply #12 on: August 14, 2018, 01:00:48 PM »
Hi Nathan_SR
Here is a thread with a similar script:
http://forum.tinycorelinux.net/index.php/topic,12002.msg63894.html#msg63894

Offline Nathan_SR

  • Jr. Member
  • **
  • Posts: 82
    • Quick-Save-Live
Re: Missing shared object for svn in new install (current)
« Reply #13 on: August 14, 2018, 02:19:19 PM »

Hi Rich,

I read through the entire topic, including the scripts, by Jason W. Great Work. He has prevented overwriting of current libraries by newer extensions, by that script.

What we are talking about in this thread, is to identify "not found" libraries of any Extension, be it already there OR newly submitted ones. Just imagine this: the author of a new extension, may have all libraries at his end, due to his installation of previous extensions and so the new extension works at his end, perfectly. But, when installed and tested on a Vanilla System, by our new users, the .dep file is missing some library dependencies, like the ones you identified in this topic.

So, the script, I am talking about, works in that angle of perfecting, any .dep file, including adding entries to it, automatically.

I hope you are getting my point. Please go through the script I gave above, closely, to understand, how it identifies, "not found" library entires from the ldd output and can re-build the .dep file, automatically.

Regards,

Nathan SR

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Missing shared object for svn in new install (current)
« Reply #14 on: August 14, 2018, 04:52:32 PM »
Hi Nathan_SR,
as I understand it, extension creators are meant to test their extensions on a base vanilla system before submission.
See: http://wiki.tinycorelinux.net/wiki:creating_extensions#testing
Nonetheless, sometimes errors do occur.
Download a copy and keep it handy: Core book ;)