Sponsored Content
Top Forums Programming Incompatiblity of the code due to CC compiler version mismatch. Post 302743167 by Revathi R on Wednesday 12th of December 2012 08:33:25 AM
Old 12-12-2012
yes ....
All Paths are set

for example i have taken one file and did the ldd
libxml.so of Machine A on Machine C

#ldd libxml.so

libaio.so.1 => /usr/lib/libaio.so.1
libkstat.so.1 => /usr/lib/libkstat.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
librt.so.1 => /usr/lib/librt.so.1
libthread2412d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libthread2412d10g.so
libitc2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libitc2312d10g.so
libfunctor2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libfunctor2312d10g.so
libfunctor_list2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libfunctor_list2312d10g.so
libfunctor_map2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libfunctor_map2312d10g.so
libpointer2512d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libpointer2512d10g.so
libsync2412d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libsync2412d10g.so
libthrexcept2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libthrexcept2312d10g.so
libtrace2312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libtrace2312d10g.so
libstd4112d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libstd4112d10g.so
libtls71012d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libtls71012d10g.so
libdbt6312d10g.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/ln/sunw/libdbt6312d10g.so
libexpat.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/tp/libexpat.so
libWmEncoding.so => /u01/apps/WatchMark/FlexPM/R401BED2G1/pm/lib/wm/libWmEncoding.so
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libmd.so.1 => /usr/lib/libmd.so.1
libscf.so.1 => /usr/lib/libscf.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdoor.so.1 => /usr/lib/libdoor.so.1
libuutil.so.1 => /usr/lib/libuutil.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libm.so.2 => /usr/lib/libm.so.2
/lib/libm/libm_hwcap1.so.2
/platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/libmd_psr.so.1

libxml.so of Machine B on Machine C

#ldd libxml.so

libaio.so.1 => /usr/lib/libaio.so.1
libkstat.so.1 => /usr/lib/libkstat.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
librt.so.1 => /usr/lib/librt.so.1
libthread2412d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libthread2412d10g.so
libitc2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libitc2312d10g.so
libfunctor2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libfunctor2312d10g.so
libfunctor_list2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libfunctor_list2312d10g.so
libfunctor_map2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libfunctor_map2312d10g.so
libpointer2512d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libpointer2512d10g.so
libsync2412d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libsync2412d10g.so
libthrexcept2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libthrexcept2312d10g.so
libtrace2312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libtrace2312d10g.so
libstd4112d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libstd4112d10g.so
libtls71012d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libtls71012d10g.so
libdbt6312d10g.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/ln/sunw/libdbt6312d10g.so
libexpat.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/tp/libexpat.so
libWmEncoding.so => /u01/apps/WatchMark/FlexPM/R39PSLBLD1/pm/lib/wm/libWmEncoding.so
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libmd.so.1 => /usr/lib/libmd.so.1
libscf.so.1 => /usr/lib/libscf.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdoor.so.1 => /usr/lib/libdoor.so.1
libuutil.so.1 => /usr/lib/libuutil.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libm.so.2 => /usr/lib/libm.so.2
/lib/libm/libm_hwcap1.so.2
/platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/libmd_psr.so.1
The .so files could able to link the binaries of same version
But the application when started with some command on command line of C is not initiated
Any solution to the problem is helpful and appreciable.Thanks in advance.

The .so files are taking files from there respective workspaces on same server(R39PSLBLD1,R401BED2G1 these two are diffrent workspaces for code BUild on Machine B, Machine A respectively)

Thanks,
Revathi R

---------- Post updated at 08:33 AM ---------- Previous update was at 07:43 AM ----------

on The Machine A when i ve run the command


#/net/rtp-netapp1/vol/build/nwwls/devspace/thirdparty/SunOS/5.8/Studio8rev2/SUNWspro/bin/fpversion
A SPARC-based CPU is available.
Kernel says CPU's clock rate is 450.0 MHz.
Kernel says main memory's clock rate is 112.5 MHz.
Sun-4 floating-point controller version 0 found.
An UltraSPARC chip is available.
Use "-xtarget=ultra2 -xcache=16/32/1:4096/64/1" code-generation option.
Hostid = 0x80F00203.



On Machine B

/opt/SUNWspro/bin/fpversion
A SPARC-based CPU is available.
Kernel says CPU's clock rate is 2847.9 MHz.
Sun-4 floating-point controller version 0 found.
An UltraSPARC chip is available.
Use "-xtarget=generic -xcache=generic" code-generation option.
Hostid = 0x85D6F7A6.


but any way i am setting in "-xtarget=ultra" in Makefile will it be a problem


Any solution to the problem is helpful and appreciable.Thanks in advance.


Thanks,
Revathi R
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

gcc compiler version?

How do you determine which version of the GNU gcc compiler is on your system? (1 Reply)
Discussion started by: Ben070371
1 Replies

2. Solaris

X Keyboard Extension version mismatch

I want to use calls from the X Keyboard Extension, but get "library version mismatch" error. First one is XkbLibraryVersion(..). This one already returns false. Then I call XkbOpenDisplay(...) which does not return a valid display; return value is XkbOD_NonXkbServer. If I open the display with... (0 Replies)
Discussion started by: hiker04
0 Replies

3. UNIX for Dummies Questions & Answers

What version is the compiler?

Hi ! we have a intel fortran compiler on our computer. How do i find out what version it is ? Thank you, dsmv. (1 Reply)
Discussion started by: dsmv
1 Replies

4. AIX

how to find out the compiler version and OS from binary file

Command to get the Compiler version(xlc/gcc) from the binary on AIX platform. I m searching for the Command, to get the Compiler(xlc/gcc) used to build the binary on AIX. I got two commands used on Linux Platform: - readelf -a <lib> | grep comment - hexdump -C -s 0x49e7b -n 1812 <lib> ... (1 Reply)
Discussion started by: Prajakta
1 Replies

5. AIX

install two different compiler version

Hi all. I have a simple question. There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12? Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
Discussion started by: poldo000
1 Replies

6. Solaris

java version mismatch for normal user and root user

:confused: I installed latest version of java ( jre 1.6) on Solaris Machine ......when I run java -version as root, shows the latest version but when I run java -version as normal user, shows the old / previous version What should I do to fix this ...should show the latest version... (3 Replies)
Discussion started by: frintocf
3 Replies

7. Programming

Choose compiler version

Hi, I'm new, here, and I'm searching for a simple solution for a simple problem. I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2. The fact is that I should be able to... (4 Replies)
Discussion started by: Marcuss
4 Replies

8. AIX

Checking xlc compiler version

Hi, Below is output of lslpp command. bash-3.00# lslpp -L | grep xlC xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3 xlC.cpp 9.0.0.0 C F C for AIX Preprocessor xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

9. Linux

Linking issue due to so version number

Hi all, currently I'm facing a issue in linking a .so file. In my build machine, I've libcrypto.so.6 and there is a softlink as libcrypto.so. In my make file I'm trying to link to the lib using -L -lcrypto and it is success and created my test.exe. When I copy this test.exe to other... (4 Replies)
Discussion started by: vijkrr
4 Replies

10. Shell Programming and Scripting

Need fix for rsync Error due to version mismatch

rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -t -a -x' /web/admin/Transfer/data/ user1@destserver1:/tmp/testf rsync version on sender server is:3.0.9 rsync version on sender server is:3.0.6 Linux sourceserver1 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST... (1 Reply)
Discussion started by: mohtashims
1 Replies
All times are GMT -4. The time now is 02:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy