Ldd does not show dependency on libC/ libCrun or libCstd

When I do an ldd on my executables (built using WS6U2), it does not show that it depends on libC/ libCrun or libCstd. But the executables use the iostream. More over, one of them fails with the below message;
ld.so.1: Rules: fatal: relocation error: file /opt/versant/cur_rel/lib/libcxxcls.so: symbol __1cDstdEcout_: referenced symbol not found
I initially thought the libCstd is not picked up as its path was not set in LD_LIBRARY_PATH. But setting it up right did not fix the issue. I finally had to preload libCstd using LD_PRELOAD to get the executable run.
My questions are;
1) Was the symbol __1cDstdEcout__ defined is some other library earlier and got moved to libCstd?
2) Why ldd does not list any of the C++ libraries (libC, libCrun or libCstd)?
3) What do libC, libCrun and libCstd provide? Does it provide any of the STL classes? I guess most of the STL comes from the headers itself (since most of them are templates)
Edited by: satheeshpaul on Dec 18, 2008 10:12 PM

satheeshpaul wrote:
2) Why ldd does not list any of the C++ libraries (libC, libCrun or libCstd)?Maybe because they are linked statically?
There's more reliable way to check:
$ elfdump -d a.out  | grep NEED
       [0]  NEEDED            0x215               libCstd.so.1
       [1]  NEEDED            0x22d               libCrun.so.1
       [2]  NEEDED            0x269               libm.so.2
       [3]  NEEDED            0x243               libc.so.1If you don't see some library here, then a.out does not declare its dependency on that library. It might get loaded if some other library requests it, but in case of run-time support libraries, executable must declare dependency on those libraries (libCrun and such).
Now, it is very hard to determine whether or not your app was once linked with, say, libCrun statically. If you suspect that this is the case, you need to find a symbol unique to that library and try looking for it in a.out; if it is defined in a.out, it means that libCrun was linked statically; if you don't find it, well, it usually means close to nothing...
One more note: it is an error to mix statically compiled C++ run-time support libraries with their dynamic versions; in other words, if a.out was once linked with libCrun.a, for example, and libCrun.so gets loaded during program execution (it can happen for various reasons, one example is a.out is linked with some shared library that declares dependency on libCrun.so), things might get rough.
3) What do libC, libCrun and libCstd provide? Does it provide any of the STL classes? I guess most of the STL comes from the headers itself (since most of them are templates)You are right, most of STL comes from headers, but not all of STL. It's easy to find out what those libraries provide by looking at global symbols they export:
$ elfdump -s /usr/lib/libCstd.so.1 | c++filt  | lessAlso, each library is described in User's Guide (highly recommended reading when you have particular question on Sun Studio C++ compiler):
http://docs.sun.com/app/docs/doc/806-7991
In short,
Crun - exception support, memory management, etc.
Cstd - STL
iostream - classic iostreams
C - Crun+iostream for compat=4 mode
satheeshpaul wrote:
I initially thought the libCstd is not picked up as its path was not set in LD_LIBRARY_PATH. But setting it up right did not fix the issue.Compiler records location of run-time support libraries when it build executable, so LD_LIBRARY_PATH is never needed unless you want to temporarily substitute one library for another for debugging purposes, for example.
satheeshpaul wrote:
I finally had to preload libCstd using LD_PRELOAD to get the executable run.You need to look at the way that executable was build; the problem must be in the build process somewhere. If you need help with that, please post command line used for final link step.

