Missing-libs.sh: find ELF files referencing missing libs

http://ino-waiting.gmxhome.de/softwares.html#s17
This script does not use ldd(1), so it isn't vulnerable to related exploits.  It only reads encountered ELF files using readelf(1), parses out the NEEDED and RPATH sections, compares the result to the output of "ldconfig -p" and puts together a report.  It has options to automatically invoke some command (eg. the package manager pacman in our case) and to flag risky RPATHs (containing unsecure paths).
It is also reasonably fast:
$ time missing-libs.sh /bin/ /sbin/ /usr/bin/ /usr/sbin/ /l/bin/ /l/sbin/
lrwxrwxrwx 1 root root 34 Oct 16 18:56 /l/bin/drawtiming -> /opt/drawtiming/_l_/bin/drawtiming
/l/bin/drawtiming: 'libMagick++.so.2' must point to existing file: 'uncached, not existing or missing RPATH!'
/l/bin/drawtiming: 'libMagickCore.so.2' must point to existing file: 'uncached, not existing or missing RPATH!'
real: 4m13.6s user: 1m37.3s sys: 2m32.8s
ie. a few minutes without anything cashed, this  is after booting.
Missing-libs.sh is intended for people who have their own locally compiled programs using distribution supplied libraries.  In verbose mode, it lists all libs some lib or program depends on and recursively the libs these libraries depend on, down to libc, weeding out duplicates.
regards, clemens fischer

Handy! You might also want to look at the rebuildlist script the devs use, which is like this but run on a repo for specific libraries

Similar Messages

  • Imported par file to NWDS, jar file missing. Where find par file structure?

    Hi All,
    We want to implement idle session timeout on the portal.  We found a wiki here on the subject.  In order to implement the solution we need to make adjuestments to com.sap.portal.navigation.masthead.par.bak.  When we import this par file to Netweaver Developer Studio, the libraries and jar files are missing.  So obviously it errors then in portal as files are missing.
    So I could add them manually but I don't know what the file structure is on this par file so don't where to add what.  Does anyone know?
    Also when I export the file after manually adding the missing files, will it export all the files or will it behave the same way as the import and leave out the additional files?
    If anyone could help, I'd really appreciate it,
    Kind regards,
    Liz.

    Hi Bala,
    I thought of that just before you responded and it worked!!  Thanks for the response..
    Regards,
    Liz.

  • Finding  which files are missing

    I had a disk problem and had to recreate my files from backups, but kept all the prviews, and catalog stuff.
    Now there are many missing files that I must find, but going through the entire catalog one by one is a pain.  Is there a way to create a filter or make a smart collection to show the previews of the missing files only?
    Wil

    I'm using 3.2 RC, and there indeed is an option to find mising photos, and it works just great.
    Thanks everyone.
    Wil

  • [Solved] Make systemctl find .service file in /usr/lib/systemd/user?

    I thought this had always worked, but it seems that systemctl cannot see `.service` files that are in my `/usr/lib/systemd/user` folder and I can't figure out why:
    $ locate redshift-gtk.service
    /usr/lib/systemd/user/redshift-gtk.service
    $ systemctl status redshift-gtk
    ● redshift-gtk.service
    Loaded: not-found (Reason: No such file or directory)
    Active: inactive (dead)
    I have already looked at https://wiki.archlinux.org/index.php/Systemd/User which seems to tell me to check sytemctl --user status but that appears to be loaded and working fine, I have a feeling I'm missing something obvious but can't figure out what it is. How do I make systemctl include this directory?
    $ systemctl --user status
    ● michael-work
    State: running
    Jobs: 0 queued
    Failed: 0 units
    Since: Tue 2014-08-05 11:24:32 BST; 11min ago
    CGroup: /user.slice/user-1000.slice/[email protected]
    ├─730 /usr/lib/systemd/systemd --user
    └─731 (sd-pam)
    Any ideas?
    Last edited by crashandburn4 (2014-08-05 11:09:45)

    systemctl --user status redshift-gtk.service

  • {"success":false,"msg":"package file parameter missing"} while trying to upload a package via python

    Hello,
    I try to write a command line script for administrating CQ5 via command line not using curl or wget. When I try to upload a package I get the following error message: {"success":false,"msg":"package file parameter missing"} So what parameter (sure "file") is missing or how do I have to "put it in"?
    To be more precise:
    When using curl, everything works fine, so I looked at the header and body curl sends and rebuilt both via python - without success. And curl does not send a "file" parameter by the way, or I didn't see it.
    Best regards,
    Rene

    For RMA Line. I am assuming you have already created a 'RETURN' type transaction Type, and tied that to the AR transaction type. if yes, then just follow the COPY UTILITY to copy the original line into a RMA line using the Copy Utility as below. Let me know if that was helpful.
    debug_message('Start Copying order..');
    l_copy_rec.api_version_number := 1;
    l_copy_rec.init_msg_list := 'T';
    l_copy_rec.COMMIT := 'T';
    l_copy_rec.Copy_Order := 'T';
    l_copy_rec.hdr_count := 1;
    l_copy_rec.append_to_header_id:= NULL;
    l_copy_rec.hdr_info := 'T';
    l_copy_rec.hdr_type := l_refund_order_type_id;
    l_copy_rec.hdr_descflex := 'T'; -- changed to 'T'; Dipanjan; 03/06/2012
    l_copy_rec.hdr_credit_card_details := 'F';
    l_copy_rec.hdr_scredits := 'T';
    l_copy_rec.hdr_attchmnts := 'T';
    l_copy_rec.hdr_holds := 'F';
    l_copy_rec.manual_order_number:= NULL;
    l_copy_rec.all_lines := 'F';
    l_copy_rec.line_count := l_line_ids.count;
    l_copy_rec.line_type :=&l_refund_line_type_id; -- replace with the 'Return' type transaction type Id
    l_copy_rec.incl_cancelled := 'T';
    l_copy_rec.line_price_mode := 1;
    --l_copy_rec.line_price_date := NULL;
    -- l_copy_rec.line_discount_id := NULL;
    l_copy_rec.line_descflex := 'T';
    l_copy_rec.line_scredits := 'F';
    l_copy_rec.line_attchmnts := 'T';
    l_copy_rec.line_payments := 'T';
    l_copy_rec.return_reason_code := 'WRONG ITEM';
    l_copy_rec.default_null_values:= 'F';
    l_copy_rec.copy_complete_config := 'T';
    l_header_id(1).id1 := &l_orig_header_id;--- replace with original header Id
    Oe_order_copy_util.copy_order( p_copy_rec => l_copy_rec
    ,p_hdr_id_tbl => l_header_id
    ,p_line_id_tbl => l_line_ids
    ,x_header_id => l_query_header_id
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data);
    debug_message('End Copying order..');

  • Can't read avi files "/usr/lib/libncurses.5.4.dylib" is missing

    I got avi files that i can't read with vlc or mplayer. the mplayer error message said that /usr/lib/libncurses.5.4.dylib is missing. i find out this is normal because i am using 10.3. but how can i get it to work? i downloaded the ncurses5.4 package on the web but i didn't manage to install it. thanks
    ibook G4   Mac OS X (10.3.9)  

    I'm having this problem too.
    I upgraded from the mplayer-1.0pre8 version and upon installing mplayerOSX-1.0rc1 whenever I try to run any of my .avi files I get this:
    2007-03-05 17:20:53.587 MPlayer OSX PPC[427] ===================== MPlayer OSX Started =====================
    2007-03-05 17:20:54.118 MPlayer OSX PPC[427] User Default Deleted
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Path to MPlayer: /Applications/MPlayer OSX PPC.app/Contents/Resources/ExternalBinaries/mplayerppc.app/Contents/MacOS/mplayer
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: /Users/******/Movies/Random-File Name.avi
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: -identify
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: -frames
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: 0
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: -ao
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: null
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: -vo
    2007-03-05 17:21:02.080 MPlayer OSX PPC[427] Arg: null
    dyld: /Applications/MPlayer OSX PPC.app/Contents/Resources/ExternalBinaries/mplayerppc.app/Contents/MacOS/mplayer can't open library: /usr/lib/libncurses.5.4.dylib (No such file or directory, errno = 2)
    2007-03-05 17:21:02.181 MPlayer OSX PPC[427] Abnormal playback error. mplayer returned error code: 5
    I have no idea what any of this means. I get the same error after I download the Binary Codex for PowerPC and install that. I deleted all files in anyway related to mplayer, then reinstalled everything, and I get the same result. Any help would be most appreciated.
    For all the problems I've been having I wish I hadn't upgraded. Can't seem to get the old version to work anymore either.

  • Wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    I wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    Try holding down the Command key and dragging the file well off the sidebar.
    Hope this helps.

  • How do I find audio files missing from Mainstage?

    Having downloaded mainstage additional content I find a number of wave files are missing. Example Exs24 'Full Strings Legato.exs' audio file KB-L_legato_p_A(hash)1.wav. How can I find and download them?

    I've downloaded it twice already. You can't download what is not there.

  • So whenever I try to download the newest itunes file it won't let me finish the install process because I'm missing the "Itunes.msi" file whatever that is and I've done some searches but I cannot find the file. Anyone know what to do?

    So whenever I try to download the newest itunes file it won't let me finish the install process because I'm missing the "Itunes.msi" file whatever that is and I've done some searches but I cannot find the file. Anyone know what to do?

    you can try this thread maybe? https://discussions.apple.com/message/16217061#16217061

  • Anyone know of a way to find out if files are missing in my iTunes proactively?

    I know that the circle with the ! shows up if a file is missing, but is there a way to run a diagnostic to find out if files are missing vs. just trying to play each and every song?  I have over 6000 songs and want to verify they are all there.  Any help would be appreciated.

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    tt2

  • Xpinstall.enabled file is missing, where do I find?

    I am issues with add-ons.
    Cannot install: error message as follows:
    Item could not be installed because Firefox could not modify the needed file.
    Now, I am having issues with removal of add-ons, I click remove and click Restart Firefox but the add-ons are not removed.
    The add-ons that I am trying to install are as follows:
    Gmail Checker, Gmail Manager, Gmail S/MIME, Open Gmail with toolbar button, Better Gmail 2, Creatimail Email Themes, Google Shortcuts, Preloader (for Firefox).
    The add-ons I am trying to remove are:
    Date Picker Calendar, Ecleaner, Bulk you Tube Video, Form Control Context Menu, Auto-Sort Bookmarks, Ramback, Open With, Slim Add-ons Manager, Restart Firefox.
    Also xpinstall.enabled file is missing.

    Quote: ''Cannot install: error message as follows: Item could not be installed because Firefox could not modify the needed file.''
    You get this error if an extensions needs to be unpacked in order to work properly.<br />
    Normally extensions are installed with the XPI files renamed to the GUID of the extension, but some extensions also tore data in its extension folder and such extensions only work when unpacked.
    The <b>xpinstall.enabled</b> pref is only present on the <b>about:config</b> page when you add it yoursels.<br />
    When absent then it defaults to true.
    *http://kb.mozillazine.org/Uninstalling_add-ons
    *http://kb.mozillazine.org/Uninstalling_toolbars
    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the extensions.* files (e.g. extensions.sqlite, extensions.ini) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar ("Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    If this hasn't helped then also delete the addons.sqlite file.

  • Help some of my paid files are missing how do I find them? I have a kindle fire [Android]

    Help some of my paid files are missing how do I find them? I have a Kindle fire

    Hi,
    Would you please upgrade to Acrobat DC version 15.0.1 where you can find all your documents in the 'Local' tab in 'Home'?
    Thanks.

  • Missing CF-dvc app-720x480 file won't load

    When opening my FCP project, I get a message referencing a missing CF-dvc app-720x480 file and prompts a search. I can find the file, but am unable to select it as it is ghosted. Now I can't open the project, or even the FCP program itself. Any ideas?

    Make sure your computer is compatible:
    For 64-bit installations of Windows 10 Enterprise Technical Preview, a small number of older PCs will be blocked from installing the preview because they don't support CMPXCHG16b,
    PrefetchW, and LAHF/SAHF. 
    You can not install 64 bit from a 32bit installtion.
    You may want to try a USB key: http://www.microsoft.com/en-us/download/windows-usb-dvd-download-tool

  • I can't update Fiefox since update 10.o1 or 10.02. Every time I try to I get the same message, "7 - ZIP File is missing" I don't know how or where to correct this problem. I'd really appreciate any help that corrects this problem. Thanks sovery much,

    Missing "7-Zip File"
    Hello,
    I haven't been able to update Firefox since 10.01 or 10.02 because every time I try I get the same message the "7-ZIP File" is missing. Then the update fails. I've submitted this problem to Mozilla Firefox and, got an immediate reply of " they are researching your problem".
    Well, you can tell how long that has been. Is there anything I can do, or any where I can go to get the file I need?
    Any constructive help would be very much appreciated! I'm not sure If I'll ever be able to find where this is located. But I do appreciate help just the same.

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Disable your anti-virus software temporarily to see if that makes installing work.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 11.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • FAQ: My files are missing from the Library, or How to reconnect your images?

    What is the Lightroom Library?
    The Library module of Lightroom can be used to arrange, codify, systemize, group, and classify your media. When you import your images and video into the Library, you are adding information about your files to a catalog. Your files remain on your hard drive where they were, unless you are importing them from a camera, in which case the files are copied to your hard drive to a location of your choosing.
    What is a Lightroom catalog?
    The catalog is a database that stores information about the files you've imported into Lightroom. When importing a file, the first thing Lightroom does is collect the file's name and location on the hard drive. If the file has any attached compatible metadata, such as keyword tags, these are imported as well. You can use multiple catalogs and your catalogs can be carried forward from version to version.
    Why does Lightroom say my files are missing?
    Since the catalog database only stores information about your file, and not the file itself, if any of that information is changed outside of Lightroom, the connection to the file is lost. There are three ways this can happen: the file name is changed, the file location is changed, or the file has been deleted. If you need to rename, move, or delete a file, you can do so within the Library module, and then the connection is not lost.
    What is Reconnecting?
    When a file has been renamed, moved, or deleted, the catalog database needs to be updated with that new information. The Reconnection process allows you to point out a file's new name, it's new location, or to delete the database entry on your file if the file no longer exists on your hard drive.
    Where can I learn more?
    The Lightroom Catalog
    Introducing catalogs
    Understand Catalogs in Lightroom 2
    Understanding the Lightroom Catalog System
    Managing Files in Lightroom's Library
    Adobe Help - Importing Photos
    Adobe TV - Importing Photos
    Adobe TV - Using the new import window
    Adobe TV - Importing and Organizing Your Images
    Adobe TV - Importing Existing Images
    Adobe TV - Two ways to Import
    Adobe TV - Moving Files in Lightroom VS the Operating System
    Adobe TV - Moving Folders Around After the Fact
    Adobe TV - Move & Archive Images, and Export a Catalogue
    Video Workshop - The Filter Bar
    Managing Catalogs in Lightroom
    Managing catalogs and files
    Preference and other file locations | Lightroom 4 - 3 - 2 - 1
    Catalog FAQ | Lightroom
    Single or Multiple Catalogs in Lightroom
    Working with Multiple Catalogs
    Merging Individual Lightroom Catalogs into a "Master" Catalog
    Importing an Elements catalog to Lightroom
    Lightroom 3 can't upgrade Photoshop Elements catalogs
    Backing up your catalog
    Exporting a catalog
    How to Migrate LR to Another Computer
    Reconnecting Media in Lightroom
    Locate missing photos
    Dude! Where are my photos?

    Similar happened to me when i moved my iTunes library from XP to Win 8.1. Apps were in iTunes but would not sync to iPhone - could not find oritinal file. Win Xp and 8.1 have different file paths for My Documents and My Music. Locate the folder within iTunes called Mobile Applications. It should have a file with an IPA extension for each application. Add that folder to library. That will refresh the iTunes database so that it knows where to find the apps. I had to do that to my entire library (music, podcasts, etc)

Maybe you are looking for