[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch-1-4 / backport dunno-yo-lib patch
From: |
Guido Draheim |
Subject: |
branch-1-4 / backport dunno-yo-lib patch |
Date: |
Sat, 22 Sep 2001 19:57:59 +0200 |
... thought it' be a good idea :-)
cheers, Guido
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.922.2.65
diff -u -r1.922.2.65 ChangeLog
--- ChangeLog 2001/09/22 16:53:55 1.922.2.65
+++ ChangeLog 2001/09/22 17:54:48
@@ -1,3 +1,7 @@
+2001-09-23 Guido Draheim <address@hidden>
+ * ltmain.in: Display better and different error messages when
+ library linkage fails in various ways.
+
2001-09-22 Albert Chin-A-Young <address@hidden>
* ltdl.m4 (AC_LTDL_DLLIB): Even though HP-UX 10.20 and 11.00
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.259.2.11
diff -u -r1.259.2.11 ltmain.in
--- ltmain.in 2001/09/21 20:16:31 1.259.2.11
+++ ltmain.in 2001/09/22 17:54:27
@@ -1461,10 +1461,12 @@
lib)
if test "$deplibs_check_method" != pass_all; then
echo
- echo "*** Warning: This library needs some functionality provided
by $deplib."
+ echo "*** Warning: Trying to link with static lib archive
$deplib."
echo "*** I have the capability to make that library
automatically link in when"
echo "*** you link to this library. But I can only do this if
you have a"
- echo "*** shared version of the library, which you do not appear
to have."
+ echo "*** shared version of the library, which you do not appear
to have"
+ echo "*** because the file extensions .$libext of this argument
makes me believe"
+ echo "*** that it is just a static archive that I should not used
here."
else
echo
echo "*** Warning: Linking the shared library $output against the"
@@ -1926,13 +1928,14 @@
# Just print a warning and add the library to dependency_libs so
# that the program can be linked against the static library.
echo
- echo "*** Warning: This library needs some functionality provided
by $lib."
+ echo "*** Warning: This system can not link to static lib archive
$lib."
echo "*** I have the capability to make that library automatically
link in when"
echo "*** you link to this library. But I can only do this if you
have a"
echo "*** shared version of the library, which you do not appear to
have."
if test "$module" = yes; then
- echo "*** Therefore, libtool will create a static module, that
should work "
- echo "*** as long as the dlopening application is linked with the
-dlopen flag."
+ echo "*** But as you try to build a module library, libtool will
still create "
+ echo "*** a static module, that should work as long as the
dlopening application"
+ echo "*** is linked with the -dlopen flag to resolve symbols at
runtime."
if test -z "$global_symbol_pipe"; then
echo
echo "*** However, this would only work if libtool was able to
extract symbol"
@@ -2502,10 +2505,12 @@
else
droppeddeps=yes
echo
- echo "*** Warning: This library needs some functionality
provided by $i."
+ echo "*** Warning: dynamic linker does not accept needed
library $i."
echo "*** I have the capability to make that library
automatically link in when"
echo "*** you link to this library. But I can only do this
if you have a"
- echo "*** shared version of the library, which you do not
appear to have."
+ echo "*** shared version of the library, which I believe you
do not have"
+ echo "*** because a test_compile did reveal that the linker
did not use it for"
+ echo "*** its dynamic dependency list that programs get
resolved with at runtime."
fi
else
newdeplibs="$newdeplibs $i"
@@ -2532,10 +2537,12 @@
else
droppeddeps=yes
echo
- echo "*** Warning: This library needs some functionality
provided by $i."
+ echo "*** Warning: dynamic linker does not accept needed
library $i."
echo "*** I have the capability to make that library
automatically link in when"
echo "*** you link to this library. But I can only do this
if you have a"
- echo "*** shared version of the library, which you do not
appear to have."
+ echo "*** shared version of the library, which you do not
appear to have"
+ echo "*** because a test_compile did reveal that the linker
did not use this one"
+ echo "*** as a dynamic dependency that programs can get
resolved with at runtime."
fi
else
droppeddeps=yes
@@ -2592,10 +2599,17 @@
if test -n "$a_deplib" ; then
droppeddeps=yes
echo
- echo "*** Warning: This library needs some functionality
provided by $a_deplib."
+ echo "*** Warning: linker path does not have real file for
library $a_deplib."
echo "*** I have the capability to make that library
automatically link in when"
echo "*** you link to this library. But I can only do this if
you have a"
- echo "*** shared version of the library, which you do not
appear to have."
+ echo "*** shared version of the library, which you do not
appear to have"
+ echo "*** because I did check the linker path looking for a
file starting"
+ if test -z "$potlib" ; then
+ echo "*** with $libname but no candidates were found. (...for
file magic test)"
+ else
+ echo "*** with $libname and none of the candidates passed a
file format test"
+ echo "*** using a file magic. Last file checked: $potlib"
+ fi
fi
else
# Add a -L argument.
@@ -2614,6 +2628,7 @@
for i in $lib_search_path $sys_lib_search_path
$shlib_search_path; do
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check below in file_magic
test
if eval echo \"$potent_lib\" 2>/dev/null \
| sed 10q \
| egrep "$match_pattern_regex" > /dev/null; then
@@ -2626,10 +2641,17 @@
if test -n "$a_deplib" ; then
droppeddeps=yes
echo
- echo "*** Warning: This library needs some functionality
provided by $a_deplib."
+ echo "*** Warning: linker path does not have real file for
library $a_deplib."
echo "*** I have the capability to make that library
automatically link in when"
echo "*** you link to this library. But I can only do this if
you have a"
- echo "*** shared version of the library, which you do not
appear to have."
+ echo "*** shared version of the library, which you do not
appear to have"
+ echo "*** because I did check the linker path looking for a
file starting"
+ if test -z "$potlib" ; then
+ echo "*** with $libname but no candidates were found. (...for
regex pattern test)"
+ else
+ echo "*** with $libname and none of the candidates passed a
file format test"
+ echo "*** using a regex pattern. Last file checked: $potlib"
+ fi
fi
else
# Add a -L argument.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch-1-4 / backport dunno-yo-lib patch,
Guido Draheim <=