Similar Messages

  • My itunes library does not show up in apple tv

    I am using a Dell computer and my itunes library does not show up in my apple tv under computer.  I am sure I just need to change settings in my computer to allow access to apple tv but I do not know how to do that. Any help?  My apple tv has internet connection. Thank you

    Welcome to the Apple Community.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option which is revealed in the iTunes app on your iOS device by tapping the more button at the bottom of the screen.
    If you want your purchases to download automatically in future, enable automatic downloads at iTunes > preferences > store.

  • Yesterday I  reset my settings on my  iphone 4 to correct another problem. Today I am unable to connect to itunes to sync my phone. The device does not show up on the screen. What can I do?

    Yesterday I reset my settings on my iphone 4 to correct a problem. Today I am unable to connect to itunes to sync my phone. The device does not show up on the screen. What can I do?

    Best practices says plug the USB cable into the computer, then plug the 30 pin connector into the iPhone.
    If everything is working correctly, you should be able to plug the iPhone in at any time. Before or after opening iTunes.
    Depending on what settings are selected in iTunes, the program may or may not automatically open when you connect the device.

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Ipod Classic does not show up in iTunes and will not sync

    My ipod classic does not show up as a device in iTunes. It was working just a week or so ago, but each time I plug it in the screen says connected, then switches to Ejected, you can now disconnect, then says OK to disconnect and then goes to the home screen. Can someone advise me on what is going on and what I need to do to fix it! Thanks!!!

    Hello MSavaski,
    Thanks for the question. Depending on your symptoms, the following articles may provide a resolution to your issue:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    iPod not recognized in 'My Computer' and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Also, the following troubleshooting assistant may be helpful:
    Apple - Support - iPod - iPod classic Troubleshooting Assistant
    http://www.apple.com/support/ipod/five_rs/classic/
    Thanks,
    Matt M.

  • I am installing snow leopard on a new drive unformatted but it does not show the disk to install it on.? do i need to format first with one partition?

    I have installed a new drive on my mac book and more ram but the snow leopard install asks which to install the system on but then does not show the drive.
    do I have to partition it and name it first. -- if so just one partition?

    Do this:
    Drive Preparation
    1.  Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    When formatting has completed quit DU and return to the installer.  Complete the OS X installation.

  • Does not show my hard drive when i try to install Tiger...

    I have a Powerbook G4 that has no operating system installed yet, so when i try to install Tiger, i have to put the DVD in while booting up. I went to the installing screen, and i agreed to everything and all, but when i got to the part where it asks where to install, my hard drive does not show up. I went to DISK UTILITY and chose to erase the entire hard drive (I dont have anything on it yet) and I also chose to repair it. It didnt have any needed repairs, so I went back to the install screen, and it still didnt show the hard drive as an option. It is a 55.9 GB hard drive, and when i erase it, the size does not change, so I know there is nothing on it yet. In Disk Utility, the details for the Hard drive says it is named CSD CAT060L, it is a Disk, the media type is Generic, and it is Internal. I have tried this many times, but the exact same thing happens. My DVD for Tiger was unopened, and new out of the box. If you need any information about what happens or anything, just ask.
    Thanks a bunch, Eshan.

    Try this:
    1. Boot from your Tiger DVD. After the installer loads select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.

  • HT201272 my quick link to previously purchased does not show movies. Why? I am trying to relocate a movie I have "lost"

    I am trying to relocate a movie I have lost on my itunes.  My quick link to purchased items on itunes does not show movies. How can I get my movie back. I have part of the download, the extras but movie is missing. only purchased in Novermber2011 but I have changed computer. The other one died. Any ideas.

    Subsequent movie downloads are currently only available in the USA and only some of those are (depending upon studio).
    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • VC - new characteristic does not show in PS BOM explosion / CU50

    Hello World,
    we added a new Characteristic to a class that is basis for a Material BOM explosion. In transaction CU50, the new characteristic can be configured by selecting its single values and the result shows up correctly in the BOM explosion. 
    Unfortunately, it is does not show up in the BOM explosion result of the SAP PS module @ Network Activity where the explosion is done concerning to our biz process. All other characteristics explode properly in the PS BOM explosion. I have no clue about the difference of the newly added characteristic is that makes it behave differently (only) in the PS system, not showing up in the result.
    In CU50 @ Menu Extras @ Result I found a trace of the difference, but cannot interpret it due to a lack of documentation of the resulting screen that is entitled "Configuration : Result". Here, in table "Detail List", only the faulty new characteristics show additional extra Dependency entries with a light green background that cannot be found with all other characteristics in the same table. These extra entries can be drilled down by double-click and produce a pop-up window that shows some status information and the dependencies source code.
    Question: what do the extra entries of dependencies say, why are they shown and why not at other characteristics?
    By understanding this difference I hope to find the reason why these characteristics are not exploded in the PS module (which is my primary question).
    Thank you for a helpful answer!
    Marcus

    Hi Jong - Moon cho,
    Please check following setting,
    1.Consider setting the Individual/Collective indicator to 2. (MRP 4 view)
    2.In order to get dependent requirements from the planning of configurable materials, components should not be configured with strategy group 70 or 59.
    Also refer the bellow link
    http://help.sap.com/saphelp_47x200/helpdata/en/cb/7f9b7043b711d189410000e829fbbd/frameset.htm
    Regards
    Girish

  • SFW5 (BF) does not show me Check / Activate Changes button in ECC 6 EHP4

    Hello All,
    i am facing a strange problem, i want to activate business Function 'HCM, Core Processes in Talent Management' (BF name 'HCM_TMC_CI_1') in ECC6 EH4 IDES system. I also have SAP enterprise SearchTREX installed and this component shows me dependency in green light in SFW5 tcode (that means all the pre-requisites are fullfilled).
    But in SFW5 tcode does not show me Check / Activate Changes button on the top bar, and if i see in menus its greyed out i am not able to activate the same.
    I tried to unlock client using tcode SE06 and SCC4 but nothign worked out.
    I even checked the authorization of user it has sap_all, SAP_new, IDES_IDA_SUP, IDES_SWITCH, R3_TRUSTED.
    I will appreciate any help on the same.
    We developed system from Homogenious Export Image provided by SAP to us.
    Mani

    Hello Mani,
    You have to check for the compitability and dependency of already activated Enterprise Extension. If an incompatible Extension set is activated than it wont allow other application to work. Please check and let me know if you require anymore information.
    Regards,
    Vinit Pagaria

  • Portlet repository-- Seeded providers does not show Portal Content area

    Hi,
    When I login to portal as admin user go to administration --> Display portlet repository--> Seeded providers does not show Portal Content area.I tried to search but no results shown.
    Any idea as to how to get it back ?
    Thanks and regards.
    Neeti.

    1. From the Portal Object Navigator, click on the Applications
    tab.
    2. In the "Find" box, type %search% and click "Go"
    3. There are 2 reports you need to modify, depending on which
    portlet provider you want to use: RPT_SEARCH (owned by
    people_app) and SEARCH_RESULT (owned by wwv_system)
    4. For each report, click the "Edit" link
    5. Click the "Display Options" tab
    6. Under the "Full Page Options" heading, change the "Size"
    for "Row Text" to 12. (If you are running the reports as
    portlets, then you must also change the "Size" for "Row Text"
    under "Portlet Options".)
    7. Click OK
    Search results are now visble using either portlet, the Oracle
    Portal provider or the PEOPLE_APP provider.
    You may also need to change the field settings on the hierarchy
    if now when you run the people search you receive SQL errors.
    Here is what worked for me (assuming you want to change both
    users components):
    1. On the Application Tab search for %search% and %detail%
    components. You don't need to change the WWMON components.
    Change the font size on the full page and portlet options
    (Display Options Tab)for the heading and text (I use 12 and
    11pt). Otherwise the default can only be read with a magnifying
    glass.
    2. The org chart components are slightly different. Search for %
    org% and you will find 2 components org_chart and orgchart. Both
    of these need to have the column fields changed (Table or View
    Column tab) as well as the font size for the Parent, Child,
    Grandchild (Display Options Tab). Here are the Table Column
    settings (for some reason they are initially blank - yet will
    fail if recompiled without values):
    People_App.Org_chart
    1. key values:
    primary key - empno
    parent key - manager
    start with - empno
    ww_system.orgchart
    1. Primary Key Column WWSEC_PUBLIC_DIRECTORY.ID
    Parent Key Column WWSEC_PUBLIC_DIRECTORY.MANAGER
    Start With Column WWSEC_PUBLIC_DIRECTORY.ID
    Hope this helps. The second half of the answer provided by Rich
    Pickett.

  • LightRoom 2.3 Does not show up in "open With" when image right clicked..Why?

    Hi,
    I noticed that when I right click on an image and highlight OPEN WITH LightRoom does not show up as a choice.. Just CS4 and other programs. Is there a way to get it to show up?

    You can do it. Right-clicking and "opening with" LR is no different than dragging a file from Windows Explorer into the grid view. In either case the import dialog will be launched. If it's already in the catalog you'll get that dialog.
    Windows is seemingly unpredictable from time to time as to adding file associations to the context menu. In any case, if you go to the bottom and click "choose program" you can select LR from the expanded list, or navigate to find it if necessary (which shouldn't be necessary).
    Typically once you choose it once, it will continue to appear in the short list for that file type, though it depends what new pieces of software you install and how they're associated with file types either upon or after installation.
    You can also drag the file(s) from your Explorer window into the grid view, or drag onto the LR icon on your desktop or in your quick launch, which will launch LR and bring up the appropriate dialog.

  • Newest Adobe Reader not working with 8.1 IOS...Adobe icon does not show when pdf docs are saved...also printing pdf documents take forever.  I uninstallled and reinstalled...issues continue

    Latest AdobeReader not working properly with 8.1 IOS...Adobe icon does not show on saved PDF's and printing from PDFs takes forever. I uninstalled and reinstalled latest Reader

    zoer1,
    Adobe icon does not show on saved PDF's
    Would you provide more details about the problem?  A screenshot would be helpful.
    The following FAQ document describes the steps to add a screenshot to your forum message.
    How to add a screenshot to a forum message from iPad/iPhone
    Regarding printing PDF documents...It depends on the PDF document that you are trying to print.  In general, it will take longer to print more complex and larger PDF documents.
    If you are willing to share your PDF document (that takes forever to print) with us at [email protected], we can test it with the same version (11.6.3) of Adobe Reader on different iOS versions (iOS 7.x vs. iOS 8.x).  Please include the link to this forum (https://forums.adobe.com/thread/1616231) in your email message for reference.
    Actual printing is handled by iOS (not by Adobe Reader) via AirPrint over Wi-Fi connection.  We've heard from other users about iOS 8 Wi-Fi connectivity problems.
    You may also want to search for similar issues on Apple Support Communities.

  • HT2801 MacBookPro does not show titles of cd^s burned on other computer

    Hello anyone out there who can help. I insert a cd with music into my MacBookPro and it does accept it and it is running, but it does not show any titles. I know that the disc is full, because I have checked it on a PC. can somebody help?

    Hi,
    Please take a try to disable SMB2 on this client machine.
    sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
    sc config mrxsmb20 start= disabled
    More information, please take a look at the following KB article:
    How to enable and disable SMBv1, SMBv2, and SMBv3 in Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012
    Best regards
    Michael Shao
    TechNet Community Support

  • Purchased music does not show in itunes.  Only the artists

    I purchased a couple albums on my iPhone.  It shows the artist in the iTunes store and that there are 22 items, but it does not show the music for me to download it to my library. 

    Depending upon what country that you are in you might be able to redownload the albums via the Purchased link under Quick Links on the right-hand side of the iTunes store homepage on your PC's iTunes, or on the current version of iTunes you can access the Purchased section by clicking on your name towards the top right of the iTunes screen and then Purchased on the popup
    If they show there then click on the cloud icons on them to download them

Maybe you are looking for

  • My computer crashed -- how do I restore my library

    My computer crashed and when we rebooted it lost all past libraries. I now have a problem with my mini that may require warranty replacement. Is there any way to download my library off the mini to my computer so that I can easily restore it to the n

  • Error message "No bootable device--in​sert boot disk"

    Greetings. My HP Pavilion DV5-1213em is displaying the following error message on a black screen " No bootable device--insert boot disk and press any key" . I would be grateful for advice as to what has gone wrong and what I now need to do. I am unab

  • Return receipt for Invoice

    Hi, I have a scenario where the user is sending Invoice output to his customers by Email,while sending the email output he received from the system a delivery failure report stating that his message could not be delivered to his receipient's email ad

  • Lpad .. correct use to right justify a char field?

    Hi all, I have a column that's a char type, and I'm trying to manipulate justification within it. SQL> create table test (test char(14)); Table created. SQL> insert into test values (' 001234567890'); 1 row created. SQL> select * from test; TEST 0012

  • Jdk1.4 on ipaq

    Hello, I need to run a network application, that has been written and compiled with jdk1.4, on a Compaq Ipaq running Linux. I can't find a JVM that supports 1.4 API for that PDA, can you help me? Thanks