Hi Fellas
I'm trying to get a shared library to work with my red hat 7.1 system. The
problem is; when the library makes a system call to stat() i get
"<./myprog> error while loading shared libraries: <mylib.so>: undefined symbol: stat".
I have tried this on other distro's (debian, namely), and it was able to make
the syscall just fine. Any ideas?
Here's some info that you may find helpful:
i compile with these lines:
gcc -g -fPIC -c -g <mylib>.c -o <mylib>.o
ld -shared -soname <mylib>.so.0 -o <mylib>.so.0.0.0 -lc <mylib>.o
gcc -g <myprog>.o -o <myprog> -L. -l<mylib>
ldd <myprog>
<mylib>.so.0 => ./<mylib>.so.0 (0x40018000)
libc.so.6 => /lib/i686/libc.so.6 (0x4002d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
gcc --version
2.96
Thanks for any sugesstions,
--Brad