Static linking of libpthread and librt libraries in Solaris 8 and 10

Hi all,
We have created a solaris application which uses functions defined in libpthread (POSIX threads) and STL classes (string, list, map, vector etc.)
This application runs perfectly in our environment. However at other sites, there are crashes observed and debugging the core files indicate problems in generic places such as string.append() etc. We are not sure whether these problems are occurring due to dynamic linking of libraries.
Initially we had 1 problem due to libCstd and by following the procedure specified in http://forum.sun.com/thread.jspa?forumID=5&threadID=19287 , it was solved. I still find that the libraries including libCstd are dynamically linked to the application.
I would like to know the following
1. Is there any way of statically linking pthread and rt libraries?
2. If not, then is there any way to statically link all other libraries except for pthread and rt which can be linked dynamically?
Thanks,
Shekhar

You are posting in the C forum, but your question is about C++.
Not all runtime libraries are available as static libraries. Solaris is moving away from static libraries, and on Solaris 10, the main system libraries are available only as shared libraries.
Linking the C++ runtime libraries statically is generally a bad idea, although there are restricted application areas where it might be safe. If you build shared libraries as part of your application, or if you deploy on different kinds of machines or on different Solaris versions, you should link only to shared system libraries. Linking to static libraries can result in programs that will not work.

