bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modpath2


From: Gary V . Vaughan
Subject: Re: modpath2
Date: Sat, 18 Aug 2001 15:13:19 +0100

On Saturday 18 August 2001 10:43 am, address@hidden wrote:
> Gary, I'm afraid I don't understand the failure of modpath2 :(

Have you relibtoolized your tree?  The acinclude.m4 and ltdl.[ch] are from 
libtool HEAD branch.  There must be something slightly screwy with your build 
since it works for me (srcdir == builddir):

$ ./testsuite -v -d 21
==========================
Test suite for GNU m4 1.4q
==========================
21. ./others.at:646: testing modpath2...
./others.at:654: M4PATH=$top_srcdir LTDL_LIBRARY_PATH=$top_builddir/modules 
$M4
-m load -d modules/modtest.m4
21. ./others.at:646: ok
===========================
All 1 tests were successful
===========================

> Here is the relevant snippet from testsuite.log:
>
> 21. ./others.at:646: testing modpath2...
> ./others.at:654: M4PATH=$top_srcdir LTDL_LIBRARY_PATH=$top_builddir/modules
> $M4 -m load -d modules/modtest.m4
> --- -   Sat Aug 18 11:09:11 2001
> +++ at-stderr   Sat Aug 18 11:09:11 2001
> @@ -1,2 +1,2 @@
> -test:  <test>
> +lt-m4: ERROR: module `load' has no entry points

I have only seen this error message when the module loader happens to find a 
binary with a name that matches the module it wants to load, and discovers 
that (of course) the entry points are not available.  FOr example if the 
M4MODPATH is wrong, m4 (the binary) tries to load m4.la and actually finds m4 
(itself) and dlopens that instead :-/

> --- -   Sat Aug 18 11:09:11 2001
> +++ at-stdout   Sat Aug 18 11:09:11 2001
> @@ -1,4 +1 @@
> -Test module loaded.
> -Test module called.
> -Dumpdef: .
>
> ./others.at:654: exit code was 1, expected 0
> 21. ./others.at:646: FAILED near `others.at:654'
>
>
> The other modpath tests work fine, I perfectly understand the other
> failures, due to Autotest, but this one, I really have no clue.
>
> This is with CVS M4 as of yesterday.

I can only suggest that you take a completely clean checkout of the whole 
source tree and try again... maybe this will fix your commit notification 
problem too?

It appears that I am seening a different set of failures to yours:

  ===============================================
  ERROR: Suite unsuccessful, 5 of 74 tests failed
  ===============================================

  Writing `debug-NN.sh' scripts, NN = 6 15 35 43 67, done

  You may investigate any problem if you feel able to do so, in which
  case the test suite provides a good starting point.

  Now, failed tests will be executed again, verbosely, and logged
  in the file testsuite.log.
  ==========================
  Test suite for GNU m4 1.4q
  ==========================
  6. ./others.at:139: testing discard-comments...
  ./others.at:155: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d in
  stderr:
  --- -   Sat Aug 18 15:08:37 2001
  +++ at-stdout   Sat Aug 18 15:08:37 2001
  @@ -1,4 +1,8 @@
  -This is not a comment This should not disappear.
  +This is not a comment # but this is.
  +# This line should dissappear completely.
  +This should not disappear.

  -html  ends.
  +html <!--
  +comment
  + --> ends.

  6. ./others.at:139: FAILED near `others.at:155'

  15. ./others.at:469: testing include...
  ./others.at:488: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d 
examples/include.m4
  stderr:
  lt-m4: ../examples/include.m4: 2: Cannot open NOFILE: No such file or 
directory lt-m4: ../examples/include.m4: 4: Cannot open incl-test.m4: No such 
file or directory
  lt-m4: ../examples/include.m4: 6: Cannot open NOFILE: No such file or 
directory --- expout      Sat Aug 18 15:08:37 2001
  +++ at-stdout   Sat Aug 18 15:08:37 2001
  @@ -1,8 +1,6 @@
   Beginning.

   Intermidiate
  -include test file.
  -
 
   After
 
  15. ./others.at:469: FAILED near `others.at:488'
 
  35. ./others.at:1182: testing undivert...
  ./others.at:1192: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d 
examples/undivert.m4
  stderr:
  lt-m4: ../examples/undivert.m4: 3: Cannot undivert undivert.incl: No such 
file or directory
  lt-m4: ../examples/undivert.m4: 5: Cannot open undivert.incl: No such file 
or directory
  --- -   Sat Aug 18 15:08:38 2001
  +++ at-stdout   Sat Aug 18 15:08:38 2001
  @@ -1,8 +1,6 @@
 
   # undiverted file.
  -This is to be undiverted soon.
 
   # included file.
  -This is to be UNDIVERTED soon.
 
 
  35. ./others.at:1182: FAILED near `others.at:1192'
  
  43. ./generated.at:249: testing Defn...
  ./generated.at:263: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d in
  stderr:
  ./generated.at:263: sed -e 's,^[^:]*[lt-]*m4[.ex]*:,m4:,' \
               -e 's,m4: ../../,m4: ../,'        stderr >&2
  ./generated.at:276: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d in
  stderr:
  --- -   Sat Aug 18 15:08:38 2001
  +++ at-stdout   Sat Aug 18 15:08:38 2001
  @@ -1,2 +1,5 @@
 
   The macro
  +The macro dnl is very useful
  +
  +
  43. ./generated.at:249: FAILED near `generated.at:276'
 
  67. ./generated.at:1171: testing Patsubst...
  ./generated.at:1188: M4PATH=$top_srcdir $M4 -M $top_builddir/modules -d in
  stderr:
  --- -   Sat Aug 18 15:08:38 2001
  +++ at-stdout   Sat Aug 18 15:08:38 2001
  @@ -3,3 +3,4 @@
   (GNUs)() (not)() (Unix)
   (GNUs) (not) (Unix)
   GN not
  +
  67. ./generated.at:1171: FAILED near `generated.at:1188'
  ========================
  testsuite.log is created
  ========================

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]