Using Libraries within Libraries
Posted: Sat Apr 28, 2007 10:08 pm
I have library x. x uses functions from library y. Library x is used in program z.
y is linked to x at compile time, and likewise with program z and x.
z uses x through the dl interface.
Yet, when z uses x (leading to x calling y.), z crashes claiming: "free(): invalid next size (fast)".
Do I have to do something other than link x to y and x to z? Any knowledge as to why it's broken?
Thanks.
(I'm using Gentoo Linux, GCC 4.1.1, and LD 2.16.1)
y is linked to x at compile time, and likewise with program z and x.
z uses x through the dl interface.
Yet, when z uses x (leading to x calling y.), z crashes claiming: "free(): invalid next size (fast)".
Do I have to do something other than link x to y and x to z? Any knowledge as to why it's broken?
Thanks.
(I'm using Gentoo Linux, GCC 4.1.1, and LD 2.16.1)