Similar Messages

  • Which OCI library to use for static linking with application on Unix, Linux

    Hi Friends
    I am new to OCI programming.
    I am developing a C++ application that works on Windows 7 (32, 64 bit, VS-9) and Linux (32, 64 bit), with OCI-11.2.0.3 version and Oracle 10g Express edition.
    I want to statically link OCI library in my application.
    For Windows, I got oci.lib in the package: instantclient-sdk-nt-11.2.0.3.0.zip\instantclient_11_2\sdk\lib\msvc downloaded from [Instantclient download location.|http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html] .
    But, the instanclient packages instantclient-basic-linux-11.2.0.3.0.zip & instantclient-sdk-linux-11.2.0.3.0.zip do not contain a static archive for OCI library.
    These packages have only include files and following .so (shared libraries) for Linux:
    libclntsh.so.11.1
    libnnz11.so
    libocci.so.11.1
    libociei.so
    libocijdbc11.so
    Can someone please guide me, where can I find the static archive (possibly liboci.a or libociei.a) for OCI-11.2.0.3 - 32 & 64 bit?
    Many thanks in advance for your time and kind guidance.
    Best Regards,
    -ganes

    You need:
    libclient11.a
    libcore11.a
    libgeneric11.a
    libcommon11.a
    libn11.a
    libldapclnt11.a
    libncrypt11.a
    and others.
    Actually, you can link to all *.a files in $ORACLE_HOME/lib
    EXCEPT: libclntst11.a and libexpat.a

  • How to compile Universal binaries in Mac OS X Lion with static linking

    Hello Experts,
    I have a projects which needs to be ported on Mac. This project uses some third party libraries and link them statically. I am new to Mac world and hence struggling to compile universal binaries with static linking on Mac 10.7.3 system installed with Xcode4.3.2 .
    Any help ?
    Best Regards
    Sudhir

    Uncheck Organize by Coversation:

  • Ant and RSL libraries

    In my project I am using a few libraries that are merged into code.
    How exactly does it work if I want to do automated builds of these libraries and a final SWF?
    AM I building the libraries as RSLs? Please help.
    Thanks

    Take a look at the flex-config.xml file in the frameworks folder of your Flex SDK.  You'll probably want to set this to true:
    <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>

  • Statically linking rwtools7 in 64-bit mode

    I am migrating an application from Soalris 2.6 to Solaris 8 (64-bit). We previously used Forte 4 and now are using Forte 6 update 1. The problem I am running into is not a compile-time problem but rather a runtime problem. To negate the necessity to install the RogueWave libraries on production hardware we used to statically link to the RWTools library via options like "-Bstatic -lrwtool -Bdynamic". Everything compiles and runs on the development platform where SUN WorkShop is installed, but when run on test machines (similar setup to production) we receive:
    ld.so.1: bin/ConfigServer: fatal: librwtool.so.2: open failed: No such file or directory
    I have attempted to try various forms of compiler options; such as, '-library=rwtools7,iostream' and '-staticlib=rwtools7'. But these result in the same problem.
    Another item of note is that this is 64-bit and we are using hte -xarch=v9 flag. I have noticed in the man pages statements warning that some libraries may not be available as static libraries when using -xarch=v[9|9a|9b], but I can find no information on which ones and what will happen when they are not available.
    Any suggestions?
    James

    The 64-bit version of librwtool is available as a static library, and -staticlib=rwtools7 is the correct way to link to it.
    I suspect some shared library you are using, perhaps a 3rd-party shared library, was built with a dependency on librwtools.so.2.
    To find out, run "ldd" on each shared library that you link into the executable and see if any of them show a dependency.

  • Framework caching, dynamic or static linking?

    I am doing framework caching. Everything I read says that
    your rsl url will be ignored if you set
    static-link-runtime-shared-libraries="true". By default,
    flex-config sets it to true, however, my swf files have shrunk
    dramatically and they load much faster so it seems to be working in
    spite of flex-config. Does anyone know for sure if that truly is
    the case? Also, what are the advantages/disadvantages of static vs.
    dynamic linking when doing framework caching? Thanks!

    Thanks rtalton, but simply having the files in the FB
    directories is not sufficient if you are using only the sdk and
    ant. I do not even have FB installed, only the sdk. I know I have
    those files present in my sdk. Nevertheless, when using mxmlc as an
    ant target, you have to have a child element like so instead of a
    checkbox as in FB. They are not automatically used unless
    specified:
    <runtime-shared-library-path path
    element="${FLEX_HOME}/frameworks/libs/framework.swc">
    <url
    rsl-url="/MyContextRoot/swfs/framework_${build.number}.swz"
    policy-file-url="" />
    <url
    rsl-url="/MyContextRoot/swfs/framework_${build.number}.swf"
    policy-file-url="" />
    </runtime-shared-library-path>
    Without doing so, mxmlc will not use the RSLs. My question
    was how Flex-Config.xml affects this and the
    advantages/disadvantages of static vs. dynamic linking.

  • How to create a linked data source with document libraries based on the same template?

    I use SharePoint Foundation 2013, SP Designer and Visual Studio 2013 to my needs. But there are several things which i don't get.
    I have a number of libraries which use the same template. I want to create a linked data source, that would contain them all, and if I add a library based on this template, the library would be added to the data sorce. Is it possible?
    I tried creating linked data souces, but the view that it brings by default is limited(no sorting, etc.). How can it be modified?

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • What's the best way to merge, restore or reconstruct iPhoto and Aperture libraries to resolve images that are not found/offline?

    Hey there, Apple Support Communities.
    To start, I'm working on a MBP Retina 15" with a 2.3GHz i7 processor and 16 GB of RAM.  10GB free on a 256GB SS HD.  Attached are two external HDs - one 1TB Western Digital portable drive from 2011, one 2TB Porsche LaCie non-portable drive from 2013; both connected via USB.  All photo libraries in question are on the external drives.
    I have Aperture 3.5.1 and iPhoto 9.5.1.  I prefer to work in Aperture.
    The Issue(s)
    Over the years, I have accumulated a number of iPhoto libraries and Aperture libraries.  At one point, I thought my WD drive was dying so I purchased the LaCie and copied all libraries over the the LaCie drive.  (Turns out, there's probably an issue with my USB port reading drives, because I can once again see the WD drive and occasionally I can't see the LaCie drive.)
    So now I have old version of some libraries on the WD drive, and new versions on the LaCie drive.
    When I was moving things, I ran the software Gemini to de-dupe my iPhoto libraries.  Not sure what effect that may have had on my issues.
    In my main Aperture library and in some iPhoto libraries, I get the image-not-found badge or exclamation point.  I've dug through the hidden Masters folders in various libraries to find the original image.  In some cases, I have been able to find the original image, sometimes in a different version of the iPhoto library.
    My Question(s)
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    2.  For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    3.  Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    TL;DR: Too many iPhoto and Aperture libraries, and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    Thank you!  Let me know if you need add'l info to offer advice.
    With appreciation,
    Christie

    That will not be an easy task, Christie.
    I am afraid, your cleaning session with Gemini may have actually removed originals. I have never used this duplicate finder tool, but other posters here reported problems. Gemini seems to replace duplicate original files in photo libraries by links, and this way, deleting images can cause the references for other images to break. And Aperture does not follow symbolic links - at least, I could never get it to find original files this way, when I experimented with this.
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    You have to find the originals yourself. If you can find them or restore them from a backup, Aperture can reconnect them. The reconnect panel can show you, where the originals are supposed to be, so youcan see the filename and make a Spotlight search.
    For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    Make a copy of the missing original you found in a folder outside the iPhoto library. You can either open the iPhoto library in Aperture and use "File > Locate Referenced file" to reconnect the originals, or simply reimport them. Then Lift&Stamp all adjustments and metadata to the reimported version.
    See this manual page on how to reconnect originals:  Aperture 3 User Manual: Working with Referenced Images  (the paragraph:  Reconnecting Missing or Offline Referenced Images)
    Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    References images will stay referenced, managed will remain managed. You need to unhide all hidden photos in iPhoto - this cannot be done in Aperture.
    and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    That is probably due to Gemini's replacing duplicate originals by links, and your best cause of action is to fix this before merging the libraries. Reconnecting can be done for your iPhoto libraries in Aperture.

  • File paths and updating Libraries

    Our website recently switched servers, in the switch they moved files in our FTP to a root folder www/ which has created some issues, most are resolved but I am really stuck on a Library folder which was originally in our root folder and now it is in the www folder. The website is m.whitewatertours.com.
    We have 2 libraries for our mobile website, MobileHeader.lbi and MobileFooter.lbi the original (and current) source for these is
    /Library/m.whitewatertours.com, but it should now be
    www/Library/m.whitewatertours.com
    Library sources cannot be changed in Dreamweaver (so they say) anyone know of a work-around?
    We have tried to update the www/Library/m.whitewatertours.com MobileHeader but that does not update our pages at all. With a webpage in edit mode we go to Modify>Library>Update current page from the DW menu we also get an error because the path is no longer there, its looking at the Library/m.whitewatertours.com MobileHeader which has bad links and images.
    Our new host updated the links when they changed the files, but now when I download in DW links and images do not show up (of course since the paths are not correct).
    I've created a test page with 2 headers: http://m.whitewatertours.com/south-fork-american-river-mapTEST.html
    the first is from www/Library/m.whitewatertours.com which has been applied to the page - strange though that when I change something in this MobileHeader.lbi and save it does not update the page.
    the second is the original, but I've been messing around with it to make it work.
    This may be a little better example:
    This page is untouched http://m.whitewatertours.com/upper-klamath-river.html
    I "Got" the file from our remote server thru DW FTP and changed the name, nothing else, than "Put" the file back, here is the page now: http://m.whitewatertours.com/upper-klamath-riverTEST.html
    It's quite a mess, thanks for any help!

    OK - now, for the icing on the cake, copy this link from your library item (mobileHeader.lbi) and paste it here.
    I think you want the file path? Depends on what you are talking about as they are in 2 different places...here's a screen shot from my DW dashboard, i've circled the 2 places where you can see the file paths...
    In the second file, the first image in the library item's code is linked like this -
    <img src="../../m.whitewatertours.com/images/Header.jpg">
    and that's clearly wrong. The Library folder MUST be at the root of the site. If that's the case, then it's impossible for a .lbi file to contain a link like that, since there are not two folder levels above it.
    Right, and believe me - that's not the original source so DW is adding extensions to match something...
    In your whitetours.com folder, do you have a www folder? If you do that's also wrong. The Site's remote root folder name should never appear in your local site. That "www" (or the name of the remote root) should always be placed in the Root Directory field of the remote server's definition (Servers category -> Basic tab)
    This is where I start getting a little lost. First YES there is a www folder in our local file of whitewatertours.com. Here is a screen shot of our FTP root folders - our new server moved/changed folders in Jan and we did not start any work with DW until march, things used to work fine prior to that.
    Thanks again!

  • I meet a problem about linking when I use Sharing Libraries.

    I meet a problem when I use Sharing Libraries.
    When I debug my flash on my local end, I can set the URL to "ShareLibrary.swf" (For “Export for runtime sharing”).
    All Files linking the file "ShareLibrary.swf" are working correctly.
    But When I put this swf on the net, the link can't work unless changing the URL to full path including the ip address.
    Is there any way that I can make it work using the same URL, no matter the file is on the local or on the net?

    Morning Alex,
    Thanks for using Apple Support Communities.
    For troubleshooting on this, take a look at this article:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic.
    http://support.apple.com/kb/TS1631
    Resolution
    Check the following:
    Check the volume setting on your iPhone. You can adjust the volume by pressing the volume up and down buttons on the left side of the iPhone.
    If you are using a third-party iPhone case, make sure it is not covering the speaker, microphone, or top microphone. Try making some calls without the case to see if a caller can now hear you more clearly or play music to see if the speaker's volume is better.
    If you have not removed the plastic display film used for protection during shipment, either ensure that the microphone and speaker are not covered or remove the film completely.
    Check that the speaker, microphone mesh covers, and top microphone hole are not clogged with lint or other debris.
    If the speaker, microphone mesh, or top microphone (iPhone 4 only) appear clogged, please use a clean, small, dry, soft-bristled brush to clean them. To do this follow these instructions:
    Use the brush to carefully and gently brush the speaker and microphone mesh.
    Brush away from the 30-pin dock connector to avoid getting any debris into the dock connector.
    Hope this helps,
    Mario

  • How do iPhoto and iTunes libraries connect to iMovie?

    I'm still having trouble with iMovie '08 being unable to "see" or show still photos or sounds from the iPhoto and iTune libraries. It does not seem to even know those libraries exist.
    Can someone at least tell me how iMovie normally connects to those libraries? What file tells it where to look?

    In iMovie 11, there is a Preferences file called com.Apple.iApps.plist. If you move this preferences file to the trash, it will reset the links to iTunes and iPhoto. I haven't had iMovie 08 for several years, but I assume there is a similar preferences file for iMovie 08.
    In general, the steps would be...
    Close iMovie, iPhoto, and iTunes.
    In the Finder, find this file and move it to the trash. Empty the Trash.
    Restart iTunes. Restart iPhoto.
    Restart iMovie.
    It should be in the Home/Library/Preferences folder.  (Macintosh HD/<Your user name>/Library/Preferences/)

  • HT1420 If I deauthorize all computers, are all the accounts and all libraries gone?

       If I deauthorize all computers, are all accounts and all libraries gone?

    No.  Deauthorizing a computer has nothing to do with removing content from a computer.  It does nothing to the account beyond deauthorizing a specific computer from playing content linked to the specific account.

  • Statically linking libstdc++  on Solaris 10 x86 platform

    hi,
    Using g++, how do i statically link libstdc++ on Solaris 10 x86 platform?
    What are the necessary linker options?
    -Thanks and Regards,
    Ameya

    Questions about using g++ are more likely to get a helpful answer in a g++ forum.
    Try http://gcc.gnu.org/

  • SRM 7.0 OFFLINEAPPROVALSEND - static link in Email notification possible

    Hello SRM Gurus,
    i have a special question regarding OFFLINEAPPROVALSEND and the link in the Email notification. Is it possible to customize table /SAPSRM/C_PORT_C to provide a static link to the SRM Portal and not use the logic to generate this link.
    Background: We have a Federal Network Portal in use for HR and BI. But we are planning now to change the concept to a central portal. So we do the Upgrade to SRM 7.0 with a stand alone Portal but we are getting the SSO Ticket from the Producer Portal over a special static link (e.g. http://producer.portal.net:50000/E_SSO?to=https://srm.portal.net:50201/startsrmportal.
    For a interims solution i would provide in the offline Emails a static link to go to the SRM Portal with the SSO ticket from the producer portal. I know that is no standard way for the moment, but we need that to provide SSO to the Managers for there approvals. At the moment they get an Login Page with Username and Password. An that is not acceptable for the Managers
    My question is now, could i provide a static link in the offline Emails and override the generated link. Or must i do a modification of the OFFLINEAPPROVALSEND Report? We only need this interims solution for 4 month until the new central portal is ready so that we can move with SRM in. A quick solution would be nice.
    Thanks for every usefull suggestion in advance.
    Best regards
    Stefan

    Hi Masa,
       Thanks for your input. I maintained the below entries but still it is not working. creator is not still receiving approved Email once the shopping cart is fully approved.
    1 .SPRO-SAP Supplier Relationship Management-SRM Server-Cross Application Basic Settings-Define Transaction Types -
        BUS2121 - SHC - Event Schema as SC.
    2. I enabled all four check boxes in this path Define Recipient of Notifications - approve shopping cart - contact person ( in most
        cases, the creator of the document ) .
    But I don't know how to maintain or what to maintain for Define Event Schema. This will be highly appreciate if you share your great experience on this..
    Hi Masa,
       I got approved Email after 10 mins. I don't know is this how the standard email send to requestor any idea how to change this? I found the Standard task that mail is sending
    Document 1000001212 approved
    WF-BATCH
    to:
    XXXXXXX
    08/12/2009 03:35 PM
    Show Details
    Document 1000001212 approved
    The document 1000001212 of type BUS2121 was approved.
    Technical information:
    Event:#APPROVAL_PROCESS_DOC_APPROVED
    SubCat:#APPROVAL_RESULT_NOTIFIC_NEW
    The following messages have been triggered by the system:
    You can view the document directly. Choose the following link :
    Login
       I am facing another issue that the Email is having a PORTAL link (Login text above is basically a link), when i click and after login into portal a pop up is displayed 'The specified transaction mode is not allowed with respect to workflow status of current document'. any idea about this issue?
    John

  • Projects and Project Libraries

    I've been happily using Projects since they were introduced in LabVIEW 8-something.
    I've got a Project whose task involves examining directory trees containing other VIs.  In some cases, the VIs my code examines have the same name as one of the VIs being used in the code (I'm running in Development Mode, not from an executable).  To avoid "name clashes", I did a search on NameSpaces and learned about Project Libraries.
    So I've successfully ported all of the files in my Project into a similarly-named Project Library.  The code works just fine.
    Today, I opened my Project to look at one of my VIs, and to my horror, the Project had none of the files showing.  It also didn't show the Project Library (where I "knew" all the files were located).  A tad worried, I looked on my disk, and found the Project Library (.lvlib) file -- if I double-click it, there are my files!
    What I'm having trouble doing (maybe because it is impossible!) is getting a view "inside" my Project Library from the Project Explorer.  Given the close relationship between Projects and Project Libraries (the second is created from the first, for example), I would have expected to see such a link.  Does it exist?  Or are you expected to open both a Project (which, in my case, has files that are not in the Project Library) and the corresponding Project Library?
    Note I did a search through the NI Documentation on Project Libraries, and what I read emphasized the close relationship between a Project and an associated Project Library, including giving them the same (or similar) name and keeping the files in the same folders.  [Hmm -- I just realized I did not name my Project and Library identically -- I called the Project "Project XYZ", and the Project Library "Library XYZ" ...].
    Experience "from the field" would be most welcome!
    Bob Schor
    Solved!
    Go to Solution.

    HandyAndy wrote:
    Would you mind posting your project so someone could take a look at it?
    Dear Handy,
         Humble Pie time (again!).  When I saw your request, I said (to myself, silently) "Just how dumb do they think I am?".  So this morning, I brought back an earlier pre-Library version of my Project, captures some screen shots of "Before", and started to (re-)create my Library.  I couldn't remember exactly how I did it before, so I followed the steps in the LabVIEW 2011 Manual.  I did a "New, Library" from My Computer in the Project, and dragged stuff into it.  This time, I noticed there was a lot of "saving VIs" that I didn't recall from my earlier (first) Project Library.  When I was done, there, in Project, right where I was expecting to see it (but wasn't!) was my Project Library!
         So what did I "do wrong" before that caused the Library to "disappear" from the Project?  Who knows, but I clearly did something (mysterious) incorrectly -- I'll try not to do whatever-it-was again!
         Onward and upward (or maybe onward and downward, since Austin, home of NI Week, is south from here ...).
    Bob Schor

Maybe you are looking for

  • I just allowed firefox to update to 6.0 and now none of my links can resolve, possibly because there is no Norton toolbar for this version and it's blocking? (My other browsers are still working)

    I have the Norton Security Suite provided with Comcast subscription (cable network) I have a Dell Inspiron with VISTA, but hopefully that's not a problem, as I've had Firefox on it for 4 years now. Thanks!

  • N8 Screen Issue

    I bought an N8 shorty after it was released.  Slowly over the past three or four months, the touch screen detection has been slowly becoming inaccurate.  The phone detects that I am pressing slightly above where I am actually pressing.  Is there any

  • Default image in CSS disjointed rollover

    I have 5 pics that come up as CSS disjointed rollovers with 5 links. How can I make the first one the default, that shows up when the page loads, before the user hovers over one of the links? I tried placing the first pic on the page, just like you w

  • Odd Onyx behavior

    I recently ran some scripts in the Onyx utility application. After restarting, I noticed that a number of random files started appearing in all of my folders and subfolders on my hard drive. For example, In all folders I can see at least two files: .

  • How to Install via mutiple Iso files?

    Hi how do I install eg. WoW via iso's? I have tried to install it, but problem is when the installation prompt me to insert disk 2. I tried to mount it but nothing happened. it just opened as usual when you mount an Iso or other immage. How can you m