Hoping someone knows whats going on here, because I haven't been able to track this one down.
Recently (within the past few weeks) I've been learning automake, autoconf, libtool, and the works. Great set of tools. Anyway, I've got libtool setup to create some plugin objects.
The following is the '.la' file it generates, and installs in complement to the .so plugin. The problem does not seem to be causing any problems itself, but, it's something that's been bothering me and I'd like to fix it for good.
I've underlined the problem in the 'code' below.
Code:
# server.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.94 2004/04/10 16:27:27)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='server.so'
# Names of this library.
library_names='server.so server.so server.so'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=' -ldl -lresolv -lpthread /opt/lib/./libstdc++.la -L/root/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -L/root/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/root/src/gcc-build/gcc'
# Version information for server.
current=0
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/opt/lib/fmail'
and...
Code:
[root@alpha common]# ls -l /root/src/gcc-build/
ls: /root/src/gcc-build/: No such file or directory
As you can see above, for some reason, the source directory for gcc is entered in as a dependency! However, it does not exist, nor as it existed for quite some time. In fact, I installed libtool (latest versions, of course) after having removed that source directory...so, my guess it's getting that path from somewhere else. I tried investigating the 'libtool' file itself (did you know it's a script, not a binary?) without much luck. It isn't exactly organized for understanding....
Of course, as I said, this isn't causing any problems with linking, or library issues like it might seem. It's merely a search path, only it has to be coming from somewhere and I'd like to find out where and remove it.
Thanks,