Re: linkat, LINK_FOLLOWS_SYMLINKS, and Solaris

2010-12-27 Thread Bruno Haible
Paul Eggert wrote: > Given the other problems that ensue on Solaris when one compiles and > links to different standards, the simplest answer may be just "don't > do that". It's not just the __xpg4 and __xpg6 stuff; it's also the > _lib_version stuff: scanf behaves differently depending on which >

Re: linkat, LINK_FOLLOWS_SYMLINKS, and Solaris

2010-12-27 Thread Bob Friesenhahn
On Mon, 27 Dec 2010, Bruno Haible wrote: This is not realistic: People are not distributing libraries in this way, and are not even aware for which standard a library was built and tested for. ("file libfoo.so" does not tell. You need "nm libfoo.so | grep values".) Since it seems that evidence

Re: linkat, LINK_FOLLOWS_SYMLINKS, and Solaris

2010-12-27 Thread Paul Eggert
On 12/27/2010 05:03 AM, Bruno Haible wrote: > Your proposed answer "don't do that" would imply that every library > is distributed in different variants, one for each standards compliance. No, I was thinking more along the lines "don't use -xc99=all". It's clearly a problem to do that, or anything