Is it possible to avoid dependencies on too new symbols in libCstd.so?

Hello,
I'd like to know if it's possible to somehow tell the Solaris linker to avoid
using the symbols with versions newer than the given one. E.g. on my
snv_111b OpenSolaris system there are a couple of symbols with SUNW_1.4.2
version:
% pvs -o -s -C -d /usr/lib/libCstd.so.1|fgrep SUNW_1.4.2|c++filt
/usr/lib/libCstd.so.1 - SUNW_1.4.2: bool std::operator==<char,std::char_traits<char>,std::allocator<char> >(const std::basic_string<__type_0,__type_1,__type_2>&,const __type_0*);
/usr/lib/libCstd.so.1 - SUNW_1.4.2: bool std::operator==<char,std::char_traits<char>,std::allocator<char> >(const __type_0*,const std::basic_string<__type_0,__type_1,__type_2>&);These symbols are not present in libCstd.so on the customers Solaris 10
machines so I'd like to ensure that they are not used in the libraries which I
build. Unfortunately I couldn't find any clean way to ensure this. In fact the
only way I did find was to edit /opt/sunstudio12.1/prod/include/CC/Cstd/string
and to comment out the declarations of these operators there. Which is not
only dirty and unmaintainable but also actually more than I need to do
because, as these operators are inline, most often they're indeed inlined and
it's not a problem to use them. It's only a problem to depend on these (too
new) symbols in the library.
So the question is whether I can somehow coax the linker to give an error
when these symbols are used?
Thanks in advance for any ideas!
VZ

