10-23-2008
Quickly move an executable between systems with ELF Statifier
10-23-2008 01:00 AM
Shared libraries that are dynamically linked make more efficient use of disk space than those that are statically linked, and more importantly allow you to perform security updates in a more efficient manner, but executables compiled against a particular version of a dynamic library expect that version of the shared library to be available on the machine they run on. If you are running machines with both Fedora 9 and openSUSE 11, the versions of some shared libraries are likely to be slightly different, and if you copy an executable between the machines, the file might fail to execute because of these version differences. With
ELF Statifier you can create a statically linked version of an executable, so the executable includes the shared libraries instead of seeking them at run time. A staticly linked executable is much more likely to run on a different Linux distribution or a different version of the same distribution.
Source...
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Write a nawk script that will produce the following report:
***FIRST QUARTERLY REPORT***
***CAMPAIGN 2004 CONTRIBUTIONS***
-------------------------------------------------------------------------
NAME PHONE Jan | ... (5 Replies)
Discussion started by: p.palakj.shah
5 Replies
2. UNIX for Advanced & Expert Users
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies
3. Shell Programming and Scripting
Please help! I am preparing a Linux Script to move windows executable files from samba directory to quarantine directory. For safety, will use "file" command to determine if its executable. Anyone can help? Below is my trial script, but it just move everything, including non-executable.. any wrong... (2 Replies)
Discussion started by: gavintam
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have to move files between file systems but files in new file system must have the same attributes as in old one (privileges, time stamp etc).
Which tool is best :
- ufsdump / ufsrestore
- tar
- cpio
- pax
- dd
- mv
Or maybe there is sth else, you suggest to use.
Thx for help (5 Replies)
Discussion started by: presul
5 Replies
5. What is on Your Mind?
I have been wondering how do Systems Administrators do the jump into Systems Engineering? Is it only a matter of time and experience or could I actually help myself get there?
Opinions? Books I could read?
Thanks a lot for your help! (0 Replies)
Discussion started by: svalenciatech
0 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have several hundred subdirectories which contain input files for a binary executable. I need to get into each of the subdirectories, run the executable and then move to the next one and repeat the process. What is the best way to do this?
Arbitrarily my file structures look like... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies
7. UNIX for Advanced & Expert Users
Hi,
We have joined Linux systems ( RHEL 6.3 ) to Windows AD ( 2008 R2 ).
System has been placed in the deafault location 'Computers' in AD. Then we manually move the systems to the respective OU.
Is there any option to specify OU location at the time of domain joining ?
We are using... (1 Reply)
Discussion started by: snjksh
1 Replies
LEARN ABOUT DEBIAN
xkblibraryversion
XkbLibraryVersion(3) XKB FUNCTIONS XkbLibraryVersion(3)
NAME
XkbLibraryVersion - Determines the compatibility of a library at runtime.
SYNOPSIS
Bool XkbLibraryVersion (int *lib_major_in_out, int *lib_minor_in_out);
ARGUMENTS
lib_major_in_out
Specifies and returns the major Xkb library version.
lib_minor_in_out
Specifies and returns the minor Xkb library version.
DESCRIPTION
If an application is dynamically linked, both the X server and the client-side X library must contain the Xkb extension in order for the
client to use the Xkb extension capabilities. Therefore a dynamically linked application must check both the library and the server for
compatibility before using Xkb function calls. A properly written program must check for compatibility between the version of the Xkb
library that is dynamically loaded and the one used when the application was built. It must then check the server version for compatibility
with the version of Xkb in the library.
If your application is statically linked, you must still check for server compatibility and may check library compatibility. (It is possi-
ble to compile against one set of header files and link against a different, incompatible, version of the library, although this should not
normally occur.)
Pass the symbolic value XkbMajorVersion in lib_major_in_out and XkbMinorVersion in lib_minor_in_out. These arguments represent the version
of the library used at compile time. The XkbLibraryVersion function backfills the major and minor version numbers of the library used at
run time in lib_major_in_out and lib_minor_in_out. If the versions of the compile time and run time libraries are compatible, XkbLi-
braryVersion returns True, otherwise, it returns False.
In addition, in order to use the Xkb extension, you must ensure that the extension is present in the server and that the server supports
the version of the extension expected by the client. Use XkbQueryExtension to do this, as described in the next section.
RETURN VALUES
True The XkbLibraryVersion returns True if the versions of the compile time and run time libraries are compatible.
False The XkbLibraryVersion returns False if the versions of the compile time and run time libraries are not compatible.
SEE ALSO
XkbMajorVersion(3), XkbMinorVersion(3), XkbQueryExtension(3)
X Version 11 libX11 1.5.0 XkbLibraryVersion(3)