* Re: guile.m4 for autogen
[not found] ` <E1T2qlc-0002Ci-PS@stenn.ntp.org>
@ 2012-08-20 0:07 ` Bruce Korb
2012-08-24 13:36 ` Ludovic Courtès
2012-08-30 5:44 ` Harlan Stenn
0 siblings, 2 replies; 4+ messages in thread
From: Bruce Korb @ 2012-08-20 0:07 UTC (permalink / raw
To: Harlan Stenn, guile-devel Development
Hi Harlan,
On 08/18/12 14:41, Harlan Stenn wrote:
> Have you tried using pkg-config in autogen's configure to find the guile
> CFLAGS and loader stuff?
I'd prefer to use guile.m4, even though it uses guile-config. It insists.
Unfortunately, it does not work. For me.
> configure.ac:140: the top level
> configure:14130: error: possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> bootstrap failure: trapped exit signal
> mk-all: line 197: 5702 Killed
Here's the configure script fragment with the reference:
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
> $as_echo_n "checking libguile link flags... " >&6; }
> GUILE_LDFLAGS="`$GUILE_CONFIG link`"
> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
> $as_echo "$GUILE_LDFLAGS" >&6; }
>
> AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LIBS, $GUILE_LDFLAGS, )
> GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
> AC_LIB_LINKFLAGS_FROM_LIBS(GUILE_LTLIBS, $GUILE_LDFLAGS, yes)
> GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
Since this guile.m4 comes from Guile 2.0.4, it is recent enough that any
fully supported AC_* macro should not have been removed from autoconf 2.69.
If I delete the GUILE_FLAGS invocation, then all is fine.
*sigh*.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 for autogen
2012-08-20 0:07 ` guile.m4 for autogen Bruce Korb
@ 2012-08-24 13:36 ` Ludovic Courtès
2012-08-24 14:10 ` Bruce Korb
2012-08-30 5:44 ` Harlan Stenn
1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2012-08-24 13:36 UTC (permalink / raw
To: guile-devel
Hi Bruce,
Bruce Korb <bruce.korb@gmail.com> skribis:
> Hi Harlan,
>
> On 08/18/12 14:41, Harlan Stenn wrote:
>> Have you tried using pkg-config in autogen's configure to find the guile
>> CFLAGS and loader stuff?
>
> I'd prefer to use guile.m4, even though it uses guile-config. It insists.
> Unfortunately, it does not work. For me.
>
>> configure.ac:140: the top level
>> configure:14130: error: possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS
>> If this token and others are legitimate, please use m4_pattern_allow.
>> See the Autoconf documentation.
>> bootstrap failure: trapped exit signal
>> mk-all: line 197: 5702 Killed
As the comment says:
dnl AC_LIB_LINKFLAGS_FROM_LIBS is defined in gnulib/m4/lib-link.m4 and needs
dnl the file gnulib/build-aux/config.rpath.
This means that these two files have to be imported in your project for
this to work.
I hadn’t noticed that, and I reckon that this is unfortunate.
The change dates back to Feb. 2011, by Bruno, so we’d have to check the
rationale.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 for autogen
2012-08-24 13:36 ` Ludovic Courtès
@ 2012-08-24 14:10 ` Bruce Korb
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Korb @ 2012-08-24 14:10 UTC (permalink / raw
To: Ludovic Courtès; +Cc: Bruno Haible, guile-devel
Hi Ludovic,
On 08/24/12 06:36, Ludovic Courtès wrote:
>> I'd prefer to use guile.m4, even though it uses guile-config. It insists.
>> Unfortunately, it does not work. For me.
>>
>>> configure.ac:140: the top level
>>> configure:14130: error: possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS
>>> If this token and others are legitimate, please use m4_pattern_allow.
>>> See the Autoconf documentation.
>>> bootstrap failure: trapped exit signal
>>> mk-all: line 197: 5702 Killed
>
> As the comment says:
>
> dnl AC_LIB_LINKFLAGS_FROM_LIBS is defined in gnulib/m4/lib-link.m4 and needs
> dnl the file gnulib/build-aux/config.rpath.
>
> This means that these two files have to be imported in your project for
> this to work.
>
> I hadn’t noticed that, and I reckon that this is unfortunate.
>
> The change dates back to Feb. 2011, by Bruno, so we’d have to check the
> rationale.
Thank you for the explanation.
I am a big fan of comprehensible error messages and, as you'd guess,
I don't think that "possibly undefined macro: AC_LIB_LINKFLAGS_FROM_LIBS"
qualifies. Adding an AC_REQUIRE() would likely trigger something more
meaningful. Having to trace down a comment in an m4 file is not
very friendly.
However, now that I know the issue, obviously I'll add these files to
the list of things I grab from gnulib. Thank you again.
Regards, Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 for autogen
2012-08-20 0:07 ` guile.m4 for autogen Bruce Korb
2012-08-24 13:36 ` Ludovic Courtès
@ 2012-08-30 5:44 ` Harlan Stenn
1 sibling, 0 replies; 4+ messages in thread
From: Harlan Stenn @ 2012-08-30 5:44 UTC (permalink / raw
To: Bruce Korb; +Cc: Harlan Stenn, guile-devel Development
Bruce,
I just tracked down one of the problems:
stenn@deacon> grep ag_cv_test_guile_version *
config.log:ag_cv_test_guile_version='Backtrace: In ice-9/boot-9.scm:
149: 8 [catch #t #<catch-closure 1f1180> ...] 157: 7 [#<procedure 2458c0
()>] In unknown file: ?: 6 [catch-closure] In ice-9/boot-9.scm: 63: 5
[call-with-prompt prompt0 ...] In ice-9/eval.scm: 407: 4 [eval # #] 368:
3 [eval # #] 392: 2 [eval # #] In ice-9/popen.scm: 142: 1 [open-pipe*
"r" "/usr/local/gnu/bin/pkg-config" "--modversion" "guile-2.0"] In
unknown file: ?: 0 [execlp "/usr/local/gnu/bin/pkg-config"
"/usr/local/gnu/bin/pkg-config" ...] ERROR: In procedure execlp: ERROR:
In procedure execlp: No such file or directory error:
("/usr/local/gnu/bin/pkg-config" "--modversion" "guile-2.0") exited with
non-zero error code 1'
stenn@deacon>
The effect of this is that GUILE_VERSION is empty, so the compile of
autogen aborts.
H
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-30 5:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1T1YEu-00049T-Jq@stenn.ntp.org>
[not found] ` <CAKRnqNLAxsR9t2wZMAu0pLY8T0=63QFmVnoUp9FCMWQrwMH0fw@mail.gmail.com>
[not found] ` <502D34A9.7050004@gmail.com>
[not found] ` <E1T25AL-0006EL-L0@stenn.ntp.org>
[not found] ` <E1T2qlc-0002Ci-PS@stenn.ntp.org>
2012-08-20 0:07 ` guile.m4 for autogen Bruce Korb
2012-08-24 13:36 ` Ludovic Courtès
2012-08-24 14:10 ` Bruce Korb
2012-08-30 5:44 ` Harlan Stenn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).