_VZ_ wrote:
So the question is whether I can somehow coax the linker to give an error
when these symbols are used?I guess you can - with a bit of a hack. You an probably use a map file telling linker to use only version SUNW_1.4.1 (or whatever version your client machines' have). This way you'll get errors about missing definitions up front:
$ cat mapfile
libCstd.so - SUNW_1.1.1 $ADDVERS=SUNW_1.1.1;
$ CC -M mapfile  a.cc
Undefined                       first referenced
symbol                             in file
std::string::~basic_string() a.o  (symbol belongs to unavailable version /export/opt/sunstudio12.1/lib/sparc/libCstd.so (SUNW_1.2))
std::basic_ostream<__type_0,__type_1>&std::operator<<<char,std::char_traits<char>,std::allocator<char> >(std::basic_ostream<__type_0,__type_1>&,const std::basic_string<__type_0,__type_1,__type_2>&) a.o  (symbol belongs to unavailable version /opt/sunstudio12.1/lib/sparc/libCstd.so (SUNW_1.2))
void std::string::__unLink() a.o  (symbol belongs to unavailable version /opt/sunstudio12.1/lib/sparc/libCstd.so (SUNW_1.2))
ld: fatal: Symbol referencing errors. No output written to a.outSee Linker and Libraries Guide, section "Binding to Additional Version Definitions" (http://docs.sun.com/app/docs/doc/819-0690/chapter5-81344?l=en&a=view) for explanation and an example.

Similar Messages

  • I can sometimes connect to my Wi-Fi network, but sometimes the name of the network doesn't even appear when i try to find available networks. Is it possible that my software is too new for the network?

    I can sometimes connect to my Wi-Fi network, but sometimes the name of the network doesn't even appear when i try to find available networks. Is it possible that my software is too new for the network?

    It may be your router is to old. Good read:
    http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html

  • Is it possible to avoid duplicate material in Sale order creation

    Dear SD gurus
    Is it possible to avoid material duplication in va01 sale order creation. For amendment purpose the marketing user making new line item with amended qty instead of quantity change. kindly advise me to solve the problem.
    Thanks & Regards
    R.Udayakumar

    HI,
    There's no alternative to user disciplibe . Business reqt are sometimes like this only
    what you can do is use exit mv45afzz in saels order and put coding logic . this will surely work.
    {Removed by Moderator}
    regards
    Edited by: Lakshmipathi on Aug 29, 2009 6:13 PM

  • TA38633 is it possible to avoid having to do a "restore" entirely ? Also if i have to do a restore, i have windows 7- do i follow the steps for Windows XP?

    Regarding error 1601 - is it possible to avoid having to do a "restore" entirely ?
    Also if i have to do a restore, i have windows 7- do i follow the steps for Windows XP?
    Many thanks

    I'd refer to this
    http://support.apple.com/kb/TS3694 (talks about security software and this error)
    and this
    http://support.apple.com/kb/HT1414
    I've had Windows 7 for a while, but it seems the steps in iTunes are identical. 

  • Encore CS6 not possible to avoid transcoding

    Why does encore CS6 transcode some H.264 streams and some not? They are different sequences exported from the same project with the same settings out of premiere CS6. The parameters of all streams equal the settings in encore. But for some it is not possible to change the setting in encore to not transcode.

    Yes, I used H.264 Bluray 1440x1080 anamorph. I guess Encore ignored the anamorph flag for some files and transcoded them a second time to 1440x1080 - the result is a visible frame with a distorted 4:3 aspect ratio. I have found a resolution. I replaced the transcoded files in the encore transcode folder with copies of the original files and renamed them like the transcoded files: "original filename"_sessionFiles_Asf_session_1_video.m4v
    Perhaps its possible to avoid transcoding by simply placing renamed copies (in that name system above) of the original files in the transcode folder. I will try it in the future.

  • I use photoshop 6 (mac) if I subscribe to Premier CC do I have to subscribe to Photoshop CC also I want to use 6 as long as possible to avoid the subscriptions fees

    I use photoshop 6 (mac) if I subscribe to Premier CC do I have to subscribe to Photoshop CC also I want to use 6 as long as possible to avoid the subscriptions fees

    Completely separate products, so nothing to fear.
    Mylenium

  • Is it possible to love your iPod too much?

    Like the subject says, is it possible to love your iPod too much? I think so.

    While I don't find the post offensive at all but we must remember that there are probably some tots on here. I'm sure there mommy and daddy would not want their child on here. Protect the children, lol...Joking!

  • Sql developer 3.0: could be possible to avoid creating connections

    Hi, when connecting from oracle forms, you don't have to create a connection, in the same way I don't know if could be possible to avoid creating connections when you are using a tnsnames.ora archive.
    simple to choose the connection as in oracle forms, and the posibility to save the password.
    thank you

    As stated in the forum announcement, you can request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • Is it possible for the software to be too new to restore from old iPod's backup?

    So I tried to restore my new iPod from my old iPod's backup, but the old one was working on iOS 5.1 and the new one was an older software.
    It said it could not restore the new one from the backup of the old one because the software was too old, but the only option is to update it to iOS 5.1.1.. will it still say it is not compatible now because the new one is too new and the old one is too old? :/

    If you update your iPod to iOS 5.1.1, you'll be able to restore the iPod to a backup from any iPod with current or older software.
    To put it simpler, you can update your new iPod to the latest iOS and restore your old iPod's data.

  • Project too new for final cut 6.0.2 error message

    My colleague at work has edited a rough cut on her Quad Core Intel computer. I'm using a Power Mac G5, and was able to download the project onto my desktop, but I get this message every time I try to open it: "This project is unreadable or may be too new for this version of Final Cut." We're both using FCP 6.0.2, I've done all the software updates I can, but I still receive the message. Does anyone know what I can do?

    Did the person use the same workstation you are using? If you have the other person's volume mounted on your desktop, and you are definitely running the same OS, and you have the same version of FCP, then try opening the original file, not a copy. If it opens, do a *"save as"* instead of using a duplicated copy of the project.
    Also, if they are using a different workstation, they may have another 3rd party component installed that they used, (maybe a filter or codec), that would interfere with it opening. The best way to make sure FibreJet works seemlessly in a multi-station work environment is to make absolutely sure that every station is a clone of the others. If you do an update on one, you have to do it on all. If you add an application, make sure you add it to all stations.
    If you are using a different workstation, try to open it with the other station, then mount your desktop to that station through the LAN, and do a *"save as"* to your desktop, then try opening it from there.
    Of course, do all this after trying to zip it before copying it. It only takes a second and would eliminate one aspect of the possible problem.

  • FaceTime can't be installed... OS X is too new

    I've paid for FaceTime on the Mac AppStore, but I get "We could not complete your purchase".
    FaceTime can't be installed on "MainHD" because the version of OS X is too new".
    I'm on Mountain Lion (10.8.2)
    What version of OS X do I need, exactly?

    Hi, thanks but it's certainly not installed on my installation of Mountain Lion.
    eg typing "Facetime" into spotlight yields nothing and I've never seen it.
    I upgraded from Snow Leopard, if that makes a difference.
    It's possible I tried to install it on Snow Leopard as a paid item.
    And now it's so utterly confused, I'm unable to use it.

  • File Format is too New

    I got some files from the computers at school with the hopes of working on them at home, and it says the files are too new. i thought i had he most up to date version, but i guess not. What can i do to work on my movie at home? or is this not possible? Thanks

    Doesn't really matter, does it? If your home install says it's too new and you've got 5.0.4, the only thing it can be at school is 5.1.x - and the only way to work on it at home is to (as others have mentioned) export an XML of your project and import that into a new project at home...
    Patrick

  • Too new version of Safari

    So this is my first post on this forum and I apologize if it's been brought up before. Anyways, the problem is that my Safari version is too new for it to work on the version of OS X (10.7.5) I'm running. And the funky part is that since I can not uninstall Safari, (apparently it's needed for some reason), and neither can I use it I'm kind of stuck in a loop.
    Does anyone have an idea what I possibly could do about it?

    I think the Safari version 6.0.2 but there's also a cross over it. This all began with me trying to uninstall it manually by deleting everything Safari I could find and then later finding a Safari program online and thought I could restore the old one with the new version I think.
    It says "This version of Safari can not be used on this version of OS X"

  • Xcode version 4.2.1 required - Cannot Install, OS X 10.8 Too New

    There is a reason why I need an Xcode version eariler than 4.3..
    I need to install some programs supplied by my university that make use of GIMP toolkit libraries (http://www.gtk.org) for the UI.
    GTK has certain prerequisites though, one of which being: I need Xcode installed.
    This would be all very well, but GTK contains a Python program called jhbuild which looks for the Xcode GCC Compiler in: /usr/bin and the SDK in /Developer.
    Now, am I correct in thinking that the /Developer folder no longer exists for currect versions of Xcode? (version 4.3 +)
    That would mean that I'd have to install an eariler version.
    After downloading Xcode 4.2.1, I tried installing it to be given an error: 'Xcode can't be installed because the version of OS X is too new.'
    So, I don't suppose anyone would know of a solution to this?
    Cheers, Jonathon

    Read the following, and see if the following steps eliminate the need for an earlier Xcode.
    Make sure you have updated to OS X 10.8.2 (including supplement).
    Install Xcode 4.5.2 from App Store.
    From Xcode 4.5.2 preferences > Downloads > Components, Install the Command Line Tools.
    (This puts the compilation environment in the expected /usr/bin location.)
    Now, resolve /Developer with a hard link:
    sudo ln /Applications/Xcode.app/Contents/Developer /Developer
    sudo chown root:wheel /Developer
    I cannot promise that the GTK jhbuild won't be checking for other dependencies that the above steps do not correct.
    In your startup file, you should add the following to your PATH: /Applications/Xcode.app/Contents/Developer/usr/bin

  • I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    What Happened?
    No way for us to know.  But if your system was crashing, there definitely was a problem.  The FCE error message you got normally indicates the FCE project file has been corrupted.  This probably happened due to whatever caused your system to crash & shutting down the system.
    First, make sure your system is running correctly.  Then, use the Finder to navigate to /users/yourusername/Documents/Final Cut Express Documents/Autosave Vault and find the most recent backup copy of your FCE project file.  Copy the file to your Final Cut Express Documents folder (copy the file, don't just move it).  Then double-click the copy to open it in FCE.  It should open ok, but will probably not have your most recent edits (transitions).  You may have to rebuild the transitions, but at least you will be back in action.

Maybe you are looking for

  • How can I change my APP Store account?

    How can I change the account I am using on my app store? How do I retreive contacts that I lost when I changed my apple id on my iCloud?

  • Simulating mput in FTP Adapter in 10.1.3.1

    I have a process which reads encrypted files and does ftp. But what the process does right now is creates one instance for every file. So for instance if there a 100 files it creates 100 instances. How can I chnage my process to read all the 100 file

  • StuffIt Expander thinks it is a Classic app

    When I try to open the StuffIt Expander that installed with my OS X or try to open a compressed file that sends a request to open Expander, I get the message "Sorry, Expander will not work without the StuffIt Engine. Please reinstall from the origina

  • Dreamweaver Elements 1

    I think it's time for Adobe to think about creating a new product, Dreamweaver Elements 1, much the same as Adobe did with the Photoshop Elements products. Dreamweaver, as it stands now, is too deep for me to handle, and the learning curve is too ste

  • I have a mac book pro and want to run rollercoaster tycoon on it does anyone know how ?

    I have tried to google an answer but im still stuck can someone help ? I used to play Rollercoater Tycoon 3 on my old Pc however now i have a mac it wont run.