WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ldap.so / openssl.so missing dependencies?  (Read 3240 times)

Offline kisero

  • Newbie
  • *
  • Posts: 3
ldap.so / openssl.so missing dependencies?
« on: November 28, 2015, 03:34:42 PM »
hello,

im new to tiny core so i might well be missing a few things. i noticed ldap was not working with php5+apache2 extension.

i noticed this apache log:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20100525/ldap.so' - libldap-2.4.so.2: cannot open shared object file

so i tried:
tc@box:~$ ldd /usr/local/lib/php/extensions/no-debug-zts-20100525/ldap.so
   linux-gate.so.1 (0xb7725000)
   libldap-2.4.so.2 => not found
   liblber-2.4.so.2 => not found
   libpthread.so.0 => /lib/libpthread.so.0 (0xb76fb000)
   libc.so.6 => /lib/libc.so.6 (0xb75ce000)
   /lib/ld-linux.so.2 (0xb7728000)
tc@box:~$

now .. i cant honestly find any extension for those two missing libraries (libldap-2.4.so.2 & liblber-2.4.so.2) ... i tried tce-ab search and provide options and nothing pops up..!

then looking at logs further , i see other modules also have trouble:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20100525/openssl.so' - /usr/local/lib/php/extensions/no-debug-zts-20

but this time, liking looks well !

tc@box:~$ ldd /usr/local/lib/php/extensions/no-debug-zts-20100525/openssl.so
   linux-gate.so.1 (0xb77b5000)
   libcrypto.so.1.0.0 => /usr/local/lib/libcrypto.so.1.0.0 (0xb75df000)
   libssl.so.1.0.0 => /usr/local/lib/libssl.so.1.0.0 (0xb757c000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xb755d000)
   libc.so.6 => /lib/libc.so.6 (0xb7430000)
   libdl.so.2 => /lib/libdl.so.2 (0xb742b000)
   libz.so.1 => /usr/lib/libz.so.1 (0xb741a000)
   /lib/ld-linux.so.2 (0xb77b8000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7405000)
tc@box:~$

what could i try?

thanks everyone
esteban


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: ldap.so / openssl.so missing dependencies?
« Reply #1 on: November 29, 2015, 12:56:11 AM »
You don't mention which architecture and version of tinycore you're using?

The missing files are provided by the openldap extension in the x86 tc-4.x repo:

http://repo.tinycorelinux.net/4.x/x86/tcz/openldap.tcz.info

If you're using tc-6.x, maybe you could manually download this extension and test it - if it works, it can be copied to the tc-6.x repo.

Offline kisero

  • Newbie
  • *
  • Posts: 3
Re: ldap.so / openssl.so missing dependencies?
« Reply #2 on: November 29, 2015, 08:35:30 AM »
hi, im copy pasting since im new into all this and i might do things wrong.

downloaded 4.x packages as i could not find their equivalents in 6.x:

tc@box:~$ wget http://repo.tinycorelinux.net/4.x/x86/tcz/openldap.tcz
tc@box:~$ wget http://repo.tinycorelinux.net/4.x/x86/tcz/libgcrypt.tcz
tc@box:~$ wget http://repo.tinycorelinux.net/4.x/x86/tcz/cyrus-sasl.tcz

from 6.x i installed:

I'm still missing a few:

tc@box:~$ ldd /usr/local/lib/php/extensions/no-debug-zts-20100525/ldap.so  | grep not
   libdb-5.1.so => not found
   libgcrypt.so.11 => not found
   libdb-5.1.so => not found
   libgcrypt.so.11 => not found

I'm running:

tc@box:~$ ls /usr/local/tce.installed/ | grep apa
apache2
apache2-dev
apache2-mod-php5
apache2-mod-php5-dev
tc@box:~$ ls /usr/local/tce.installed/ | grep php
apache2-mod-php5
apache2-mod-php5-dev

tc@box:~$ version
6.4.1

tc@box:~$ uname -a
Linux box 3.16.6-tinycore #777 SMP Thu Oct 16 09:42:42 UTC 2014 i686 GNU/Linux

any idea juanito? thanks btw!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: ldap.so / openssl.so missing dependencies?
« Reply #3 on: November 29, 2015, 08:43:04 AM »
tc-6.x contains later versions of db and libgcrypt so either you'll need to change things manually or recompile php5 on tc-6.x

Offline kisero

  • Newbie
  • *
  • Posts: 3
Re: ldap.so / openssl.so missing dependencies?
« Reply #4 on: November 29, 2015, 11:01:44 AM »
yep i saw that recompile option coming !

although i would like to play with it, i have no time for that now :-(

I'll post a message somewhere else in this forum to see if anyone is willing to fix things for the benefit of everyone at a "donation" fee. we are an open-source project (www.eramba.org) looking at distributing our tgz in a small vm ready iso and this distro looks really nice!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: ldap.so / openssl.so missing dependencies?
« Reply #5 on: November 29, 2015, 12:32:36 PM »
You could either use tc-4.x or rename libdb and libgcrypt from tc-4.x to use them in tc-6.x after first adjusting the apache2/php5 dep files accordingly.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: ldap.so / openssl.so missing dependencies?
« Reply #6 on: November 30, 2015, 01:40:06 AM »
cyrus-sasl copied from tc-4.x to tc-6.x repo.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: ldap.so / openssl.so missing dependencies?
« Reply #7 on: November 30, 2015, 01:50:48 AM »
..so now all that is needed is to re-compile openldap and apache2-mod-php5.

You can drop a pm to the apache2-mod-php5 maintainer requesting an update, but the openldap maintainer is mia and that is required first.

As per blfs, compiling openldap doesn't look too difficult...