This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

Re: Symbol versioning problem? Different versions of same symbol being called.


On Thu, Jan 24, 2002 at 09:36:49AM -0800, H . J . Lu wrote:
> Is your shared library built with
> 
> # gcc/g++ -shared ....

Yes.  I use libtool, which calls the following

Compiling an object file:

g++-3.0.3 -DHAVE_CONFIG_H -I./include -I./include -DCWDEBUG -ggdb3
  -pipe -pthread -Wall -Woverloaded-virtual -Wundef -Wpointer-arith
  -Wwrite-strings -Werror -Winline -c elf32.cc -MT elf32.lo -MD
  -MP -MF .deps/elf32.TPlo  -fPIC -DPIC -o elf32.o
mv -f elf32.o elf32.lo

Final linking:

gcc-3.0.3 -shared  threading.lo elf32.lo bfd.lo debug.lo debugmalloc.lo
  demangle.lo demangle3.lo strerrno.lo type_info.lo
  -Wl,--whole-archive utils/.libs/libutils.al -Wl,--no-whole-archive
  utils/.libs/libutils.al -ldl   -Wl,-soname -Wl,libcwd.so.0
  -o .libs/libcwd.so.0.99.16


I suppose using the -shared in the last command suffices?
Nevertheless, it calls the wrong version.

-- 
Carlo Wood <carlo@alinoe.com>


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