LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-16-2006, 06:44 AM   #1
msgforsunil
Member
 
Registered: Jun 2006
Posts: 38

Rep: Reputation: 15
Urgent: libraries not resolved on running ldd command in solaris 9


Running ldd command on gcc has the following output with few libraries being not resolved. How do I fix this? (file not found) This is my Solaris 9 setup.

$ ldd gcc
libiconv.so.2 => (file not found)
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
/usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
 
Old 06-16-2006, 07:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
You must install libiconv. You can d/l the package from sunfreeware and install it using (after extracting it);
Code:
pkgadd -d libiconv-<version>
Regards
 
Old 06-16-2006, 07:24 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,800

Rep: Reputation: 108Reputation: 108
Message says that libiconv is not found.
It may not be installed or configured correct.
 
Old 06-16-2006, 07:49 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,785

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The problem is actually on the gcc binary you are using, which was built with the common but wrong assumption that libiconv is required on Solaris.

You can only fix that by downloading a libiconv library compiled for Solaris, which is clearly useless as libiconv functionality is already in Solaris libc.

gcc bundled with Solaris does not exhibit this issue, but blastwave and other do:
Code:
$ uname -a
SunOS pcjll 5.11 snv_27 i86pc i386 i86pc
$ pathof -a gcc
/opt/csw/gcc3/bin/gcc
/usr/sfw/bin/gcc
$ ldd /opt/csw/gcc3/bin/gcc
        libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2
$ ldd /usr/sfw/bin/gcc
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2
 
Old 06-16-2006, 11:30 AM   #5
msgforsunil
Member
 
Registered: Jun 2006
Posts: 38

Original Poster
Rep: Reputation: 15
thanks to all

Thanks to all for the quick reply. I downloaded and successfully installed the package.


However still I have one more issue. Please see below.
Running "ldd perl" is showing the following output.

libperl.so => (file not found)
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1

How do i resolve "libperl.so" issue? How do i know its part of which package? After installing a patch, is there a way to verify the .so file is part of which package?
 
Old 06-16-2006, 11:46 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,785

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I think I just answered that one on another thread ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 04:19 PM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 10:18 PM
about ldd -d jingle_mj Programming 4 09-10-2004 07:25 AM
about ldd -d jingle_mj Linux - General 2 08-25-2004 07:30 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration