This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bincompat problem with 2.0.102 (StarOffice 5)


> 
> hjl@lucon.org (H.J. Lu) writes:
> 
> > 1. foo uses libx.so and liby.so.
> > 2. libx.so is compiled against glibc 2.0.
> > 2. liby.so is compiled against glibc 2.1.
> > 
> > I think foo will have a problem with libio routines if FILE * is used
> > between libx.so and liby.so.
> 
> There certainly can be problems like this.  But the only other library
> which knows about FILE internals is libstdc++.  So keeping this in
> sync with libc should be sufficent.

I don't think so. Say we have

extern FILE *fp;

In libx.so, we have

	fp = fopen (.....);

In liby.so, we have

	fclose (fp);

Can you tell me which fopen/fclose are used, Old or new?


-- 
H.J. Lu (hjl@gnu.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]