Symbol pollution between two versions of a library

I am having problems with a library that is calling a function defined within itself from a different version of the library.
My company has a core library (let's call it libcore) that handles abstracting across platforms a number of common, low-level functions. At some point in our history, we decided to start supporting Unicode for a toolkit used by third party developers. To accomplish this, we took our old library, redefined uses of char * to a custom string type and conditionally compiled the library to create a version that took in char *'s and a version that took in wchar_t *'s.
So, we have libcoreA.so and libcoreU.so. Our third party app loads the Unicode version of our library which dynamically loads a list of file format libraries which all depend on the Ascii version of our library. In this process, the file format libraries call a string copy function from libcoreA which is supposed to call a string length function from libcoreA.
However, in the call stack for a crash, we see:
[1] custom_strlen (from libcoreU) <-- Bad symbol! No biscuit!
[2] custom_strdup (from libcoreA)
[3] file_format_lib_setup (from file format library)
[4] init_format_list (from libcoreU)
[5] get_list_of_formats (from application)
All of these libraries are compiled with "-Bgroup -z defs" to avoid confusion. Usually, when we leave this out, it doesn't even run or it makes a mistake during a call from one library into another, but I've never seen this happen before with the Ascii lib trying to call a function within itself.
The top level application isn't compiled with "-Bgroup -z defs" because it can't be. (It's a MainWin compiled COM app and is always going to be missing mainwin_init. I don't even want to go there.) However, in the past, this has never caused a problem. The application links with libcoreU and then later dynamically loads and initializes libcoreA on its own. The obvious question is, "What have you changed?" Unfortunately, I don't know what has changed that could cause this.
Any suggestions? This problem is driving me mad because I can't figure out a way to debug it. Applications that load either the Ascii OR the Unicode libs don't have problems. Applications that load both suddenly do with this release.

You know, I think it sometimes takes making a fool of yourself publicly to finally catch your errors. I have a problem in my make file that was making the Ascii version of the library compile without "-Bgroup -z defs".
Ignore this thread.

Similar Messages

  • How to compare between two versions of template project???

    Dear All,
    We are doing some cleanup activity in our solution manager system. For this actually we have created the replica of this project from production system to a sandbox system. We can do the cleanup of this project and can transport this new project to our production system and can move on.
    But the pbm we are facing now is, how do we bring in the data captured or added to the production system after we have copied it to the sandbox system?
    Can anybody throw in some light into this issue?
    We tried the option of creating different version for the template and using the sa_project_upgrade transaction to compare between two versions of the template using "Current Version in Project" option. Not sure whether this will work out.
    {{We thought that if we try in this way, we can find the difference between the two versions of the template project, and from there, might be we can bring in the new changes into our new project manually. We do agree that this is not the right approach.}}
    But the end result we got was like we got the information regarding where all there is the difference between the current version in the template project to that of the original(in our case it checked against BPR as we selected the scenarios from BPR for this template). But what we expected was a difference between two versions of the template.
    Pls help. Pls make a try to help. Any thoughts in this direction will help us to move forward.
    Any info will be suitably rewarded.
    best regards,
    Krishna.

    Hi Andreas,
    Thanks a lot for your immediate reply.
    I too had that doubt that my appraoch will not work. But wanted to get confirmation that it will not work. Also wanted to know about any other approach. Thank you for providing me with some alternative approach.
    I tried the option suggested by you. But while running the comparison report for the newly copied project with the option "New Version of Original", I am getting the below error. I do agree that this approach should work. But for some reason I am getting the below error. Can you pls look into the same and help me out.
    Internal error
    Message no. AI_COMPARE006
    Diagnosis
    An unexpected error has occurred in:
               program CL_SA_PROJECT_UPGRADE_ONLINE==CP
               include CL_SA_PROJECT_UPGRADE_ONLINE==CM002
               line                                                  102
    Procedure
    Restart the transaction. If the problem persists, check if a SAP note is existing for this problem. If not please send a message to the SAP hotline.
    Thanks a lot in advance.
    best regards,
    Krishna.

  • Function chat between two versions of Portal

    Hi experts,
    i would like to know if it´s possible to create a chat between two different versions of EP. (example: EP 6 and EP 7). I´m looking for the information but i cann´t find anything about it.
    Thanks a lot!!!
    L

    Hi
    Go through these links
    https://www.sdn.sap.com/irj/sdn/thread?threadID=456691&tstart=30
    http://www.collaborate.com/publication/newsletter/nl0502.html
    Reward me..

  • How to update a package between two versions

    I have a package that has two versions, for example: app_1.0 and app_2.0. How can I update the app_2.0 to a system that already installed the app_1.0. I want to overwrite the app_2.0 to the app_1.0 instead of installing another instance of app_2.0.
    Any reply is appreciated. Thanks.

    CityCat wrote:
    Hi - i bought my MAC in Australia…
    There's your problem, try turning it upside down.
    May I suggest a work around.
    I don't know why you want to put a space between the numbers and the percentage sign as that is not standard practice, but:
    +Select last number and % > Inspector > Text > Text > Spacing > Character > drag to the right+
    Peter

  • Moving a project between two versions of FCP- Home and College

    Hope someone can help. We're editing a project on an iMac at home, and a G5 at college. Our iMac is running FCP 5, the college ones are still on FCP 4. If we open the saved files, from an external HD, that we have been working on in college, we cannot then open those files in college again. We don't have version 4 to install on our machine, and the college won't buy version 5. Is there any way artound this problem, or do we have to work on the project in sections, then assemble the final peice on the iMac? We can get advice and help in college, and we need our teacher to help us with certain sections, so we need to be able to open up the project in college too, after we've worked on it at home.
    Any help would be greatly appreciated.

    Yeah, no XML in version 4.0 - it was introduced in 4.1 (which, unlike the upgrade from 5.0.x to 5.1, is simply a download from Apple, if the school will let you update).
    In terms of what version of XML you should use:
    Version 1 for FCP 4.1 to 4.5 (aka FCP HD)
    Version 2 for FCP 5.0.0 to FCP 5.1.1
    Version 3 for FCP 5.1.2 to 5.1.4
    (Version 4 for FCP 6.0)

  • How to check differences between two bpel jar files

    Hi,
    Can some one please suggest, how to check the differences between two versions of a BPEL process jar files.
    Thanks in advance!

    Hi,
    Try this,
    SELECT   cons.owner AS child_owner, cons.table_name AS child_table,
             cons.constraint_name constaint_name,
             cons.constraint_type constraint_type, col.owner parent_owner,
             col.table_name parent_table, col.column_name column_name
        FROM dba_cons_columns col, dba_constraints cons
       WHERE cons.r_owner = col.owner
         AND cons.r_constraint_name = col.constraint_name
         AND col.owner = 'MY_USER'
    ORDER BY child_table;Thanks,
    Shankar

  • Two versions of Robo on one machine

    I have RoboInfo 5 and RoboHelp 7 installed on my computer.
    RoboInfo publishes to RoboEngine on Win 2000 server. RoboHelp 7
    publishes to RoboHelp 7 Server on Windows 2003 server.
    I recently upgraded to a newer computer. We re-installed
    RoboHelp and then later installed RoboInfo again. Since doing this,
    I'm not able to publish our RoboHelp projects. The server crashed,
    and so far we haven't been able to get it going again.
    Don't know if it had anything to do with re-installing the
    software, but I think I remember reading somewhere in the forums
    about conflicts that can arise between two versions of Robo on the
    same machine. Is this a possibility, and is it recommended that
    they be installed on different machines?
    It is interesting that now in my RoboHelp projects folder,
    the .xpj project icons show the RoboInfo icon, not the RH7 icon
    (and RoboInfo was installed last).

    There can be conflicts between different versions but you had
    both working OK before. I think the problem here is the order in
    which you installed them.
    As with most software that permits multiple versions to run,
    the installation procedure is earliest first.

  • How do i share iPhoto library between two user accounts

    I need to share my iphoto pictures between two accounts on the same computer

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • I would like the share an iTunes library between two different accounts on one Mac. How do I do this?

    iTunes no longer works properly (aka at all) while using one of the user accounts set up on my iMac. It does, however, work when logging in under another user account on the same iMac. (if any of you can help me solve this issue that would be perfect). If there is no solution can anyone help with my request to share an iTunes library between two different accounts on one Mac. How do I do this?

    jc_hering wrote:
    that works for anything he purchases after he creates the new account.  What about his current music that currently resides in my itunes library?  How can I get his current music out of my library into his new account/library??  Thanks..
    Copy it to his computer into his iTunes library and authorize his computer with the iTunes account used to purchase them..
    You cannot tranfser items from one iTunes account to another. Purchased items remain part of the iTunes account is was purchased with.
    iTunes account - used to purchase items
    iTunes library - where purchases (and CD RIPs) go on the computer

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • Can I put my library on an external hard drive and use it between two computers?

    Can I put my library on an external hard drive and use it between two computers? I have two MBP; I will refer to one as computer A and to the other as computer B. I would like to be able to plug in my external hard drive, boot up iTunes, and if there were any changes made to the library previous to its last time accessed on this compluter, they show up on that computer, regardless of being imported on the other.
    A hypothetical example: I import three albums called 1, 2, and 3 on computer A over a week or so. I take the external hard drive and plug it into computer B. The entire library which was visible on A, is visible on B, including albums 1, 2, and 3.
    Is this possible? If so, what files need to be copied onto the external? I'm trying some different combinations, trial and error basically. Hopefully someone knows and can answer before I mess up my library. I also want to do this to free up space on my computer. All importing will be done from disc.

    iTunes/Preferences/Advanced : point your iTunes to the new location of the Library.
    Set "Share on local network" in the Sharing tab, and you or everyone on the local network can play your music.
    You make a backup first of the Library.
    Move the follwing to the new location:
    /Users/your username/Music/iTunes/iTunes Music
    have fun.

  • Share a library between two users on the same mac?

    It is possible to share a library between two users on the same mac?

    It's doable. As it's been pointed out Aperture has no provisions for file locking so you can't have two users accessing the library at the same time. This includes having one user having the library open only for browsing. Aperture doesn't have a +Read Only+ mode, when it opens the library, even if you make no changes to any images, the library will be written to.
    This also means you can't have one user open the library and then stop using Aperture but still have the library open and then have another copy of Aperture open on the library.
    Of course if you have two copies of Aperture running even they are on different libraries you'll be in violation of the license and you'll have bigger problems to worry about then a toasted library.

  • Sharing iPhoto Library between Two User Accounts

    Is there any way to fully share a single iPhoto library between two user accounts on one machine (iMac 2.0GHz dual core Intel, 10.5.1, iPhoto '08), without using an external drive (because I don't have one)? By share, I mean each user has full rights and priveledges to the entire library, regardless of who uploaded the pics. Holding down the option key on iPhoto startup does not work because my wife can't access the pics I loaded even though she's pointing to the shared library in a shared folder.

    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc. then:
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to an external HD set to ignore permissions. *You could also use a dmg*.
    (Some people have had success putting the library in the Users/ Shared folder. If you do this make sure the file permissions are set to allow read/write access to everyone. But that's unlikely to work on 10.5 because of the way that the permissions have changed with the new OS.)
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • How do I sync the same library between two computers?

    I have an iMac and a Macbook Air, and I am constantly buying music betwen the two computers, and my iPhone. I want to be able to sync up my iPhone on both computers, but it keeps telling me I have to resync my entire phone, which is just crazy. How can I sync up itunes? I have .mac to sync my contacts, mail, etc.

    I have an iMac and a Macbook Air, and I am constantly buying music betwen the two computers
    Constantly? The MacBook Air is brand new.
    Even if you sync iTunes between two computers With something like this -> syncOtunes, you will still get this message if you sync to the other computer. The libraries may be have the same music but they are not the same library.

  • I have my library in AIFF format on my iMac. I want to converte all in Apple less loss on my macbook pro. how can i do? becouse if i converte the files, i find on library the two version, AIFF and Apple lessloss....

    about 300 CD imported on my IMAC in AIFF version.
    I want to create the same library on my macbook pro, but Apple lessloss to use for ipod and other device.
    I import on the finder'S macbook pro all the library ( many gigabyte in AIFF version). I open Itunes, add to library the folder, on preference i set Apple lessloss, but itunes import AIFF version.
    If i converte on itunes the files, i find all the two version: AIFF and Apple lessloss. I cannot remove manually all the file AIFF....
    Duplicate files is impossible to remove with 11 version...

    Select 'Songs' then 'List'. Click on the top of the 'Kind' column to sort by type of file, thus bringing all the AIFF files together. (If you don't have a 'Kind' column, enable it in View>View Options).
    Click on the top AIFF file in the list, then shift click on the bottom one to select them all. Hit the delete key. At the prompt, be sure to choose to move them to the Trash or they will disappear from the list but remain in the actual Library in the Finder.

Maybe you are looking for

  • To display posting date in alv top of page area for transaction KOB1

    I want to display posting date given on selection screen of transaction KOB1 to the alv top of page area on final alv output . what are the possible solutions ?

  • Recognition of COS/COGS Account if the process is A/P Reserve Invoice

    hi there, i am trying to post an A/R Reserve Invoice of non-inventoriable item because it's Advance payment to Supplier scenario. would you know on what transaction can i create to recognize the COS/COGS Account of it? i believe if my process is : 1.

  • Setting Up Photo Gallery in Bridge

    I have about 30 pictures that i would like to set up in Bridge cs5 like: - selected 30 pics in a folder - tried html gallery template - current issue = I selected 30 pics but gallery only shows 20 - missing 10 Q: how do I fix this?

  • Best MacBook  for a med student (5 years)

    I'm currently looking to buy a laptop for my course in college and preferably the one I choose would last for as much of my degree as possible, a bit over 5 years. My main concern then is longevity and I'm trying to choose accordingly. At the moment

  • WCS upgrade to Prime Infrastructure 1.3

    According to this doc: http://www.cisco.com/en/US/prod/collateral/netmgtsw/ps6504/ps6528/ps12239/deployment_guide_c07-721232.html#wp9000642 I can upgrade directly from WCS to PI 1.3.  This doesn't seem to be the case, the "ncs migrate" command does n