[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getdate fails to build
From: |
Bruno Haible |
Subject: |
Re: getdate fails to build |
Date: |
Wed, 29 Sep 2010 18:33:37 +0200 |
User-agent: |
KMail/1.9.9 |
Sam,
> why is getdate built at all on the latest ubuntu?
> isn't glibc enough there?!
Take a look at the module description (modules/getdate):
1) It says
Include:
"getdate.h"
Does glibc have a getdate.h include file?
2) It says
Makefile.am:
lib_SOURCES += getdate.y
which means that getdate.y is compiled unconditionally.
Whereas platform-dependent compilations are usually triggered
through AC_LIBOBJ.
> /bin/bash /home/sds/src/clisp/current/build-g//build-aux/ylwrap
> /home/sds/src/clisp/current/modules/syscalls/gllib/getdate.y \
> y.tab.c getdate.c \
> y.tab.h getdate.h \
> y.output getdate.output \
> -- byacc && \
> mv getdate.c getdate.c-t && \
> mv getdate.c-t
> /home/sds/src/clisp/current/modules/syscalls/gllib/getdate.c
> byacc: e - line 277 of
> "/home/sds/src/clisp/current/modules/syscalls/gllib/getdate.y", syntax error
> %pure-parser
> ^
> make[2]: *** [getdate.c] Error 1
The getdate module comes with an autoconf macro gl_GETDATE, which requires
gl_BISON, found in m4/bison.m4. This macro has a comment
"# getdate.y works with bison only.", and sets the default value of YACC
to 'bison -y'. Probably you had YACC set by another macro, and it ended
up being 'byacc'. Since your package now includes getdate.y, it relies
on bison. So you can ditch your other macro that determined YACC in a
more relaxed way, and use bison.m4 instead.
Bruno
- getdate fails to build, Sam Steingold, 2010/09/29
- Re: getdate fails to build,
Bruno Haible <=
- Re: getdate fails to build, Sam Steingold, 2010/09/29
- Re: getdate fails to build, Paul Eggert, 2010/09/29
- Re: getdate fails to build, Sam Steingold, 2010/09/29
- Re: getdate fails to build, Eric Blake, 2010/09/29
- [PATCH] getdate: rename to get_date, Eric Blake, 2010/09/30
- Re: [PATCH] getdate: rename to get_date, Jim Meyering, 2010/09/30
- Re: [PATCH] getdate: rename to get_date, Bruno Haible, 2010/09/30
- Re: [PATCH] getdate: rename to get_date, Eric Blake, 2010/09/30