summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-01-23 16:25:44 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-01-23 16:25:44 +0000
commitfff0ea25e448faa809aec7514d6f81d98970f77b (patch)
treea7396252bc1bb72e5c33a57094015992b4ecdb70
parentbaa131d8668b0c84602f22ba53bdf4dac8928204 (diff)
downloadmpfr-fff0ea25e448faa809aec7514d6f81d98970f77b.tar.gz
tversion.c: improved an error message.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.3@5223 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tversion.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/tversion.c b/tests/tversion.c
index b5f60cf6b..1120d1957 100644
--- a/tests/tversion.c
+++ b/tests/tversion.c
@@ -29,11 +29,19 @@ MA 02110-1301, USA. */
static void
err (int d, const char *shdr, const char *slib)
{
- printf ("Incorrect MPFR version [%d] (%s header vs %s library).\n"
- "This error should have never occurred and may be due to a\n"
- "corrupted mpfr.h, an incomplete build (try to rebuild MPFR\n"
- "from scratch and/or use 'make clean'), or something wrong\n"
- "in the system.\n", d, shdr, slib);
+ /* VL: I get the following error on an OpenSUSE machine, and changing
+ the value of shlibpath_overrides_runpath in the libtool file from
+ 'no' to 'yes' fixes the problem. */
+ printf ("Incorrect MPFR version [%d] (%s header vs %s library)!\n"
+ "For this reason, other tests may fail. "
+ "Please fix this one first.\n\n"
+ "You can try to avoid this problem by changing the value of\n"
+ "shlibpath_overrides_runpath in the libtool file and rebuild\n"
+ "MPFR (make clean && make && make check).\n"
+ "Otherwise this error may be due to a corrupted mpfr.h, an\n"
+ "incomplete build (try to rebuild MPFR from scratch and/or\n"
+ "use 'make clean'), or something wrong in the system.\n",
+ d, shdr, slib);
exit (1);
}