👤
Home Man
Search
Today's Posts
Register

Post questions about C, C++, Java, SQL, and other programming languages here.

C/C++ shared libraries on Linux.

Tags
dinamyc shared library, ldd

👤 Login to reply

 
Thread Tools Search this Thread
# 8  
Old 04-30-2018
You are not allowed to put relative paths in LD_LIBRARY_PATH. That is a very insecure thing to do.
# 9  
Old 05-01-2018
Quote:
Originally Posted by Corona688
You are not allowed to put relative paths in LD_LIBRARY_PATH. That is a very insecure thing to do.
for further communications please note explicitly that your argument is pure moralistic and not a technical necessity.
# 10  
Old 05-01-2018
Quote:
Originally Posted by dodona
for further communications please note explicitly that your argument is pure moralistic and not a technical necessity.
It's not moralistic. It breaks assumptions built into the linking system, may pollute caches, and very likely isn't portable. What will happen is implementation-dependent. The behavior you get after cd can be surprising, and some systems may refuse relative paths outright.

Let me put it this way: Putting . and .. in PATH also causes real issues in a shell. These paths are supposed to be absolute. When they're not, the cache the shell uses for tab completion may get confused, as now needs to dump it every time you cd and may not do so. A false positive or negative in tab completion is just annoying, in loading libraries it may actually break something.

Just because you can do something doesn't mean it will work the way you think it will, and just because you can do something doesn't make it a smart idea.

Last edited by Corona688; 05-01-2018 at 03:51 PM..
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Self contained shared libraries lkb Solaris 6 12-02-2013 11:05 AM
shared libraries problem rahulsword Red Hat 0 03-21-2012 01:19 AM
Loaded Shared Libraries jhatzics AIX 1 01-18-2011 05:36 AM
Naming conventions for shared libraries in Linux neked UNIX for Advanced & Expert Users 2 11-20-2008 10:36 AM
Shared Libraries- CRITICAL !! archana485 UNIX for Advanced & Expert Users 1 06-30-2008 06:50 AM
how to view loaded shared libraries by running processes in linux princelinux Programming 3 01-17-2007 06:44 AM
Shared Libraries wojtyla Linux 1 09-16-2005 12:14 AM
Clarification about shared Libraries ramkumar_gr UNIX for Dummies Questions & Answers 3 11-17-2003 06:59 AM
shared libraries thalex Programming 2 11-29-2001 08:32 AM
Shared libraries Micky Programming 0 11-12-2001 03:25 AM


All times are GMT -4. The time now is 06:16 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password