[Top][All Lists]   Re: SCO/bugfix patch 5 of 10: exclude -lc on
SCO platforms  From: Kean Johnston Subject: Re: SCO/bugfix patch
5 of 10: exclude -lc on SCO platforms Date: Sun, 30 Oct 2005
20:09:31 -0800 User-agent: Mozilla Thunderbird 1.0.2
(Windows/20050317)  Kean Johnston wrote: Patch 5 of 10 attached
...  Tim caught a small ommission. A corrected patch is
attached.  On some releases of OpenServer 5, libc was poorly
constructed and had static versions of __ctype. Due to a bug
with copy relocations, linking a shared library with -lc would
result in a shared library having one notion of __ctype, and the
a.out having another. Thus, things like atoi() would behave
differently inside the shared library versus the a.out. This is
really bad. Also, there is no need to link in -lc, as it is
always loaded by definition, as that is the RTLD and you cant
have any form of dynamic ELF program without it.  On OpenServer
6 and UnixWare, explicitly linking with -lc is even worse. The
threads library is constructed in such