bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool --avoid problems


From: Bruno Haible
Subject: Re: gnulib-tool --avoid problems
Date: Sun, 27 Sep 2009 11:13:28 +0200
User-agent: KMail/1.9.9

Sam Steingold wrote on 2009-08-04:
> 1. cd clisp
> 2. cvs up
> 3. rm -rf src/gl* modules/regexp/gl* modules/wildcard/gl*
Also rm -f src/aclocal.m4
> 4. edit Makefile.devel and remove 'string' from GNULIB_MODULES
> 5. make -f Makefile.devel gnulib-imported src/gllib/Makefile.in
> 6. observe broken src/gllib/Makefile.in

When I do this, today, I get no problem with <string.h> but with
<unistd.h>:

/tmp/clisp/src/gllib/unistd.h:46:22: error: token "@" is not valid in 
preprocessor expressions
/tmp/clisp/src/gllib/unistd.h:613:5: error: token "@" is not valid in 
preprocessor expressions
/tmp/clisp/src/gllib/unistd.h:735:5: error: token "@" is not valid in 
preprocessor expressions

The tokens @REPLACE_READLINK@, @GNULIB_LINKAT@, @GNULIB_SYMLINK@ were not
substituted. The reason is that configure is older than aclocal.m4:

$ ls -l src/configure src/aclocal.m4 
-rw-r--r-- 1 bruno users  712809 27. Sep 10:43 src/aclocal.m4
-rwxr-xr-x 1 bruno users 1824857 27. Sep 10:18 src/configure

The problem is that
  1) You don't have a dependency from configure to aclocal.m4,
  2) You are using an incomplete command:
       "make -f Makefile.devel gnulib-imported src/gllib/Makefile.in"

When I use a command that builds *all* prerequisites:

  make -f Makefile.devel gnulib-imported build-prerequisites

then src/configure is regenerated and all compiles fine.

Bruno




reply via email to

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