Library loadorder, libCStd and libCStd_isa, etc

Hi All,
I am trying to debug a crash that is happening on some of our Solaris machines. We suspect it is a library load order issue. So I tried to capture the ldd -i output on a machine that it is crashing and on the other that it is not crashing. The only differences the diff showed are
69c69
< /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.176d75
< init object=/usr/lib/libthread.so.1
77a77
init object=/usr/lib/libthread.so.195d94
< init object=/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
135a135
init object=/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1Both the machines are running Solaris 8 and have the same kernel patchs.
When I looked at the individual outputs, I noticed the Sun Blade loads libCStd_isa.so.1 before loading libCStd.so. Sun Ultra does it the other way.
My program crashes on the Sun Blade but not on Sun Ultra.
I have read in a different thread that libCstd_isa is only used in some systems, but in the others. What determines whether the libCstd_isa.so is loaded on a particular machine or not? What is the load order for libCstd and libCstd_isa.so?
Any pointer would be greatly appreciated.
Thanks
_Sunil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi,
Just wanted to post a follow-up question on this. Looking at the ld output after setting LD_DEBUG="files", the machine where it is crashing .init is not being called on some libraries.
Here is how it looks on where it is crashing
09577: 1: file=/xxx/sunos5/lib/libxxx.so; dlopen() called from file=/xxx/libyyy.so [ RTLD_NOW  RTLD_GLOBAL  RTLD_GROUP  RTLD_WORLD ]
09577: 1: file=/xxx/libxxx.so skipped: already processed
And here is how it looks where it is working fine
24760: 1: file=/xxx/sunos5/lib/libxxx.so; dlopen() called from file=/xxx/libyyy.so [ RTLD_NOW  RTLD_GLOBAL  RTLD_GROUP  RTLD_WORLD ]
24760: 1: file=/xxx/libxxx.so skipped: already processed as /xxx/libxxx.so
24760: 1:
24760: 1: calling .init (from sorted order): /xxx/sunos5/lib/libgo30.so
Does anyone know why the loader is behaving differently on different machines.
Thanks
_Sunil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • I recently lost my windows laptop due to a virus. I had backed up all files onto a drive(files only). However no itunes playlists. i have all my playlists on my iphone and pics etc however when im trying to sync to my new computer itunes deletes all data

    I recently lost my windows laptop due to a virus. I had backed up all files onto a drive(files only). However no itunes playlists. i have all my playlists on my iphone and pics etc however when im trying to sync to my new computer itunes wants to  deletes all data off of my iphone so i click cancel
    i want to update to iOS 5 and still have itunes be able to copy my playlists from my iphone. for free. why does apple provide a recovery from iphone option?

    If you have a backup, restore the ENTIRE iTunes folder to the computer.  This restores the library and device association files.  If for some reason you chose to only back up the media and not the entire iTunes folder, then the only option is to let iTunes wipe the drive and re-sync.

  • HT204406 I bought iTunes Match enabled it on my ipad now the 1800 songs in my library are gone and all I have is the music my daughter purchased from itunes how can I get them back. for her ipad.

    I have ipad 3 &amp; daughter new ipad mini with RD. She has nano and I have classic. Her nano syncs to her own laptop and mine to my desktop. I bought iTunes Match and authorised both iPads and both iPods. I have now enabled iTunes Match in my ipad and was warned it would replace my library. I pressed "enable" and now the 1800 songs in my library are gone and all I've got is the music my daughter bought from iTunes. What have I done wrong and how can I get my songs back. When I bought iTunes Match I got 1 e-mail confirming subscription and another providing receipt but nothing else no links etc. any assistance would be appreciated.
    Arccctwc

    You can only upload music from your computer's iTunes, you can't do it from an iOS device - when you subscribe to iTunes Match on your computer it should have scanned your music library on it and matched or uploaded any non-iTunes purchased music to it.
    Do you have copies of those tracks anywhere e.g. on an iOS device or on your backup of your downloads/library ? If they are iTunes purchases then they should be in the cloud. If they were copied from CDs or bought from other sources then if they are only on an iOS device (i.e. you don't have them on a backup) then there are some programs listed half-way down this page which should be able to copy them back : https://discussions.apple.com/docs/DOC-3991
    Subscribing to iTunes Match : http://support.apple.com/kb/HT4914
    Using Match on an iOS device : http://support.apple.com/kb/HT5637

  • I am running aperture 2.1.4 and am considering purchasing the latest version. will my photos, projects, and folders etc. transfer over automatically ?

    I am running aperture 2.1.4 and am considering purchasing the latest version. will my photos, projects, and folders etc. transfer over automatically ?

    will my photos, projects, and folders etc. transfer over automatically ?
    Nearly automatically.
    This will be a major upgrade, and Aperture will have to upgrade your library.
    As a precaution, make sure you have a working backup of your library, and I'd keep a copy of the Aperture 2.1.4 Application installer as well.
    Also it is recommended to repair the permissions and to rebuild the library, to make sure that  the library has no corruptions before you upgrade.
    Rename the Aperture Library to a name different from the default name before you upgrade.
    Launch the new Aperture version by double clicking your Aperture library. Aperture will prompt you, that it is necessary to upgrade the library; let it run, this may take a while. And yes, you should find all your photos, projects, folders, etc. after the upgrade just as you imported and organized them.
    Regards
    Léonie

  • Re-linking Motion assets, templates and filters etc.

    Hi, can anyone help me with re-linking my Motion assets, templates and filters? They're currently stored on an external hard drive. I've now managed to upgrade my macbook pro HD and would like to have then on my internal HD. So which folders do I place them in and how do I link them to their new location so that Motion recognises them?
    Also I will have to do this for my whole Final Cut HD suite so will it be the same process for Soundtrack Pro, DVD studio pro and Livetype etc?
    Thank

    The locations are stored in the file /Library/Preferences/com.apple.proapps.plist. If you don't have the developer tools installed, try something like PlistEdit Pro to open the file.
    http://www.fatcatsoftware.com/plisteditpro/

  • I would like to transfer my iTunes and photos etc from my PC to my new iMac via a external hard drive. Would somebody recommend one. I read that the Western Digital Mybook Essential 3.0 is good.

    I would like to transfer my iTunes and photos etc from my PC to my new iMac via a external hard drive. Would somebody recommend one. I read that the Western Digital Mybook Essential 3.0 is good. Though as Mac has 2.0 is this fast enough? I am a basic user, surfing only.

    If you plan on using the WD with the Mac after the iTunes transfer I would strongly recommend against WD. WD external HD's tend to be the most troublesome with Macs. If you intend to use the drive for backup using Time Machine or creating a bootable clone then I'd recommend a higher quality drive than WD. The drives I'd recommend in that case would be:
    OWC Mercury Elite Pro series
    LaCie d2 Quadra series
    G-Tech G-DRIVE series
    These are all high quality drives and enclosures with similar features. Personally I use the LaCie's however I would be happy to have OWC and G-Tech on my desk too. FWIW I've been using the LaCie's for 4 years and have 4 of them, all work perfectly and have never given me any trouble.
    You also my find this article helpful: Move an iTunes library from a PC to Mac (and back)

  • My old computers broken so i want to update using another but im afraid of losing all apps, i get a message saying because this isnt my computer I can only transfer contacts and texts etc.

    my old computers broken so i want to update using another but im afraid of losing all apps, i get a message saying because this isnt my computer I can only transfer contacts and texts etc. how can i make it copy everything?
    cheers!

    The iPhone is NOT a storage device so it does not support transferring it's data to another iTunes library.  You can transfer purchased iTunes music and apps, but any music you ripped yourself or purchased from somewhere else cannot be transferred without purchasing some additional 3rd party product.
    Certainly in this digital age, everyone is backing up their important data, right?  You can take the backup copy of the data on your broken computer and load it into your new one.

  • Can I split where my library stores movies and music?

    Hi,
    My iTunes library is filling up my HD fast.  The HD on my computer is only 1TB.  Since I got Apple TV, I've been ripping my DVD's and keeping them in iTunes.  That's been eating a lot of disk space.  Is it possible to put the movies on an external 2TB and keep my music, iTunes U, etc on the internal HD? 
    Thanks,

    You can.
    One way is to go to Preferences/Advanced. Uncheck the box that tells iTunes to move all copied files to the Media folder. Put your movie files on the hard drive of choice.
    Then you can get the listings into iTunes. Under the File menu in iTunes you select Add to Library... and find the files where you know them to be. You are adding them to iTunes but the location stays the same. To be sure, after they show up in iTunes, highlight one. Go to Get Info and look at the first tab or Cmd-1. The entire thread of the location of that particular file will be showing. Make sure it reads the way you expect it to.
    If you want to make sure all the new music files go to the Media folder you should go back and recheck that box in the Advanced Preferences tab.
    There is another way - create a new library and have all files in that library (for your movies) automatically copy to its Media folder, but assign that Media folder (again in the Advanced tab) the way you want. But you can only have one iTunes library open at a time and only those files will be available to Apple TV.

  • Differnce between LibCstd and LibStlport

    Hi
    what is the main difference if we Build application with LibCStd and LibStlport

    libCstd is potentially probably more standard-conforming than STLport
    In fact the Apache stdcxx is derived from the same roots - libCstd is just an older version of RogueWave Standard C++ Library
    All the seemingly missing parts are actually implemented in the headers but switched off by configuration macros setup in <tt>/opt/solstudio12.2/prod/include/CC/Cstd/stdcomp.h</tt>
    The configuration is by no means obtained from the automatic script (as suggested in the header itself) and it presents <tt>CC</tt> as an incapable old-fashioned pre-standard compiler (like from the times of SPARCWorks) that does not understand many advanced template features needed for implementating full standard by the library
    One has three choices to unlock standard features in libCstd:
    <ol>
    <li> Edit the <tt>CC/Cstd/stdcomp.h</tt> and make the following macros undefined (easier by commenting out their definitions)
    </li>
    <li> Create a file named <tt>stdcomp.h</tt>, fill it with properly edited contents and add the path using <tt>-I</tt> directive. This will cause the compiler to use created file instead of the original </li>
    <li> Create a file named <tt>stdcomp.h</tt> that will <tt>#include</tt> the original and adjust the macros. As with 2. include path needs to be provided with <tt>-I</tt>
    The fixed <tt>stdcomp.h</tt> header should look like:
    #ifndef _FIXED_STDCOMP_INCLUDED_
    #define _FIXED_STDCOMP_INCLUDED_
    // Include the original
    #include <Cstd/stdcomp.h>
    // Clear offending macros
    #undef _RWSTD_NO_MEMBER_TEMPLATES
    #undef RWSTD_NO_MEMBER_TEMPLATES
    #undef _RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES
    #undef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
    #undef _RWSTD_NO_FRIEND_TEMPLATES
    #undef RWSTD_NO_FRIEND_TEMPLATES
    #undef _RWSTD_NO_MEM_CLASS_TEMPLATES
    #undef RWSTD_NO_MEM_CLASS_TEMPLATES
    #undef _RWSTD_NO_TEMPLATE_TEMPLATE
    #undef RWSTD_NO_TEMPLATE_TEMPLATE
    #undef _RWSTD_NO_EXPLICIT_ARG
    #undef RWSTD_NO_EXPLICIT_ARG
    #undef _RWSTD_NO_STATIC_MEM_DEF
    #undef RWSTD_NO_STATIC_MEM_DEF
    #undef _RWSTD_NO_DEFAULT_FOR_TPARAM
    #undef RWSTD_NO_DEFAULT_FOR_TPARAM
    #undef _RWSTD_NO_PART_SPEC_OVERLOAD
    #undef RWSTD_NO_PART_SPEC_OVERLOAD
    #undef _RWSTD_NO_INIT_CONST_TEMPLATE_REF_ARG
    #undef RWSTD_NO_INIT_CONST_TEMPLATE_REF_ARG
    #undef _RWSTD_NO_CLASS_PARTIAL_SPEC
    #undef RWSTD_NO_CLASS_PARTIAL_SPEC
    #undef _RWSTD_NO_FUNC_PARTIAL_SPEC
    #undef RWSTD_NO_FUNC_PARTIAL_SPEC
    #undef _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
    #undef RWSTD_NO_TEMPLATE_ON_RETURN_TYPE
    // prevent the original from #define'ing the macros again
    #define RW_NEVER_ENTER_DEFAULT_HEADER_BLOCK 1
    // clear inclusion guard
    #undef __STD_RWCOMPILER_H__
    // include original once more
    #include <Cstd/stdcomp.h>
    // macro from stdcxx-4.x.x, used by vector<bool>
    #if defined(_RWSTD_ALLOCATOR) && !defined(_HPACC_)
    # define _RWSTD_REBIND(alloc, type) _TYPENAME alloc::template rebind<type>::other
    #else
    # define _RWSTD_REBIND(alloc, type) allocator_interface<alloc, type>
    #endif
    #endifDouble inclusion of original header is necessary because more macros will be defined after our #undefine's
    To prevent warnings about macros redefinition with second include more #undef's can be added, e.g. for <tt>RWSTDVER</tt>, <tt>RWSTD</tt> or <tt>__RWSTD</tt>
    The purpose of macro <tt>RWSTDREBIND</tt> will get clear in the following discussion. One may wish to add this definition if editing the original file in place.
    </li>
    </ol>
    No matter which solution is chosen there are a few other considerations:
    <ol>
    <li><tt>CC</tt> by default has implicit inclusion feature - it automatically includes files with template implementation during compilation. For a header <tt>name.extension</tt> it looks for files <tt>name.cc</tt> and <tt>name.cpp</tt> on include path and uses them without an explicit <tt>#include "name.cc"</tt>. This feature is used by <tt>libCstd</tt>, e.g. <tt><vector></tt> header includes <tt>vector.cc</tt> only if <tt>RWSTDCOMPILE_INSTANTIATE</tt> macro is defined (by default it is undefined).
    Though the feature is useful it may cause problems when a header named like one of the standard library is used (e.g. <tt><boost/container/vector.hpp></tt>). The compiler looks for an implementation file and uses the one from libCstd (<tt>CC/Cstd/vector.cc</tt> in this case). As the corresponding standard header has not been included it complains about defining methods for non-existing template class <tt>std::vector</tt>.
    If <tt>Boost.Container</tt> or other similar library is to be used one should add <tt>-template=no%extdef</tt> compiler option and define the macro <tt>RWSTDCOMPILE_INSTANTIATE</tt>.
    <li>Changes to <tt><stdcomp.h></tt> turns <tt>std::iterator_traits</tt> template on but the corresponding <tt>__iterator_category</tt> function specialization is missing. The best place for it is standard <tt><iterator></tt> header:
    #ifndef _ITERATOR_FIX_INCLUDED_
    #define _ITERATOR_FIX_INCLUDED_
    #include <Cstd/iterator>
    namespace _RW_STD {
    template<typename _IterT>
    inline typename iterator_traits<_IterT>::iterator_category
    __iterator_category(const _IterT&)
        return typename iterator_traits<_IterT>::iterator_category();
    #endif // _ITERATOR_FIX_INCLUDED_
    Note that the hacked file should be named <tt>iterator.SUNWCCh</tt> to be used by the compiler. CC does not include standard headers from files without that extension(of course one may edit <tt>CC/Cstd/iterator.SUNWCCh</tt> file directly)</li>
    <li>The changes unlock templatized constructor in <tt>std::pair</tt> class which can lead to ambiguity between overloads of <tt>insert</tt> methods of <tt>std::map</tt> container, namely
    pair<iterator, bool> insert(const value_type&);  // value_type is a typedef for pair<const key_type, mapped_type>
    pair<iterator, bool> insert(const pair<key_type, mapped_type>&);when called with an argument like <tt>std::make_pair(key, value)</tt> the compiler is not able to choose overload because the templatized <tt>pair</tt> constructor can convert between pairs that only differ in constantness of their components
    This time there is no <tt>#include</tt>-then-fix solution - one may edit the original <tt>CC/Cstd/map.SUNWCCh</tt> file or copy its contents to another location (again, remember about <tt>.SUNWCCh</tt> extension) and edit it there.
    The fix is to remove method
        pair<iterator, bool> insert (const pair<key_type, mapped_type> &__x)Best may be using conditional:
    #ifdef _RWSTD_NO_MEMBER_TEMPLATES
        pair<iterator, bool> insert (const pair<key_type, mapped_type> &__x)
    //... implementation
    #endifBe aware it is <tt>#ifdef</tt> here (not <tt>#ifndef</tt>) so the code gets excluded as <tt>RWSTDNO_MEMBER_TEMPLATES</tt> has been undefined
    </li>
    <li>With full partial template specialization support turned on we get into troubles with <tt>std::vector<bool></tt> class. The compiler complains that <tt>__first.p</tt> is inaccessible from <tt>vector<bool>::~vector()</tt> though <tt>vector<bool>::iterator</tt> contains friend class vector<bool, Allocator>;Changing that to friend class vector; fooled the compiler in full:
    >
    <tt>>> Assertion: (../lnk/ftemplate.cc, line 498)
    while processing libs/program_options/src/options_description.cpp at line 242</tt>
    >
    This looks like error in the compiler, in other contexts friend declarations in partially specialized classes work. When using <tt>CC</tt> compiler I found several times that a problematic code construct starts working in isolation.
    Returning to the <tt>std::vector<bool></tt> issue I found that putting the implementation from stdcxx 4.3.0 works. Thus one needs to edit (or copy and fix) <tt>CC/Cstd/vector.SUNWCCh</tt> and <tt>CC/Cstd/vector.cc</tt> files
    I provide here the changes for impatient, as this is not a direct copy-paste (some macros in 4.3.0 need changing to their 2.2.1 (i.e. libCstd) equivalents)
    In <tt>vector.SUNWCCh</tt> file replace vector<bool>specialization with
    #ifndef _RWSTD_NO_CLASS_PARTIAL_SPEC
    template <class _Allocator>
    class
    #else   // if defined (_RWSTD_NO_CLASS_PARTIAL_SPEC)
         // use a macro to mutate _Allocator into allocator<bool>
    # define _Allocator allocator<bool>
    _RWSTD_TEMPLATE
    class _RWSTDExport
    #endif  // _RWSTD_NO_CLASS_PARTIAL_SPEC
    vector<bool, _Allocator >: private _Allocator
        typedef _RWSTD_REBIND(_Allocator, unsigned int)       _C_value_alloc_type;
        typedef vector                                        _C_self;
    public:
        typedef _Allocator                                      allocator_type;
        typedef bool                                            value_type;
        typedef _TYPENAME allocator_type::size_type             size_type;
        typedef _TYPENAME allocator_type::difference_type       difference_type;
        typedef _TYPENAME _C_value_alloc_type::pointer          pointer;
        typedef _TYPENAME _C_value_alloc_type::const_pointer    const_pointer;
        class iterator;
        class const_iterator;
        class reference {
    #if !defined (__INTEL_COMPILER) || !defined (_MSC_VER)
            // avoid MSVC 6.0 bug 576
            friend class iterator;
    #else   // if Intel C++ 8.1 with MSVC
            // work around Intel C++ 8.1 bug 575
            friend class _C_self::iterator;
    #endif   // Intel C++ with MSVC
            friend class const_iterator;
        private:
            unsigned int* _C_p;
            unsigned int _C_mask;
            reference (unsigned int* __x, unsigned int __y)
                : _C_p (__x), _C_mask (__y) { }
        public:
            reference () : _C_p (), _C_mask () {}
            operator bool () const {
                return !!(*_C_p & _C_mask);
            reference& operator= (bool __x) {
                if (__x)     
                    *_C_p |= _C_mask;
                else
                    *_C_p &= ~_C_mask;
                return *this;
            reference& operator= (const reference& __x) {
                return *this = bool(__x);
    #ifndef _RWSTD_STRICT_ANSI
          bool operator== (const reference& __x) const {
              return bool(*this) == bool(__x);
          bool operator< (const reference& __x) const {
    #ifndef _MSC_VER
              return bool(*this) < bool(__x);
    #else
              return int(*this) < int(__x);
    #endif
            bool operator!= (const reference& __x) const {
                return !(*this == __x);
            bool operator> (const reference& __x) const {
                return  __x < *this;
            bool operator>= (const reference& __x) const {
                return !(*this < __x);
            bool operator<= (const reference& __x) const {
                return !(*this > __x);
    #endif // _RWSTD_STRICT_ANSI
            void flip () {
                *_C_p ^= _C_mask;
        typedef bool const_reference;
        // hacks working around bogus g++ 2.95.2 warnings coming out of
        // iterators below as well as what's probably an MSVC 6.0 bug
        typedef reference       _C_ref;
        typedef const_reference _C_const_ref;
        typedef difference_type _C_diff_t;
        class _C_iter {
            friend class iterator;
            friend class const_iterator;
        private:
    #if defined (__GNUG__)
            // gcc 3.0.1 and prior take 14.5.3, p9 literally
        public:
    #elif    defined (_MSC_VER) && _MSC_VER <= 1300 || defined (__APOGEE__)
            friend class vector<bool, _Allocator>;
    #else
            friend class vector;
    #endif
            unsigned int* _C_p;        // pointer to the current word
            unsigned int  _C_offset;   // number of the pointed-to bit
            _C_iter (unsigned int* __x = 0, unsigned int __y = 0)
                : _C_p (__x), _C_offset (__y) { }
            // On Sun, gcc 3.1 does generate an incorrect copy constructor
            // that has as an effect an incompletely/incorrectly initialized
            // iterator.
    #if    defined (__sun__) && defined (__GNUG__) \
        || defined (__SUNPRO_CC) && defined (__amd64__)
            // working around a gcc 3.1 bug on Solaris where the compiler
            // generates bad code for the implicitly defined copy ctor
            // also working around a Sun C++ 5.9 optimizer ICE on x86_64
            // in wide (64-bit) mode (see STDCXX-551)
            _C_iter (const _C_iter& __it)
                : _C_p (__it._C_p), _C_offset (__it._C_offset) {}
    #endif   // gcc 3.1/Solaris || Sun C++ 5.9/x86_64
            void operator++ () {
                if (_C_offset++ == _RWSTD_WORD_BIT - 1) {
                    _C_offset = 0;
                    ++_C_p;
            void operator-- () {
                if (_C_offset-- == 0) {
                    _C_offset = _RWSTD_WORD_BIT - 1;
                    --_C_p;
            void operator+= (difference_type __i) {
                difference_type __n = __i + _C_offset;
                _C_p += __n / _RWSTD_WORD_BIT;
                __n = __n % _RWSTD_WORD_BIT;
                if (__n < 0) {
                    _C_offset = _RWSTD_STATIC_CAST (unsigned int,
                                                    __n + _RWSTD_WORD_BIT);
                    --_C_p;
                else
                    _C_offset = _RWSTD_STATIC_CAST (unsigned int,__n);
        public:
            bool operator== (const _C_iter& __x) const {
                return _C_p == __x._C_p && _C_offset == __x._C_offset;
            bool operator< (const _C_iter& __x) const {
                return _C_p < __x._C_p ||
                    (_C_p == __x._C_p && _C_offset < __x._C_offset);
            bool operator!= (const _C_iter& __x) const {
                return !(*this == __x);
            bool operator> (const _C_iter& __x) const {
                return __x < *this;
            bool operator>= (const _C_iter& __x) const {
                return !(*this < __x);
            bool operator<= (const _C_iter& __x) const {
                return !(*this > __x);
        class iterator
            : public _C_iter,
              public _RW_STD::iterator<random_access_iterator_tag,
                                       value_type, _C_diff_t,
                                       pointer, _C_ref> {
        public:
            // bring names used in declarations below into scope
            // (dependent base members not visible without qualification)
            typedef _C_ref    reference;
            typedef _C_diff_t difference_type;
            iterator (unsigned int *__x = 0, unsigned int __y = 0)
                : _C_iter (__x, __y) { }
            reference operator* () const {
                return reference (this->_C_p, 1U << this->_C_offset);
            iterator& operator++ () {
                return _C_iter::operator++(), *this;
            iterator operator++ (int) {
                iterator __tmp = *this;
                ++*this;
                return __tmp;
            iterator& operator-- () {
                return _C_iter::operator--(), *this;
            iterator operator-- (int) {
                iterator __tmp = *this;
                --*this;
                return __tmp;
            iterator& operator+= (difference_type __i) {
                return _C_iter::operator+= (__i), *this;
            iterator& operator-= (difference_type __i) {
                *this += -__i;
                return *this;
            iterator operator+ (difference_type __i) const {
                iterator __tmp = *this;
                return __tmp += __i;
            iterator operator- (difference_type __i) const {
                iterator __tmp = *this;
                return __tmp -= __i;
            difference_type operator- (iterator __x) const {
                return   _RWSTD_WORD_BIT * (this->_C_p - __x._C_p)
                       + this->_C_offset - __x._C_offset;
            reference operator[] (difference_type __i) {
                return *(*this + __i);
            friend iterator operator+ (difference_type __i,
                                       const iterator &__x) {
                return __x + __i;
        class const_iterator
            : public _C_iter,
              public _RW_STD::iterator<random_access_iterator_tag,
                                       value_type, _C_diff_t,
                                       const_pointer, _C_const_ref> {
        public:
            // bring names used in declarations below into scope
            // (dependent base members not visible without qualification)
            typedef _C_const_ref const_reference;
            typedef _C_diff_t    difference_type;
            const_iterator (unsigned int *__x = 0, unsigned int __y = 0)
                : _C_iter (__x, __y) { }
            const_iterator (const _C_iter &__x)
                : _C_iter (__x) { }
            const_reference operator* () const {
                return _C_ref (this->_C_p, 1U << this->_C_offset);
            const_iterator& operator++ () {
                return _C_iter::operator++(), *this;
            const_iterator operator++ (int) {
                const_iterator __tmp = *this;
                ++*this;
                return __tmp;
            const_iterator& operator-- () {
                return _C_iter::operator--(), *this;
            const_iterator operator-- (int) {
                const_iterator __tmp = *this;
                --*this;
                return __tmp;
            const_iterator& operator+= (difference_type __i) {
                return _C_iter::operator+= (__i), *this;
            const_iterator& operator-= (difference_type __i) {
                return *this += -__i;
            const_iterator
            operator+ (difference_type __i) const {
                return const_iterator (*this) += __i;
            const_iterator operator- (difference_type __i) const {
                return const_iterator (*this) -= __i;
            difference_type operator- (const_iterator __x) const {
                return   _RWSTD_WORD_BIT * (this->_C_p - __x._C_p)
                       + this->_C_offset - __x._C_offset;
            const_reference operator[] (difference_type __i) {
                return *(*this + __i);
            friend const_iterator operator+ (difference_type __i,
                                             const const_iterator &__x) {
                return __x + __i;
    #ifndef _RWSTD_NO_CLASS_PARTIAL_SPEC
        typedef _RW_STD::reverse_iterator<const_iterator> const_reverse_iterator;
        typedef _RW_STD::reverse_iterator<iterator>       reverse_iterator;
    #else
        typedef _RW_STD::reverse_iterator<const_iterator,
            random_access_iterator_tag, value_type,
            const_reference, const_pointer, difference_type>
        const_reverse_iterator;
        typedef _RW_STD::reverse_iterator<iterator,
            random_access_iterator_tag, value_type,
            reference, pointer, difference_type>
        reverse_iterator;
    #endif   // _RWSTD_NO_CLASS_PARTIAL_SPEC
      private:
        // These private functions are replicas of generic algorithms.
        //  We provide them here to avoid putting instantiations of
        //  the generic algorithms into an archive or shared library.
        //  This gives you full flexibilty in deciding where you want
        //  to put particular instantiations of the generic
        //  algorithms.
        void _C_fill (iterator __first, iterator __last, bool __val) {
            while (__first != __last) *__first++ = __val;
        void _C_fill_n (iterator __first, size_type __n, bool __val) {
            while (__n-- > 0) *__first++ = __val;
        template <class _Iterator>
        iterator _C_copy (_Iterator __first, _Iterator __last, iterator __res) {
            while (__first != __last)
                *__res++ = *__first++;
            return __res;
        template <class _Iterator>
        iterator
        _C_copy_backward (_Iterator __first, _Iterator __last, iterator __res) {
            while (__first != __last) *--__res = *--__last;
            return __res;
    private:
        iterator       _C_begin;
        iterator       _C_end;
        unsigned int * _C_bufend;
        unsigned int* _C_bit_alloc (size_type __n) {
            return _C_value_alloc_type(*this).
                allocate ((__n + _RWSTD_WORD_BIT - 1)/_RWSTD_WORD_BIT,
                          pointer(_C_begin._C_p));
        void _C_init (size_type __n) {
            unsigned int* __q = _C_bit_alloc(__n);
            _C_bufend = __q + (__n + _RWSTD_WORD_BIT - 1)/_RWSTD_WORD_BIT;
            _C_begin  = iterator(__q, 0);
            _C_end    = _C_begin + __n;
        void _C_insert (iterator, bool);
    public:
        vector (const _Allocator&  __alloc = allocator_type ())
            : allocator_type (__alloc), _C_begin(iterator()), _C_end(iterator()),
            _C_bufend () { }
    #if !defined (__SUNPRO_CC) || __SUNPRO_CC > 0x530
        // working around a SunPro 5.3 bug (see PR #25962)
        explicit
    #endif   // SunPro > 5.3
        vector (size_type __n, bool __val = bool (),
           const _Allocator&  __alloc = allocator_type ())
            : allocator_type (__alloc), _C_bufend () {
          _C_init(__n);
          unsigned int * __first = _C_begin._C_p;
          size_type __m = (__n + _RWSTD_WORD_BIT - 1)/_RWSTD_WORD_BIT;
          while (__m-- > 0) *__first++ = __val ? ~0 : 0;
        vector (const _C_self &__x)
            : allocator_type (__x.get_allocator ()), _C_bufend  () {
            _C_init (__x.size ());
            _C_copy (__x.begin (), __x.end (), _C_begin);
        template<class _InputIter>
        vector  (_InputIter __first, _InputIter __last)
            : allocator_type (), _C_bufend ()
          size_type __n;
          distance(__first, __last, n);
          _C_init(__n);
          _C_copy(__first, __last, _C_begin);
        ~vector () {
          _C_value_alloc_type(*this).deallocate(_C_begin._C_p, 
            _C_bufend - _C_begin._C_p);
        _C_self& operator= (const _C_self& __x)
          if (&__x == this) return *this;
          if (__x.size() > capacity())
            _C_value_alloc_type(*this).deallocate(_C_begin._C_p,
              _C_bufend - _C_begin._C_p);
            _C_init(__x.size());
          _C_copy(__x.begin(), __x.end(), begin());
          _C_end = begin() + __x.size();
          return *this;
        template<class _InputIter>
        void assign (_InputIter __first, _InputIter __last) {
            clear ();
            insert (begin (), __first, __last);
        void assign (size_type __n, const bool& __x = bool()) {
            clear ();
            insert (begin (), __n, __x);
        allocator_type get_allocator() const {
          return *this;
        // iterators
        iterator       begin ()       { return _C_begin; }
        const_iterator begin () const
        { return const_iterator(_C_begin._C_p,_C_begin._C_offset); }
        iterator       end   ()       { return _C_end; }
        const_iterator end   () const
        { return const_iterator(_C_end._C_p,_C_end._C_offset); }
        reverse_iterator       rbegin () { return reverse_iterator(end()); }
        const_reverse_iterator rbegin () const
          return const_reverse_iterator(end());
        reverse_iterator       rend () { return reverse_iterator(begin()); }
        const_reverse_iterator rend () const
          return const_reverse_iterator(begin());
        // capacity
        size_type size     () const { return size_type(end() - begin());  }
        size_type max_size () const {
            return _C_value_alloc_type(*this).max_size();
        void resize (size_type __new_size, bool __c = false);
        size_type capacity () const
          return size_type(const_iterator(_C_bufend, 0) - begin());
        bool empty () const { return begin() == end(); }
        void reserve (size_type __n)
            _RWSTD_THROW(__n > max_size(), length_error,
              __RWSTD::except_msg_string(__RWSTD::__rwse_InvalidSizeParam,
                "vector<bool>::reserve(size_type)",__n,max_size()).msgstr());
          if (capacity() < __n)
            unsigned int* __q = _C_bit_alloc(__n);
            _C_end = _C_copy(begin(), end(), iterator(__q, 0));
            _C_value_alloc_type(*this).deallocate(_C_begin._C_p,
                                                 _C_bufend - _C_begin._C_p);
            _C_begin = iterator(__q, 0);
            _C_bufend = __q + (__n + _RWSTD_WORD_BIT - 1)/_RWSTD_WORD_BIT;
        // element access
        reference       operator[] (size_type __n)      
    #ifdef _RWSTD_BOUNDS_CHECKING
            _RWSTD_THROW(__n >= size(), out_of_range,
              __RWSTD::except_msg_string(__RWSTD::rwse_OutOfRange,
                "vector<bool>::[](size_type)", __n, size()).msgstr());
    #endif   // _RWSTD_BOUNDS_CHECKING
          return *(begin() + __n);
        const_reference operator[] (size_type __n) const
    #ifdef _RWSTD_BOUNDS_CHECKING
            _RWSTD_THROW(__n >= size(), out_of_range,
              __RWSTD::except_msg_string(__RWSTD::rwse_OutOfRange,
                "vector<bool>::[](size_type) const", __n, size()).msgstr());
    #endif   // _RWSTD_BOUNDS_CHECKING
          return *(begin() + __n);
        reference       at (size_type __n)              
            _RWSTD_THROW(__n >= size(), out_of_range,
              __RWSTD::except_msg_string(__RWSTD::rwse_OutOfRange,
                "vector<bool>::at(size_type)", __n, size ()).msgstr());
          return *(begin() + __n);
        const_reference at (size_type __n) const
            _RWSTD_THROW(__n >= size(), out_of_range,
              __RWSTD::except_msg_string(__RWSTD::rwse_OutOfRange,
                "vector<bool>::at(size_type) const", __n, size()).msgstr());
          return *(begin() + __n);
        reference       front ()       { return *begin();     }
        const_reference front () const { return *begin();     }
        reference       back  ()       { return *(end() - 1); }
        const_reference back  () const { return *(end() - 1); }
        // modifiers
        void push_back (const bool& __x)
            if (_C_end._C_p != _C_bufend) {
                ++_C_end;
                *(_C_end-1) = __x;
            else
                _C_insert(end(), __x);
        void pop_back () { --_C_end; }
        iterator insert (iterator __it, const bool& __x = bool())
          size_type __n = __it - begin();
          if (_C_end._C_p != _C_bufend && __it == end()) {
              ++_C_end;
              *(_C_end-1) = __x;
          else
            _C_insert(__it, __x);
          return begin() + __n;
        void insert (iterator __it, size_type __n, const bool& __x);
        template<class _InputIter>
        void insert (iterator __it, _InputIter __first,
                     _InputIter __last);
        iterator erase (iterator __it)
          if (!(__it + 1 == end()))
            _C_copy(__it + 1, end(), __it);
          --_C_end;
          return __it;
        iterator erase(iterator __first, iterator __last)
          _C_end = _C_copy(__last, end(), __first);
          return __first;
        void swap (_C_self& __x)
          if((_C_value_alloc_type)*this == (_C_value_alloc_type)__x)
            _STD::swap (_C_begin,  __x._C_begin);
            _STD::swap (_C_end,    __x._C_end);
            _STD::swap (_C_bufend, __x._C_bufend);
          else
            _C_self _x = *this;
            *this = __x;
            __x=_x;
        static void swap(reference __x, reference __y);
        void flip ();
        void clear()
          erase(begin(),end());
    #if defined (_RWSTD_NO_PART_SPEC_OVERLOAD)
        friend void swap (vector& __lhs, vector& __rhs) {
            __lhs.swap (__rhs);
    #endif
    #undef _Allocatorto be continued in the next post, whole text exceeds 30k characters :)

  • Libraries for Soundtrack and Motion etc

    you know you have these great big resource libraries for Soundtrack and Motion etc - do they have to always be in one specific location on your hard drive, or could you move them to a separate (connected) disc and just tell Final Cut to look in a different location in Preferences or whatever? A bit like having your iTunes library on a separate drive.
    Cheers
    Al

    Yes you can move them.
    Regards
    TD

  • Installed 8.1 said library was damaged and lost

    I tried to open i-tunes after installing and re-staring my computer and it told me my library was damaged and saved to my computer. I-tunes said my library was lost when it tried to import it so i tried manually but my library is not in my music folder to import. help me please.

    This Article is useful: No music shows up in iTunes after upgrading
    Perhaps you may still have the music files on your PC -- but not seen in iTunes or the PC.
    Do a thorough search of your PC for your Music Files using the tips below:
    First - Make sure that you enable your Windows Explorer to view 'Hidden' files:
    1) Open Windows Explorer
    2) Select 'My Computer'
    3) On the main Windows Explorer menu: Tools=>Folder Options=>'View' tab
    4) In 'Advanced Setting' --> Files and Folders --> Hidden files and folders:
    4a) Select 'Show hidden files and folders’
    5) Click 'Apply to All Folders'
    6) Click 'OK'
    Then check using Windows Explorer in 'My Music\iTunes\iTunes Music\...' for folders containing your music (or wherever you keep your music folders).
    Also check in your Recycle Bin to see if you accidentally deleted it. If so, ‘Restore’ it back to it’s original spot.
    Then try running a search using Windows Explorer (or similar) for files with the extensions of: m4a, m4p, MP3, OR with the partial names of the songs you are missing.
    Do all the above before you decide that your music files have been completely erased from your hard drive.
    IF you can locate the music files/folders, we can get iTunes to recognize it. Try one of these:
    If you have a backup iTunes database file available....
    1a. --- Close iTunes. If you have a backup (or previous version) of the ‘iTunes Library.itl’ database file, then place a copy of that file in the ‘...\My Music\iTunes’ folder (or wherever the current, incomplete file resides). Also look in the ‘Previous iTunes Libraries’ Folder for the backup ITL files saved by iTunes prior to an upgrade.
    1b. --- Open iTunes
    If you have a full version of the iTunes Music Library.xml file available....
    2a. --- Within iTunes: File=>Library=>Import Playlist and browse to the location of the XML file
    2b. --- Select the XML file and allow iTunes to Import the music information
    If no backup ITL or XML files exists….
    3a. --- In iTunes choose: Edit=>Preferences=>Advanced tab. Select 'Change' and browse to the music folder in your PC drive (if it isn’t already). Click OK to save that setting.
    Then....
    3b. --- In iTunes choose: File=>’Add Folder to Library’ & browse to the music folder in your PC drive. Click OK.
    Without the ITL file or the XML file, re-‘Adding’ the music files to the Library will lose you the Ratings, Play Counts, Date Added and Last Played attributes, as well as your Playlists. No real way to recover them if you haven’t made prior backups. Something to consider for the future.
    IF your music files are truly gone, and you have some or all of your music files on your iPod, these links will give you several methods of recovering whatever songs remain on your iPod; some free, some third-party software, some more comprehensive for restoring Playlists, Ratings, Play Counts, etc. Read them and their associated links before deciding on a strategy that works for you. There are many various third-party software programs that will offer a more robust process, or an easier GUI. Do a Google search for them if the links below leave you wanting.
    Don King Resurrected: Deleted files from hard drive (free user steps – music recovery only)
    MacMuse: Computer Crashed (free user steps – music recovery only)
    Copying music from iPod to computer (a primer on various methods and software)
    Copying Songs from Your iPod to a Mac or PC (resource for 3rd party software)
    iPodRip Software (Free trial: Mac & Windows)
    PodUtil Software (Mac & Windows)
    YamiPod Software (Free: Mac & Windows)
    PodPlus Software (Windows)
    TuneJack Software (Windows)
    Senuti (Mac OS X v10.3 or higher Recovery Utility)
    XPlay (Windows software For Music Recovery &/or Cross-Platform Functionality)
    XPlay Photo Browser (For recovering Photos)c
    Extremely Simple & Free Method: (just to recover the song files – may not work on a Mac)
    1 - Open iTunes
    2 - Edit=>Preferences=>’Advanced/General’ tab
    2a --- Select ‘Copy files to iTunes Music folder when adding to library’: checked
    2b --- Select ‘Keep iTunes Music folder organized’: checked
    2c --- Click OK to store changes
    3 - Attach your iPod to the PC and hold down the ‘Shift+Ctrl’ keys until the iPod is fully recognized (this will defeat the auto-sync process)
    4 - If you get a dialog box to link the Library, decline this option
    5 - Within iTunes: Edit=>Preferences=>’iPod’ tab: switch iPod to ‘Manually manage songs & playlists’ – click ‘OK’
    6 – Eject iPod
    7 – Close iTunes, then reopen iTunes and attach the iPod (it’s in manual sync now)
    8 – File=>Add Folder
    9 - Browse to and open ‘My Computer’ (click on the ‘+’) and select the iPod (or the lower ‘\iPod_Control’ sub-folder)
    10 - Click OK
    The music files should start to transfer back into iTunes with its correct information
    This will take some time depending on your PC’s speed and the amount of songs on the iPod
    No Playlists, or Ratings, Last Played, & Play Count attributes will be transferred from the iPod to iTunes using this method.
    If you have problems with seeing the iPod within 'My Computer', try again switching your update method to 'manual', detach the iPod, then reconnect the iPod to the PC.
    AFTER recovering your Library, strongly consider developing a thorough backup strategy for just this type of situation.
    You need at least two full sets of your music, not including what is on the iPod:
    a) One full set on the PC within iTunes (on internal HD or ExHD)
    b) One full set on an separate external backup medium (CD/DVD/ExHD/other)
    c) One (full or partial) set on the iPod
    Music files on just the iPod and only one other medium is not considered having any backup.
    If you cannot store your complete music files on the computer’s internal HD, then create and maintain at least two external sets (any multiple combinations of ExHDs, DVDs, CDs).
    Backup both the music files and the Library database file (iTunes Library.itl). What are the iTunes Library files?
    Here is a post on developing a thorough backup strategy:
    http://discussions.apple.com/message.jspa?messageID=9095648#9095648
    Best of Luck

  • Library Share Permissions and Ohter Questions

    I am setting up Library Server and want to know little bit about it:
    1.  What are the permissions required on the share of library server? which service accounts, computer accounts or cluster objects to add? and what permissions?
    2.  Is there any limitation with respect to name of the share that it should not have any spaces in the name?
    3.  Is there any limitation as how many folders inside a folder would be listed in the console?  I have around four folders inside the main shared folder and only two are showing in the console.  Can it only contain packages or single file
    and not extracted ISO images?  The folders inside the main shared folder that is showing only shows bit of the actual content of the folder.
    Thanks in advance.

    Thanks for the replies.
    1.  But, when we create a folder and share it to be seen by the VMM Console, with what permission should be shared i.e. everyone read only or vmm admin account read only, etc.
    2.  So, it is better to use underscores on all folders at least just to be safe.  correct me if I am wrong.
    3.  Actually, I have made a folder of Setups which has folders like applications, operating systems and drivers, etc. folders with respective content in them.  When I am adding it as library share, it shows some of
    the content not all of it.  Should I just add .cr to the parent Setup folder or all the folders inside it?

  • HT1229 How to bring iPhotos including faces and albums etc, to new installation?

    RE Article:-
    HT1229: iPhoto: How to move the Library folder to a new location
    I have installed all Programs on new drive and want to bring in my iPhotos including faces and albums etc. Could I transfer iPhotos from the old drive (in an external caddy) using copy, and paste into the new system??
    I have copied all the photos but now these do not carry all the Albums, Face names etc.
    The old system (which was running agonisingly slow) had been updated to Lion from Snow Leopard but the current new install of Snow Leopard will not allow the upgrade to Lion.
    Any advice appreciated

    The old system (which was running agonisingly slow) had been updated to Lion from Snow Leopard but the current new install of Snow Leopard will not allow the upgrade to Lion.
    Are you sure your Macbook meets the hardware requirements for Lion?
    In order to install Mac OS X 10.7 you will need:
    Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of RAM
    Mac OS X 10.6.6 or later with the Mac App Store installed
    At least 4GB of additional disk space to accommodate the download, but more is obviously recommended
    OT

  • I really need emergency iphone help- please- it has gone into restoration mode and wont come out unless i click restore- if i do will i loose all my photos and videos etc? please help!!!

    i recently plugged my iphone4 into my laptop to sync, when i plugged it in, itunes told me that i needed to update my software, so i clicked up date and walked awayfrom my computer leaving it to do the rest, but by the time i came back to my laptop 2-3 hours later i had realized that it has run out of charge and because of it my phone had gone into retoration mode- and the only way to fix it was to press restore. what do i do? do i click restore or will that take my phone back to factory settings as i have a tonne of photos and videos etc that i have not backed up yet?
    what should i do anny coments or ideas please let me know!

    The first step in the upgrade process is a backup.
    Did iTunes not create a new backup when you first connected it?
    You really should be syncing your device and copying pictures off of it on a regular basis.
    Starting an upgrade without first syncing and copying the pictures off is not a bright idea.
    At this point, you only option is to restore.
    Also, in the future, ensure your laptop is plugged into external power before starting upgrades.

  • Error while accessing a library using content and structure

    I have a library having document and folder inside it. When I open the library using content and structure I get an error with a correlation ID. When checked the the logs with Correlation ID got an error message "View 'All Document' does not exist."
    'All Document' is name of default view on the library.
    When I open the library from view all site content the library is being opened.
    Please help!!!

    Hello Victoria,
    Thanks for  the response.
    I have tried troubleshooting steps given by you. 
    Check if the issue occurs with other users. Use another user to access the library in Content and Structure and then compare the results. --
    I tried with different users but no luck
    Make sure that the user account with issue has permission to view the All Documents view of the library. --
    Yes, user Account have the permission
    Check if the issue occurs with other libraries in the Content and Structure. If not, I recommend to save the library as
    a template including contents and then create a new library based on this template. After that use the new library instead of the old library. --
    No other library have this problem. I cannot save the library as template including the contents as the it has many folders and  files. The current size of library is 786 MB
    Clear cache in the browser or use another browser to see if the issue still occurs. --
    tries but issue persists.
    Best regards,
    Ratnesh

Maybe you are looking for

  • Analysis Authorization problem (new BI auth concept)

    Hi, I am trying to implement a analysis authorization for controlling the sales organization characteristic. I am working in a APO system.... when I set a * in the value list for the sales organization ..... I can select characteristic in demanding P

  • How do I stop Mail from removing messages from my Gmail server?

    I have checked several of the posts in here already and do not seem to be able to find an answer to my question. In the version of Mail on Tiger, on the Account preferences pane and the advanced tab, there is an option check box to Remove Message aft

  • How to call a form so as it starts edit  mode (new record) directly

    Hi, I want to call a form from a button so as it starts edit mode directly (for a new record). I also want to pass it parameters for the new record please help me thanks

  • Very slow Rendering and Exporting

    Hello, I switched to Premiere CS6 from FCP 7 after FCPX came out and haven't looked back. In a lot of ways, it's much better for certain tasks. In others, it's not. Initially playing back "red-lined" content worked fine and i was able to view the edi

  • Does ERM has a database of itself?

    hi all, when a role is created through ERM, and after completion of Role Generation stage, it gets created on back-end. So, is there a separate database of ERM, where role is created/generated First and then copied/created on Back-end? if role is dir