I have a binding problem. I need to link to the libfoo.so shared library, which depends on the read function, which I would like to define in the read.c.
I compile and link everything together, but at runtime I get an error
/home/bar/src/libfoo.so: undefined symbol: sread.
nm reports that the character is defined
$nm baz | grep sread 00000000000022f8 t sread
but ldd reports that the character is undefined
$ldd -r baz | grep sread undefined symbol: sread (/home/bar/src/libfoo.so)
What gives? Is there some kind of isse with the fact that libfoo.so is a shared library?
linux linker shared-libraries
codehippo
source share