Afantee Lee wrote: > Hi, Jonathan, James. > Thank you for you great suggestions, It saves me a lot of time. > Now, I understand, we can not simply copy the libthread.so or libc.so from > Opensolaris to Solaris, due to the incompatibility. > > Another quick question is here (maybe it is very naive question) > > Does the user program compiled on Open-Solaris run on Solaris, or verse-visa > ? > > In another word, Are Open-Solaris and Solaris compatible at user-program > level ?
Basically, yes. The longer answer is that Sun always had a binary compatibility program with specific terms to it, and I assume (but haven't checked) that Oracle has a similar program. The usual scheme is that you can be sure that if you compile on Solaris version X, and you use only the documented interfaces, then your program will run on Solaris X+1 and future releases. That's true for both user programs and kernel modules. Going the other direction -- compiling on Solaris X+1 and then attempting to run on Solaris X -- isn't guaranteed to work. It might, but it might not. In general, source compatibility is offered in that direction, but only if you avoid any "new" features in X+1 that aren't in X. What is not possible is replacing arbitrary components of the system. If you do that, you're basically on your own, and no compatibility or safety of any sort is guaranteed. If you replace components that come with the system, it's assumed that you know what you're doing. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code