[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: glibc-2.2.2-9 on Wolverine issues



On Mon, Apr 09, 2001 at 02:22:59PM -0400, Matt Wilson wrote:
> How are you linking your application?  Use gcc, not ld, and add -lc.

OR add, not AND add -lc. gcc -shared adds -lc already.
Basically, what changed in glibc is that fstat/stat/lstat/mknod (which are
not defined in libc.so.6 but in libc_nonshared.a) are now protected symbols,
which forces every program or shared library to have their own copies of
those tiny wrappers (which is how it should have behaved).
Otherwise, this leads to problems like we had with the Kerberos libraries,
where kerberos libraries were exporting fstat and suddenly when recompiled
and gcc decided to inline all fstat's the symbol went away and applications
started to fail. With protected fstat/... this won't happen ever again.
Just recompile the shared library and you should be ok.

	Jakub





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]