Problem with glibc v2.1.3 and _xstat.

Problem with glibc v2.1.3 and _xstat.

Post by Peter Chapi » Sat, 15 Apr 2000 04:00:00



I recently did a manual installation (not a prebuilt package) of glibc
v2.1.3. I was running glibc v2.0.7. I installed the new library as my
primary C library by using --prefix=/usr on configure. I used gcc
v2.95.2 to do the compile. The compile executed without error. Make
check showed no problems. I then booted into single user mode and did
make install without any problems. Upon reboot the system ran normally.
I can compile and link new (simple) C programs without error.

But... there is one quirk.

When Apache loads it complains that it can't load the php support
library (a .so file) and exits. The reason: "unresolved symbol _xstat".
My workaround is to disable php support for now.

I remember reading something about this _xstat issue in one of the
documents I reviewed before doing this installation. However, I can't
seem to locate that information now. It's not in the FAQ and it's not in
the INSTALL file. I just don't know where I saw it. Does anyone know
what the story is with _xstat and glibc v2.1.3?

TIA

Peter

 
 
 

Problem with glibc v2.1.3 and _xstat.

Post by A Guy Called Tykett » Sun, 16 Apr 2000 04:00:00


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Quote:> When Apache loads it complains that it can't load the php support
> library (a .so file) and exits. The reason: "unresolved symbol _xstat".
> My workaround is to disable php support for now.
> I remember reading something about this _xstat issue in one of the
> documents I reviewed before doing this installation. However, I can't
> seem to locate that information now. It's not in the FAQ and it's not in
> the INSTALL file. I just don't know where I saw it. Does anyone know
> what the story is with _xstat and glibc v2.1.3?
> TIA
> Peter

        From the GLIBC FAQ, at
http://www.gnu.org/software/libc/glibc-FAQ.html:

17. ``Looking through the shared libc file I haven't found the
   functions `stat', `lstat', `fstat', and `mknod' and while linking on
   my Linux system I get error messages. How is this supposed to work?''

   {RM} Believe it or not, stat and lstat (and fstat, and mknod) are
   supposed to be undefined references in libc.so.6! Your problem is
   probably a missing or incorrect /usr/lib/libc.so file; note that this
   is a small text file now, not a symlink to libc.so.6. It should look
   something like this:
GROUP ( libc.so.6 ld.so.1 libc.a )

   or in ix86/Linux and alpha/Linux:
GROUP ( libc.so.6 ld-linux.so.2 libc.a )

        This does also include _xstat. Try recompiling Apache, and you
should be good to go. Don't forget to recompile the module as well.

                                                        BL.
- --


Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE4+BmKyBkZmuMZ8L8RAnFCAJ4xJBpWXsN8ined0N5i9PJR1izDkQCg6Id0
LLpIz4vTBIvqlJgijFK/0ec=
=mx/m
-----END PGP SIGNATURE-----

 
 
 

Problem with glibc v2.1.3 and _xstat.

Post by Daniel Sand » Thu, 20 Apr 2000 04:00:00


Quote:> > When Apache loads it complains that it can't load the php support
> > library (a .so file) and exits. The reason: "unresolved symbol _xstat".
> > My workaround is to disable php support for now.

> > I remember reading something about this _xstat issue in one of the
> > documents I reviewed before doing this installation. However, I can't
> > seem to locate that information now. It's not in the FAQ and it's not in
> > the INSTALL file. I just don't know where I saw it. Does anyone know
> > what the story is with _xstat and glibc v2.1.3?

> 17. ``Looking through the shared libc file I haven't found the
>    functions `stat', `lstat', `fstat', and `mknod' and while linking on
>    my Linux system I get error messages. How is this supposed to work?''

>    {RM} Believe it or not, stat and lstat (and fstat, and mknod) are
>    supposed to be undefined references in libc.so.6! Your problem is
>    probably a missing or incorrect /usr/lib/libc.so file; note that this
>    is a small text file now, not a symlink to libc.so.6. It should look
>    something like this:
> This does also include _xstat. Try recompiling Apache, and you
> should be good to go. Don't forget to recompile the module as well.

Still doesn't work.  _xstat, _fxstat, _lxstat, and their 64-bit versions are
not listed as globals in libc.map.  So they are inserted into the library as
locals instead of weak references.  Is this intended?