Linking issue due to so version number


 
Thread Tools Search this Thread
Operating Systems Linux Linking issue due to so version number
# 1  
Old 06-20-2014
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 machine, there libcrypto.so is present but it is looking for libcrypto.so.6. Due to which the exe is not coming up.

Eg: ldd -r test.exe

libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00f69000)

But my as per my understanding this should point to
libcrypto.so => /usr/lib/libcrypto.so.10 (0x00f69000)

How to resolve this problem and what is happening internally.

Thanks
Vijay

Last edited by vijkrr; 06-20-2014 at 06:34 AM..
# 2  
Old 06-25-2014
Long shot - Check the contents of /etc/ld.so.conf and run ldconfig to update the shared library symbolic links.
This User Gave Thanks to fpmurphy For This Post:
# 3  
Old 08-20-2014
I have this linking issue somewhere in the past. The guy is right you should check the contents.
# 4  
Old 08-20-2014
Linking statically is one way to get around portability issues like this. The executable image file is larger but not dependent on what libraries reside on the destination machine.

Link Options - Using the GNU Compiler Collection (GCC)
# 5  
Old 08-20-2014
Also check your LD_LIBRARY_PATH and LD_RUN_PATH envvals on both machines.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Beginners Questions & Answers

DHCP Issue Possibly due to Hardware Clock?

Hello All, OS: openSUSE 13.1 (Bottle) (armv7hl) PC: CuBox-i (*mini-pc) The PC in question is a CuBox-i mini-pc. Since this PC doesn't have a battery, everytime the PC reboots the hardware clock is reset back to the same date every time, which is "2014-07-08 00:00". I have NTP configured... (5 Replies)
Discussion started by: mrm5102
5 Replies

3. SCO

Unsuccessful install due to unrecognized disk issue

Dear Community! i try to instaled the sco 6 in hp proliant ML350g8 but unsucces, the trouble when i do instaled it undetected hardisk please help me :(:o (7 Replies)
Discussion started by: mnr
7 Replies

4. Programming

Incompatiblity of the code due to CC compiler version mismatch.

Incompatiblity of the code due to CC compiler version mismatch. I have a machine with Machine A-- Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8) CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07 we have compiled C++... (36 Replies)
Discussion started by: Revathi R
36 Replies

5. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

6. UNIX for Dummies Questions & Answers

need help in fixing the hangup issue due to nohup command

Hi All, I am very new to unix and to this forum.Suggest me a solution in fixing the below issue. Actually ia m executing java program through script. The command is like java pgm & The above cmd runs the java program continuous as a background thread. This script is executed from a... (1 Reply)
Discussion started by: sahan
1 Replies

7. UNIX for Advanced & Expert Users

Linking issue under AIX

Hello everyone: I've made a program for AIX, but it's unable to run, by running ld I got the following screen: ld MyApp ld: 0711-317 ERROR: Undefined symbol: getenv ld: 0711-317 ERROR: Undefined symbol: _iob ld: 0711-317 ERROR: Undefined symbol: fprintf ld: 0711-317 ERROR: Undefined... (1 Reply)
Discussion started by: edgarvm
1 Replies

8. Shell Programming and Scripting

Date increment issue due to day light saving

The date increment worked fine until date reached 25/10, which is DLS change date. /bin/date --date="091025 1 day" +%y%m%d; the output is 091025 Is this a bug or something missing from the code ! (3 Replies)
Discussion started by: rajbravo
3 Replies

9. Red Hat

not able to Send mail due to Security Issue

Hi All, I am trying to send a mail from my application through SMTP in solaris 9 but unable to send a mail.Same code is able to send mail in Windows. As unix has more security,So as per me,it is due to security reason.. So please let me know what I need to do to send a mail properly. what... (5 Replies)
Discussion started by: smartgupta
5 Replies

10. Programming

Linking problem while linking to shared library

Hi I'm getting ld: fatal: option -h and building a dynamic executable are incompatible ld: fatal: Flags processing errors When I run ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o after running gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c I'm... (6 Replies)
Discussion started by: laho
6 Replies
Login or Register to Ask a Question