Troubles building on solaris 9 and executing on solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Troubles building on solaris 9 and executing on solaris 10
# 1  
Old 11-23-2010
Troubles building on solaris 9 and executing on solaris 10

Hi,

I have to build an application on solaris 9 which is supposed to run on solaris 10 computers.

I heard that solaris 9 builds should run on solaris 10 without any troubles. However, there is some trouble.

Calling ldd on the programm reveals that "libgcc_s.so.1" and "libstdc++.so.6" are not found. Ok, I could add the rpath to the linker line, but to which directory? On my solaris 10 test system, there are different versions of these libraries in different (not very common) directories. Where are those guys located by default? Can I rely on that? What other options do I have?

A more basic question is, why does ldd give very different results on solaris9 and solaris10, when called on the same file?

Thanks for your help?
Mike
# 2  
Old 11-23-2010
Quote:
Originally Posted by mikehammer80
Calling ldd on the programm reveals that "libgcc_s.so.1" and "libstdc++.so.6" are not found. Ok, I could add the rpath to the linker line, but to which directory?
AFAIK, gcc libraries aren't standard on Solaris 9. Where are these libraries located on your Solaris 9 machine ?
Quote:
On my solaris 10 test system, there are different versions of these libraries in different (not very common) directories. Where are those guys located by default? Can I rely on that? What other options do I have?
Pick the version expected by your binary.
Quote:
A more basic question is, why does ldd give very different results on solaris9 and solaris10, when called on the same file?
Because ldd recursively resolve dependencies. To get what the binary requires, you can use that command:
Code:
elfdump -d command | grep NEEDED

# 3  
Old 11-23-2010
The elfdump shows (on both platforms)
elfdump -d *** | grep NEEDED
[0] NEEDED 0x3eb76 libsocket.so.1
[1] NEEDED 0x3eb8e libnsl.so.1
[2] NEEDED 0x3ebaa libpthread.so.1
[3] NEEDED 0x3ebc3 libgcc_s.so.1

Quote:
AFAIK, gcc libraries aren't standard on Solaris 9. Where are these libraries located on your Solaris 9 machine ?
libgcc_s.so.1 location is /usr/local/lib/sparcv9/libgcc_s.so.1
# 4  
Old 11-23-2010
From the somewhat bogus directory, I would suspect these libraries to come from sunfreeware.com. You might want to pick the missing libs there for Solaris 10 too.
This User Gave Thanks to jlliagre For This Post:
# 5  
Old 11-23-2010
yes, thanks for your help.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue executing grep command on Solaris

more jdbc.xml <name>Fast_ds/DataSource</name> <property> <name>user</name> <value>COL_USER</value> </property>Command 1: grep -A1 '<name>user</name>' jdbc.xml|grep -v '<name>user</name>'|sed 's/\(<value>\|<\/value>\)//g'| sed -e 's/^*//'Output: Command 2: grep... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. Solaris

Make error while building perl on Solaris 10

Hi, I am trying to build per 5.20.1 on solaris 10 and getting below compilation error. Creating Makefile.PL in cpan/Archive-Tar for Archive::Tar Running Makefile.PL in cpan/Archive-Tar ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none... (1 Reply)
Discussion started by: vikrambhimbar
1 Replies

3. Solaris

Building X11 applications on Solaris 10

Hi all, I'm trying to verify that I can build x applications on Solaris 10 and am using xcalc & xeyes as my test applications: git://anongit.freedesktop.org/xorg/app/xcalc git://anongit.freedesktop.org/xorg/app/xeyes Running autogen.sh on this fails with: error: must install xorg-macros... (7 Replies)
Discussion started by: testers1717
7 Replies

4. Solaris

Advanced Sysconfig use when building non-global zones in Solaris 11

I'm in an LDOM. I'm building non-global IP exclusive zones. I am using manifests and profiles to configure the system after install so I don't have to tab through the sysconfig startup dialog everytime I boot a system the first time for settings that never change (DNS, regional data, NTP etc). I... (0 Replies)
Discussion started by: os2mac
0 Replies

5. Solaris

Solaris 11 x86 installation troubles - 8G disk limit

Hi, I am trying to install Solaris 11 on an X86 machine. I am using the text install iso image burned to an optical disk. The system contains a single 500G SATA drive. When the system attempts to detect local disks, it reports that the disk only has a capacity of 8GB. How do I get... (2 Replies)
Discussion started by: jpoc
2 Replies

6. Solaris

building solaris-based enterprise router-firewall project

hi guys, its been a while since my last visit here, could not keep up the pace on this ever changing industry :) i'd just doing my home research under vmware to make a solaris-based router-firewall using zones - doing a lot of reading about zones & review solaris zone functionality. and... (4 Replies)
Discussion started by: stdout
4 Replies

7. Solaris

Building cdrkit on Solaris 8 generates a linker problem

I'm trying to build cdrkit-1.1.9 but have the same problem with 1.1.6 as well. The reason I need cdrkit is that it has an extended Joilet that mkisofs doesn't have but if anyone has another program that can provide this that might be a work around I can use. The problem I'm having is when I... (1 Reply)
Discussion started by: dxk3355
1 Replies

8. Shell Programming and Scripting

Errors while executing cmds in sun solaris

Hi All, I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases. for example mysql > show databases; It displayed as follows. exampledb1 ... (1 Reply)
Discussion started by: dbsurf
1 Replies

9. Solaris

Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is sailfish@st-kvar02 -> uname -a SunOS st-kvar02 5.10... (7 Replies)
Discussion started by: nalina.hv
7 Replies
Login or Register to Ask a Question