Cant start xampp: wrong version of libresolv.so.2?

Problems with the Solaris version of XAMPP, questions, comments, and anything related.

Cant start xampp: wrong version of libresolv.so.2?

Postby knowak » 10. March 2012 06:20

I just installed xampp on my Sunfire V100 running a fresh install of Solaris 10. Upon starting xamp I get the following:

# ./xampp start
Starting XAMPP for Solaris 1.7.7...
XAMPP: Starting Apache...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: XAMPP-MySQL is already running.
XAMPP: A FTP daemon is already running.
XAMPP for Solaris started.

So, looking at the logs...

# cd logs
# ls
access_log error_log suexec_log
apachestart.log ssl_request_log
# cat apache*
httpd: Syntax error on line 82 of /opt/xampp/etc/httpd.conf: Cannot load /opt/xampp/modules/mod_ldap.so into server: l
d.so.1: httpd: fatal: libresolv.so.2: open failed: No such file or directory
# ldd /opt/xampp/modules/mod_ldap.so
libldap-2.4.so.2 => /opt/xampp/lib/libldap-2.4.so.2
liblber-2.4.so.2 => /opt/xampp/lib/liblber-2.4.so.2
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /opt/xampp/lib/libgcc_s.so.1
libresolv.so.2 => /lib/libresolv.so.2
libresolv.so.2 (SUNW_2.2.2) => (version not found)
libgen.so.1 => /lib/libgen.so.1
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libsasl.so.1 => /usr/lib/libsasl.so.1
libssl.so.1.0.0 => /opt/xampp/lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /opt/xampp/lib/libcrypto.so.1.0.0
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libdl.so.1 => /lib/libdl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
/platform/SUNW,UltraAX-i2/lib/libmd_psr.so.1
#

Yes i have the library:

#
#
# find / -name libresolv.so.2 -print
/usr/lib/sparcv9/libresolv.so.2
/usr/lib/libresolv.so.2
/lib/sparcv9/libresolv.so.2
/lib/libresolv.so.2

...and its in the search path...
# crle

Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /lib:/usr/lib:/usr/local/lib:/opt/xampp/lib:/usr/lib/sparcv9
LF): /lib/secure:/usr/lib/secure (system default)


the ldd output seems to tell me that the version of libresolv in Solaris 10 isn't compatible with what xampp needs. Can anyone advise/confirm?

Thanks!
knowak
 
Posts: 2
Joined: 10. March 2012 06:07
Operating System: Solaris SPARC

Re: Cant start xampp: wrong version of libresolv.so.2?

Postby anselm » 15. March 2012 08:10

Hi,
i've installed the Version 1.7.7 on my Sun Sparc. It works.
The ldd mod_ldap.so command shows the following....
libldap-2.4.so.2 => /opt/xampp/lib/libldap-2.4.so.2
liblber-2.4.so.2 => /opt/xampp/lib/liblber-2.4.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libgen.so.1 => /usr/lib/libgen.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libsasl.so.1 => /usr/lib/libsasl.so.1
libssl.so.1.0.0 => /opt/xampp/lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /opt/xampp/lib/libcrypto.so.1.0.0
libmp.so.2 => /usr/lib/libmp.so.2
libmd.so.1 => /usr/lib/libmd.so.1
libscf.so.1 => /usr/lib/libscf.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libdoor.so.1 => /usr/lib/libdoor.so.1
libuutil.so.1 => /usr/lib/libuutil.so.1
libm.so.2 => /usr/lib/libm.so.2
/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1

The find command shows the following...
find / -name "libresolv*"
/usr/lib/sparcv9/libresolv.so
/usr/lib/sparcv9/libresolv.so.2
/usr/lib/libresolv.so
/usr/lib/libresolv.so.1
/usr/lib/libresolv.so.2
/lib/sparcv9/libresolv.so
/lib/sparcv9/libresolv.so.2
/lib/libresolv.so
/lib/libresolv.so.1
/lib/libresolv.so.2

An idea is to check the all soft links...
ls -l /usr/lib/libresolv.so
/usr/lib/libresolv.so -> ../../lib/libresolv.so.2

ls -l /lib/libresolv.so.2
/lib/libresolv.so.2

Maybe a double soft link.....
Best Regards
anselm
 

Re: Cant start xampp: wrong version of libresolv.so.2?

Postby knowak » 15. March 2012 20:33

Thanks for your reply. What version of Solaris 10 are you running? I am still running U4 but Im about to upgrade to U8. There was a patch created in 09 to fix libresolv.so.2...Im hoping that will fix it. There are basically two versions of libresolv.so.2 on my machine - the one in /user/lib and the one in /usr/lib/sparcv9. As a test, I directly linked to each of them in /opt/xampp/lib, and neither of them worked, so Im guessing that the soft link isnt the issue.
knowak
 
Posts: 2
Joined: 10. March 2012 06:07
Operating System: Solaris SPARC

Re: Cant start xampp: wrong version of libresolv.so.2?

Postby anselm » 16. March 2012 12:12

Hi,
we have SunOS 5.10 Generic_147440-09.
Version of libresolv.so.2 -> libresolv.so.230
ls -l /lib/libresolv.so.2
-rwxr-xr-x 1 root bin 345828 Aug 7 2009 /lib/libresolv.so.2

Best Regards from Germany
anselm
 

Re: Cant start xampp: wrong version of libresolv.so.2?

Postby yussel » 20. April 2012 01:06

Hi all
It seems to be that the problem is related to version checking. I was running into the same exact problem with my Solaris 10 XAMPP installation so I goggled and found this trick:
# export LD_NOVERSION=1
I did this and it worked fine
but remember when you finish installing Apache you must
return the LD_NOVERSION to its default value
#unset LD_NOVERSION
I hope this works for you
yussel
 
Posts: 1
Joined: 20. April 2012 00:58
Operating System: Solaris


Return to XAMPP for Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron